Skip to content

Commit f8e8530

Browse files
[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]
1 parent 34e4e5e commit f8e8530

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,7 @@ class StdLibraryFunctionsChecker
606606
return errno_modeling::setErrnoForStdSuccess(State, C);
607607
}
608608

609-
const std::string describe(CheckerContext &C) const {
609+
const std::string describe(CheckerContext &C) const override {
610610
return "'errno' becomes undefined after the call";
611611
}
612612
};
@@ -624,7 +624,7 @@ class StdLibraryFunctionsChecker
624624
Call.getOriginExpr());
625625
}
626626

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

0 commit comments

Comments
 (0)