Skip to content

Commit 1efa366

Browse files
[StaticAnalyzer] Drop const from a return type (NFC) (#141414)
1 parent f4b311b commit 1efa366

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ class StdLibraryFunctionsChecker
537537
/// a later bug report created by ErrnoChecker.
538538
/// Empty return value means that 'errno' related bug may not happen from
539539
/// the current analyzed function.
540-
virtual const std::string describe(CheckerContext &C) const { return ""; }
540+
virtual std::string describe(CheckerContext &C) const { return ""; }
541541

542542
virtual ~ErrnoConstraintBase() {}
543543

@@ -604,7 +604,7 @@ class StdLibraryFunctionsChecker
604604
return errno_modeling::setErrnoForStdSuccess(State, C);
605605
}
606606

607-
const std::string describe(CheckerContext &C) const override {
607+
std::string describe(CheckerContext &C) const override {
608608
return "'errno' becomes undefined after the call";
609609
}
610610
};
@@ -622,7 +622,7 @@ class StdLibraryFunctionsChecker
622622
Call.getCFGElementRef());
623623
}
624624

625-
const std::string describe(CheckerContext &C) const override {
625+
std::string describe(CheckerContext &C) const override {
626626
return "reading 'errno' is required to find out if the call has failed";
627627
}
628628
};

0 commit comments

Comments
 (0)