Skip to content

Commit 8052b15

Browse files
authored
Update clang/lib/Format/QualifierAlignmentFixer.cpp
1 parent 5cc042e commit 8052b15

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

clang/lib/Format/QualifierAlignmentFixer.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -414,11 +414,11 @@ const FormatToken *LeftRightQualifierAlignmentFixer::analyzeLeft(
414414
// The case `const long long volatile int` -> `const volatile long long int`
415415
// The case `long volatile long int const` -> `const volatile long long int`
416416
if (TypeToken->isTypeName(LangOpts)) {
417-
for (const auto *Prev = TypeToken->getPreviousNonComment();
417+
for (const auto *Prev = TypeToken->Previous;
418418
Prev && Prev->is(tok::coloncolon);
419-
Prev = Prev->getPreviousNonComment()) {
419+
Prev = Prev->Previous) {
420420
TypeToken = Prev;
421-
Prev = Prev->getPreviousNonComment();
421+
Prev = Prev->Previous;
422422
if (!(Prev && Prev->is(tok::identifier)))
423423
break;
424424
TypeToken = Prev;

0 commit comments

Comments
 (0)