summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/include-fixer/find-all-symbols/FindAllSymbols.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang-tools-extra/include-fixer/find-all-symbols/FindAllSymbols.cpp')
-rw-r--r--clang-tools-extra/include-fixer/find-all-symbols/FindAllSymbols.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/clang-tools-extra/include-fixer/find-all-symbols/FindAllSymbols.cpp b/clang-tools-extra/include-fixer/find-all-symbols/FindAllSymbols.cpp
index b0648b2d989..15b6f91fc67 100644
--- a/clang-tools-extra/include-fixer/find-all-symbols/FindAllSymbols.cpp
+++ b/clang-tools-extra/include-fixer/find-all-symbols/FindAllSymbols.cpp
@@ -183,10 +183,10 @@ void FindAllSymbols::registerMatchers(MatchFinder *MatchFinder) {
this);
// Matchers for enum declarations.
- MatchFinder->addMatcher(
- enumDecl(CommonFilter, anyOf(HasNSOrTUCtxMatcher, ExternCMatcher))
- .bind("decl"),
- this);
+ MatchFinder->addMatcher(enumDecl(CommonFilter, isDefinition(),
+ anyOf(HasNSOrTUCtxMatcher, ExternCMatcher))
+ .bind("decl"),
+ this);
// Matchers for enum constant declarations.
// We only match the enum constants in non-scoped enum declarations which are
OpenPOWER on IntegriCloud