[clang-format] do not insert spaces around inline asm symbolic names
authorKrasimir Georgiev <krasimir@google.com>
Thu, 5 Mar 2020 13:16:52 +0000 (14:16 +0100)
committerKrasimir Georgiev <krasimir@google.com>
Thu, 5 Mar 2020 13:17:21 +0000 (14:17 +0100)
commit36c2ab8d04cd9ff2e50cffa1ca6b3de00e4faa81
tree2dc2a69ee7727831240026205ea79ba2e23ecc37
parent66addf8e803618758457e4d578c5084e322ca448
[clang-format] do not insert spaces around inline asm symbolic names

Summary:
Fixes https://bugs.llvm.org/show_bug.cgi?id=45108.

The `[` in such cases was mis-annotated as an `TT_ArrayInitializerLSquare`.

Reviewers: hans

Reviewed By: hans

Subscribers: cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D75675
clang/lib/Format/FormatToken.h
clang/lib/Format/TokenAnnotator.cpp
clang/unittests/Format/FormatTest.cpp