Skip to content

Commit df54036

Browse files
committed
Minor nits
1 parent adaf399 commit df54036

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

clang/utils/TableGen/ClangAttrEmitter.cpp

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3739,18 +3739,17 @@ static void GenerateHasAttrSpellingStringSwitch(
37393739
: '(' + itostr(Version) + ')';
37403740

37413741
if (Scope.empty() || Scope == Spelling.nameSpace()) {
3742-
if (TestStringMap.contains(Spelling.name())) {
3742+
if (TestStringMap.contains(Spelling.name()))
37433743
TestStringMap[Spelling.name()] += " || " + TestStr;
3744-
} else {
3744+
else
37453745
TestStringMap[Spelling.name()] = TestStr;
3746-
}
37473746
}
37483747
}
37493748

37503749
// Create the actual string switch statement after all the attributes have
3751-
// been parsed
3752-
for (auto &entry : TestStringMap) {
3753-
OS << " .Case(\"" << entry.getKey() << "\", " << entry.getValue()
3750+
// been parsed.
3751+
for (auto &Entry : TestStringMap) {
3752+
OS << " .Case(\"" << Entry.getKey() << "\", " << Entry.getValue()
37543753
<< ")\n";
37553754
}
37563755

0 commit comments

Comments
 (0)