Skip to content

Commit 05f3e6e

Browse files
committed
added comment about functionality
1 parent b726e03 commit 05f3e6e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

clang-tools-extra/clang-tidy/bugprone/InvalidEnumDefaultInitializationCheck.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ void InvalidEnumDefaultInitializationCheck::check(
123123
Result.Nodes.getNodeAs<InitListExpr>("array_filler_expr");
124124
// Initialization of omitted array elements with array filler was found.
125125
// Check the type for enum without zero value.
126+
// FIXME: In this way only one enum-typed value is found, not all of these.
126127
FindEnumMember Finder;
127128
if (!Finder.Visit(InitList->getArrayFiller()->getType().getTypePtr()))
128129
return;

0 commit comments

Comments
 (0)