aboutsummaryrefslogtreecommitdiffstats
path: root/src/checks/manuallevel/unexpected-flag-enumerator-value.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/checks/manuallevel/unexpected-flag-enumerator-value.cpp')
-rw-r--r--src/checks/manuallevel/unexpected-flag-enumerator-value.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/checks/manuallevel/unexpected-flag-enumerator-value.cpp b/src/checks/manuallevel/unexpected-flag-enumerator-value.cpp
index 32f5aba2..bf4e4c22 100644
--- a/src/checks/manuallevel/unexpected-flag-enumerator-value.cpp
+++ b/src/checks/manuallevel/unexpected-flag-enumerator-value.cpp
@@ -107,7 +107,7 @@ static IsFlagEnumResult isFlagEnum(const SmallVector<EnumConstantDecl*, 16>& enu
void UnexpectedFlagEnumeratorValue::VisitDecl(clang::Decl *decl)
{
auto enDecl = dyn_cast_or_null<EnumDecl>(decl);
- if (!enDecl)
+ if (!enDecl || !enDecl->hasNameForLinkage())
return;
const SmallVector<EnumConstantDecl*, 16> enumerators = getEnumerators(enDecl);