Skip to content

Commit 001fb1f

Browse files
[TableGen] Use llvm::drop_begin (NFC)
1 parent 6da4a7a commit 001fb1f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

clang/utils/TableGen/ClangAttrEmitter.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1722,8 +1722,7 @@ SpellingNamesAreCommon(const std::vector<FlattenedSpelling>& Spellings) {
17221722
assert(!Spellings.empty() && "An empty list of spellings was provided");
17231723
std::string FirstName =
17241724
std::string(NormalizeNameForSpellingComparison(Spellings.front().name()));
1725-
for (const auto &Spelling :
1726-
llvm::make_range(std::next(Spellings.begin()), Spellings.end())) {
1725+
for (const auto &Spelling : llvm::drop_begin(Spellings)) {
17271726
std::string Name =
17281727
std::string(NormalizeNameForSpellingComparison(Spelling.name()));
17291728
if (Name != FirstName)

0 commit comments

Comments
 (0)