We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6da4a7a commit 001fb1fCopy full SHA for 001fb1f
clang/utils/TableGen/ClangAttrEmitter.cpp
@@ -1722,8 +1722,7 @@ SpellingNamesAreCommon(const std::vector<FlattenedSpelling>& Spellings) {
1722
assert(!Spellings.empty() && "An empty list of spellings was provided");
1723
std::string FirstName =
1724
std::string(NormalizeNameForSpellingComparison(Spellings.front().name()));
1725
- for (const auto &Spelling :
1726
- llvm::make_range(std::next(Spellings.begin()), Spellings.end())) {
+ for (const auto &Spelling : llvm::drop_begin(Spellings)) {
1727
std::string Name =
1728
std::string(NormalizeNameForSpellingComparison(Spelling.name()));
1729
if (Name != FirstName)
0 commit comments