This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGe4d3e8880239: [clang-format] Dont allow template to be
preceded by closing brace (authored by rymiel).
Repository:
rG LLVM Github Monorepo
rymiel updated this revision to Diff 522776.
rymiel added a comment.
Add annotator tests
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D150629/new/
https://reviews.llvm.org/D150629
Files:
clang/lib/Format/TokenAnnotator.cpp
HazardyKnusperkeks added inline comments.
Comment at: clang/unittests/Format/FormatTest.cpp:10682
verifyFormat("a < 0 ? b : a > 0 ? c : d;");
+ verifyFormat("ratio{-1, 2} < ratio{-1, 3} == -1 / 3 > -1 / 2;");
verifyFormat("void f() {\n"
owenpan wrote:
>
owenpan added inline comments.
Comment at: clang/unittests/Format/FormatTest.cpp:10682
verifyFormat("a < 0 ? b : a > 0 ? c : d;");
+ verifyFormat("ratio{-1, 2} < ratio{-1, 3} == -1 / 3 > -1 / 2;");
verifyFormat("void f() {\n"
Do we need to add a token
rymiel created this revision.
rymiel added a project: clang-format.
rymiel added reviewers: HazardyKnusperkeks, owenpan, MyDeveloperDay.
Herald added projects: All, clang.
Herald added a subscriber: cfe-commits.
rymiel requested review of this revision.
This check is similar to the right paren