aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp')
-rw-r--r--clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp b/clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp
index 6dae817..1c748f9 100644
--- a/clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp
+++ b/clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp
@@ -537,7 +537,7 @@ class StdLibraryFunctionsChecker
/// a later bug report created by ErrnoChecker.
/// Empty return value means that 'errno' related bug may not happen from
/// the current analyzed function.
- virtual const std::string describe(CheckerContext &C) const { return ""; }
+ virtual std::string describe(CheckerContext &C) const { return ""; }
virtual ~ErrnoConstraintBase() {}
@@ -604,7 +604,7 @@ class StdLibraryFunctionsChecker
return errno_modeling::setErrnoForStdSuccess(State, C);
}
- const std::string describe(CheckerContext &C) const override {
+ std::string describe(CheckerContext &C) const override {
return "'errno' becomes undefined after the call";
}
};
@@ -622,7 +622,7 @@ class StdLibraryFunctionsChecker
Call.getCFGElementRef());
}
- const std::string describe(CheckerContext &C) const override {
+ std::string describe(CheckerContext &C) const override {
return "reading 'errno' is required to find out if the call has failed";
}
};