diff options
author | Kazu Hirata <kazu@google.com> | 2023-11-16 11:06:01 -0800 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2023-11-16 11:06:01 -0800 |
commit | f8e8530f7377ab84b23c268454015fbcb95231c0 (patch) | |
tree | 377d82efc22cd74267702c6bcbf3222bfdf00b49 /clang | |
parent | 34e4e5eb70818fca90574beb8f5617e27bfac138 (diff) | |
download | llvm-f8e8530f7377ab84b23c268454015fbcb95231c0.zip llvm-f8e8530f7377ab84b23c268454015fbcb95231c0.tar.gz llvm-f8e8530f7377ab84b23c268454015fbcb95231c0.tar.bz2 |
[StaticAnalyzer] Fix warnings about missing override
This patch fixes:
clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp:609:23:
error: 'describe' overrides a member function but is not marked
'override' [-Werror,-Winconsistent-missing-override]
clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp:627:23:
error: 'describe' overrides a member function but is not marked
'override' [-Werror,-Winconsistent-missing-override]
Diffstat (limited to 'clang')
-rw-r--r-- | clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp b/clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp index 2163689..fffcaf7 100644 --- a/clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp +++ b/clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp @@ -606,7 +606,7 @@ class StdLibraryFunctionsChecker return errno_modeling::setErrnoForStdSuccess(State, C); } - const std::string describe(CheckerContext &C) const { + const std::string describe(CheckerContext &C) const override { return "'errno' becomes undefined after the call"; } }; @@ -624,7 +624,7 @@ class StdLibraryFunctionsChecker Call.getOriginExpr()); } - const std::string describe(CheckerContext &C) const { + const std::string describe(CheckerContext &C) const override { return "reading 'errno' is required to find out if the call has failed"; } }; |