An heuristic targetting x && x->foo was targed overly broadly and caused the
last T&& to be treated as a binary operator.
Details
Details
- Reviewers
hokein - Commits
- rGb3b68c0f802e: [Format] Fix 'auto x(T&&, T &&)->F' with PAS_Left.
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
clang/lib/Format/TokenAnnotator.cpp | ||
---|---|---|
1804 | (while here: the NextToken check was redundant as we deref it above already) |
Comment Actions
Unit tests: fail. 62136 tests passed, 5 failed and 811 were skipped.
failed: libc++.std/language_support/cmp/cmp_partialord/partialord.pass.cpp failed: libc++.std/language_support/cmp/cmp_strongeq/cmp.strongeq.pass.cpp failed: libc++.std/language_support/cmp/cmp_strongord/strongord.pass.cpp failed: libc++.std/language_support/cmp/cmp_weakeq/cmp.weakeq.pass.cpp failed: libc++.std/language_support/cmp/cmp_weakord/weakord.pass.cpp
clang-tidy: pass.
clang-format: pass.
Build artifacts: diff.json, clang-tidy.txt, clang-format.patch, CMakeCache.txt, console-log.txt, test-results.xml
Pre-merge checks is in beta. Report issue. Please join beta or enable it for your project.
(while here: the NextToken check was redundant as we deref it above already)