Skip to content

Commit 8e1c675

Browse files
committed
Specify isLanguageVersionSupported
1 parent 9eb5843 commit 8e1c675

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

clang-tools-extra/clang-tidy/modernize/UseConcisePreprocessorDirectivesCheck.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ class UseConcisePreprocessorDirectivesCheck : public ClangTidyCheck {
3030
using ClangTidyCheck::ClangTidyCheck;
3131
void registerPPCallbacks(const SourceManager &SM, Preprocessor *PP,
3232
Preprocessor *ModuleExpanderPP) override;
33+
bool isLanguageVersionSupported(const LangOptions &LangOpts) const override {
34+
return LangOpts.CPlusPlus || LangOpts.C99;
35+
}
3336
};
3437

3538
} // namespace clang::tidy::modernize

0 commit comments

Comments
 (0)