This check is similar to the right paren check right below it, but it
doesn't need the overloaded operator check.
This patch prevents brace-initialized objects that are being compared
from being mis-annotated as template parameters.
Paths
| Differential D150629
[clang-format] Don't allow template to be preceded by closing brace ClosedPublic Authored by rymiel on May 15 2023, 6:22 PM.
Details Summary This check is similar to the right paren check right below it, but it This patch prevents brace-initialized objects that are being compared
Diff Detail
Event TimelineHerald added projects: Restricted Project, Restricted Project. · View Herald TranscriptMay 15 2023, 6:22 PM
This revision is now accepted and ready to land.May 16 2023, 2:47 PM This revision was landed with ongoing or failed builds.May 16 2023, 3:38 PM Closed by commit rGe4d3e8880239: [clang-format] Don't allow template to be preceded by closing brace (authored by rymiel). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 522816 clang/lib/Format/TokenAnnotator.cpp
clang/unittests/Format/FormatTest.cpp
clang/unittests/Format/TokenAnnotatorTest.cpp
|
Do we need to add a token annotator test?