[clang] ea2112e - [clang-format] Remove unused assignment. NFC.
Marek Kurdej via cfe-commits
cfe-commits at lists.llvm.org
Sun Jan 23 23:38:17 PST 2022
Author: Marek Kurdej
Date: 2022-01-24T08:34:24+01:00
New Revision: ea2112ea15a0f43cb469b29e00cda3d7a48ae875
URL: https://github.com/llvm/llvm-project/commit/ea2112ea15a0f43cb469b29e00cda3d7a48ae875
DIFF: https://github.com/llvm/llvm-project/commit/ea2112ea15a0f43cb469b29e00cda3d7a48ae875.diff
LOG: [clang-format] Remove unused assignment. NFC.
Fixes scan-build reported warning: https://llvm.org/reports/scan-build/report-QualifierAlignmentFixer.cpp-analyzeRight-55-191910.html#EndPath.
Added:
Modified:
clang/lib/Format/QualifierAlignmentFixer.cpp
Removed:
################################################################################
diff --git a/clang/lib/Format/QualifierAlignmentFixer.cpp b/clang/lib/Format/QualifierAlignmentFixer.cpp
index a53db5d11848d..b3a4684bead1a 100644
--- a/clang/lib/Format/QualifierAlignmentFixer.cpp
+++ b/clang/lib/Format/QualifierAlignmentFixer.cpp
@@ -261,10 +261,8 @@ const FormatToken *LeftRightQualifierAlignmentFixer::analyzeRight(
// Move to the end of any template class members e.g.
// `Foo<int>::iterator`.
if (Next && Next->startsSequence(TT_TemplateCloser, tok::coloncolon,
- tok::identifier)) {
- Next = Next->Next->Next;
+ tok::identifier))
return Tok;
- }
assert(Next && "Missing template opener");
Next = Next->Next;
}
More information about the cfe-commits
mailing list