File tree 2 files changed +4
-1
lines changed 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,9 @@ class UnusedUsingDeclsCheck : public ClangTidyCheck {
26
26
void registerMatchers (ast_matchers::MatchFinder *Finder) override ;
27
27
void check (const ast_matchers::MatchFinder::MatchResult &Result) override ;
28
28
void onEndOfTranslationUnit () override ;
29
+ bool isLanguageVersionSupported (const LangOptions &LangOpts) const override {
30
+ return LangOpts.CPlusPlus ;
31
+ }
29
32
30
33
private:
31
34
void removeFromFoundDecls (const Decl *D);
Original file line number Diff line number Diff line change @@ -382,7 +382,7 @@ Changes in existing checks
382
382
383
383
- Improved :doc: `misc-unused-using-decls
384
384
<clang-tidy/checks/misc/unused-using-decls>` check to avoid false positive when
385
- using in elaborated type.
385
+ using in elaborated type and only check cpp files .
386
386
387
387
- Improved :doc: `modernize-avoid-bind
388
388
<clang-tidy/checks/modernize/avoid-bind>` check to
You can’t perform that action at this time.
0 commit comments