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 5cc042e commit 8052b15Copy full SHA for 8052b15
clang/lib/Format/QualifierAlignmentFixer.cpp
@@ -414,11 +414,11 @@ const FormatToken *LeftRightQualifierAlignmentFixer::analyzeLeft(
414
// The case `const long long volatile int` -> `const volatile long long int`
415
// The case `long volatile long int const` -> `const volatile long long int`
416
if (TypeToken->isTypeName(LangOpts)) {
417
- for (const auto *Prev = TypeToken->getPreviousNonComment();
+ for (const auto *Prev = TypeToken->Previous;
418
Prev && Prev->is(tok::coloncolon);
419
- Prev = Prev->getPreviousNonComment()) {
+ Prev = Prev->Previous) {
420
TypeToken = Prev;
421
- Prev = Prev->getPreviousNonComment();
+ Prev = Prev->Previous;
422
if (!(Prev && Prev->is(tok::identifier)))
423
break;
424
0 commit comments