diff options
author | Owen Pan <owenpiano@gmail.com> | 2023-11-10 01:13:17 -0800 |
---|---|---|
committer | Owen Pan <owenpiano@gmail.com> | 2023-11-10 01:23:05 -0800 |
commit | cc75e520162ef651977d3f6d11b0d0b92dd2be07 (patch) | |
tree | bfebbe8e5d8a731077dda7740ab137a74a23023c /clang/lib/Format/WhitespaceManager.cpp | |
parent | d62f040418bd167d1ddd2b79c640a90c0c2ea353 (diff) | |
download | llvm-cc75e520162ef651977d3f6d11b0d0b92dd2be07.zip llvm-cc75e520162ef651977d3f6d11b0d0b92dd2be07.tar.gz llvm-cc75e520162ef651977d3f6d11b0d0b92dd2be07.tar.bz2 |
[clang-format][NFC] Refactor isPointerOrReference
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 ff8b1e6..764a068 100644 --- a/clang/lib/Format/WhitespaceManager.cpp +++ b/clang/lib/Format/WhitespaceManager.cpp @@ -470,8 +470,7 @@ AlignTokenSequence(const FormatStyle &Style, unsigned Start, unsigned End, Previous >= 0 && Changes[Previous].Tok->getType() == TT_PointerOrReference; --Previous) { - assert( - Changes[Previous].Tok->isOneOf(tok::star, tok::amp, tok::ampamp)); + assert(Changes[Previous].Tok->isPointerOrReference()); if (Changes[Previous].Tok->isNot(tok::star)) { if (ReferenceNotRightAligned) continue; |