File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 1
-
2
1
// ===----------------------------------------------------------------------===//
3
2
//
4
3
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
Original file line number Diff line number Diff line change 1
-
2
1
// ===----------------------------------------------------------------------===//
3
2
//
4
3
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
11
10
#define LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_READABILITY_REDUNDANTPARENTHESESCHECK_H
12
11
13
12
#include " ../ClangTidyCheck.h"
13
+ #include " clang/Basic/LangOptions.h"
14
14
15
15
namespace clang ::tidy::readability {
16
16
@@ -24,6 +24,9 @@ class RedundantParenthesesCheck : public ClangTidyCheck {
24
24
: ClangTidyCheck(Name, Context) {}
25
25
void registerMatchers (ast_matchers::MatchFinder *Finder) override ;
26
26
void check (const ast_matchers::MatchFinder::MatchResult &Result) override ;
27
+ bool isLanguageVersionSupported (const LangOptions &LangOpts) const override {
28
+ return LangOpts.CPlusPlus | LangOpts.C99 ;
29
+ }
27
30
};
28
31
29
32
} // namespace clang::tidy::readability
You can’t perform that action at this time.
0 commit comments