diff options
author | Owen Pan <owenpiano@gmail.com> | 2024-04-06 01:50:42 -0700 |
---|---|---|
committer | Owen Pan <owenpiano@gmail.com> | 2024-04-06 01:51:45 -0700 |
commit | 684f27d37a6f1faf546a71bcb784b48c7fc8b7e0 (patch) | |
tree | f0b547c678332367f6ffea4fb6d103babfc43ac6 /clang/lib/Format/WhitespaceManager.cpp | |
parent | 09efe848cf2877ea7528411eaa0fe99224059256 (diff) | |
download | llvm-684f27d37a6f1faf546a71bcb784b48c7fc8b7e0.zip llvm-684f27d37a6f1faf546a71bcb784b48c7fc8b7e0.tar.gz llvm-684f27d37a6f1faf546a71bcb784b48c7fc8b7e0.tar.bz2 |
[clang-format][NFC] Use `is` instead of `getType() ==`
Diffstat (limited to 'clang/lib/Format/WhitespaceManager.cpp')
-rw-r--r-- | clang/lib/Format/WhitespaceManager.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/Format/WhitespaceManager.cpp b/clang/lib/Format/WhitespaceManager.cpp index d06c42d..4f82280 100644 --- a/clang/lib/Format/WhitespaceManager.cpp +++ b/clang/lib/Format/WhitespaceManager.cpp @@ -473,8 +473,7 @@ AlignTokenSequence(const FormatStyle &Style, unsigned Start, unsigned End, Style.ReferenceAlignment != FormatStyle::RAS_Right && Style.ReferenceAlignment != FormatStyle::RAS_Pointer; for (int Previous = i - 1; - Previous >= 0 && - Changes[Previous].Tok->getType() == TT_PointerOrReference; + Previous >= 0 && Changes[Previous].Tok->is(TT_PointerOrReference); --Previous) { assert(Changes[Previous].Tok->isPointerOrReference()); if (Changes[Previous].Tok->isNot(tok::star)) { |