Skip to content

Commit c5e31e3

Browse files
author
Tom James
committed
set TK_IgnoreUnlessSpelledInSource
1 parent 02f230a commit c5e31e3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

clang-tools-extra/clang-tidy/bugprone/MethodHidingCheck.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ class MethodHidingCheck : public ClangTidyCheck {
2828
bool isLanguageVersionSupported(const LangOptions &LangOpts) const override {
2929
return LangOpts.CPlusPlus;
3030
}
31+
std::optional<TraversalKind> getCheckTraversalKind() const override {
32+
return TK_IgnoreUnlessSpelledInSource;
33+
}
3134
};
3235

3336
} // namespace clang::tidy::bugprone

0 commit comments

Comments
 (0)