Fixes https://bugs.llvm.org/show_bug.cgi?id=45108.
The [ in such cases was mis-annotated as an TT_ArrayInitializerLSquare.
Paths
| Differential D75675
[clang-format] do not insert spaces around inline asm symbolic names ClosedPublic Authored by krasimir on Mar 5 2020, 4:34 AM.
Details Summary Fixes https://bugs.llvm.org/show_bug.cgi?id=45108. The [ in such cases was mis-annotated as an TT_ArrayInitializerLSquare.
Diff Detail
Event TimelineComment Actions Very nice, thanks!
This revision is now accepted and ready to land.Mar 5 2020, 4:59 AM Closed by commit rG36c2ab8d04cd: [clang-format] do not insert spaces around inline asm symbolic names (authored by krasimir). · Explain WhyMar 5 2020, 5:29 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 248438 clang/lib/Format/FormatToken.h
clang/lib/Format/TokenAnnotator.cpp
clang/unittests/Format/FormatTest.cpp
|
Is the Style.isCpp() check necessary here?
If it's necessary, maybe that's because the setting of InsideInlineASM should be guarded by Style.isCpp() instead?