aboutsummaryrefslogtreecommitdiff
path: root/clang
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2023-11-16 11:06:01 -0800
committerKazu Hirata <kazu@google.com>2023-11-16 11:06:01 -0800
commitf8e8530f7377ab84b23c268454015fbcb95231c0 (patch)
tree377d82efc22cd74267702c6bcbf3222bfdf00b49 /clang
parent34e4e5eb70818fca90574beb8f5617e27bfac138 (diff)
downloadllvm-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.cpp4
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";
}
};