We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
isLanguageVersionSupported
1 parent 9eb5843 commit 8e1c675Copy full SHA for 8e1c675
clang-tools-extra/clang-tidy/modernize/UseConcisePreprocessorDirectivesCheck.h
@@ -30,6 +30,9 @@ class UseConcisePreprocessorDirectivesCheck : public ClangTidyCheck {
30
using ClangTidyCheck::ClangTidyCheck;
31
void registerPPCallbacks(const SourceManager &SM, Preprocessor *PP,
32
Preprocessor *ModuleExpanderPP) override;
33
+ bool isLanguageVersionSupported(const LangOptions &LangOpts) const override {
34
+ return LangOpts.CPlusPlus || LangOpts.C99;
35
+ }
36
};
37
38
} // namespace clang::tidy::modernize
0 commit comments