After https://github.com/llvm/llvm-project/commit/b646f0955574c6ad4c156c9db522e46f597cfda9,
the added regression test started being formatted as-if the
multiplication * was a pointer. This adapts the heuristic to
distinguish between these two cases.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
I think we can also add new test cases in clang/unittests/Format/TokenAnnotatorTest.cpp.
Tokens = annotate("int i = int{42} * 34;"); ...
clang/lib/Format/TokenAnnotator.cpp | ||
---|---|---|
2328 |
This comment was removed by jackhong12.