[PATCH] D129940: [clang-format] Fix misannotation of colon in presence of requires clause
Owen Pan via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sat Jul 16 16:39:00 PDT 2022
owenpan added inline comments.
================
Comment at: clang/unittests/Format/TokenAnnotatorTest.cpp:820-833
+ ASSERT_EQ(BaseTokens.size(), NumberOfBaseTokens) << BaseTokens;
+ ASSERT_EQ(ConstrainedTokens.size(),
+ NumberOfBaseTokens + NumberOfAdditionalRequiresClauseTokens)
+ << ConstrainedTokens;
+
+ for (auto I = 0u; I < NumberOfBaseTokens; ++I) {
+ if (I < NumberOfTokensBeforeRequires) {
----------------
Can you make it a function or lambda?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D129940/new/
https://reviews.llvm.org/D129940
More information about the cfe-commits
mailing list