Skip to content

Commit c39c12b

Browse files
cleanup: Simplify loop (#319)
1 parent 1a84a02 commit c39c12b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

indexer/Indexer.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -569,8 +569,7 @@ void TuIndexer::saveNestedNameSpecifierLoc(
569569
}
570570
};
571571

572-
while (nameSpecLoc.hasQualifier()) {
573-
auto nameSpec = nameSpecLoc.getNestedNameSpecifier();
572+
while (auto *nameSpec = nameSpecLoc.getNestedNameSpecifier()) {
574573
using Kind = clang::NestedNameSpecifier;
575574
switch (nameSpec->getKind()) {
576575
case Kind::Namespace: {

0 commit comments

Comments
 (0)