llvm-project/clang/unittests/Format
Krasimir Georgiev 56904bf8a7 [clang-format] Do not treat asm clobber [ as ObjCExpr, refined
Summary:
r346756 refined clang-format to not treat the `[` in `asm (...: [] ..)` as an
ObjCExpr. However that's not enough, as we might have a comma-separated list of
such clobbers as in the newly added test.
This updates the detection to instead look at the Line's first token being `asm`
and not mark `[`-s as ObjCExprs in this case.

Reviewers: djasper, benhamilton

Reviewed By: djasper, benhamilton

Subscribers: benhamilton, cfe-commits

Differential Revision: https://reviews.llvm.org/D54795

llvm-svn: 347465
2018-11-22 14:49:55 +00:00
..
CMakeLists.txt [clang-format] Support breaking consecutive string literals for TableGen 2018-11-12 18:15:04 +00:00
CleanupTest.cpp [Tooling] Pull #include manipulation code from clangFormat into libToolingCore. 2018-05-14 20:17:53 +00:00
FormatTest.cpp [clang-format] Do not treat asm clobber [ as ObjCExpr, refined 2018-11-22 14:49:55 +00:00
FormatTestComments.cpp clang-format: fix a crash in comment wraps. 2018-08-02 11:52:08 +00:00
FormatTestJS.cpp [clang-format] JS: don't treat is: as a type matcher 2018-11-20 14:22:43 +00:00
FormatTestJava.cpp Java annotation declaration being handled correctly 2018-10-19 16:19:52 +00:00
FormatTestObjC.cpp [clang-format] Fix BraceWrapping AfterFunction for ObjC methods 2018-10-12 19:43:01 +00:00
FormatTestProto.cpp clang-format: Change Google style wrt. the formatting of empty messages. 2018-08-15 19:07:55 +00:00
FormatTestRawStrings.cpp [clang-format] Break before next parameter after a formatted multiline raw string parameter 2018-10-25 07:39:30 +00:00
FormatTestSelective.cpp [clang] Update uses of DEBUG macro to LLVM_DEBUG. 2018-05-15 13:30:56 +00:00
FormatTestTableGen.cpp [clang-format] Support breaking consecutive string literals for TableGen 2018-11-12 18:15:04 +00:00
FormatTestTextProto.cpp [clang-format] Fix comment, NFC 2018-08-13 14:32:29 +00:00
FormatTestUtils.h clang-format: Add preprocessor directive indentation 2017-08-30 14:34:57 +00:00
NamespaceEndCommentsFixerTest.cpp [clang] Update uses of DEBUG macro to LLVM_DEBUG. 2018-05-15 13:30:56 +00:00
SortImportsTestJS.cpp clang-format: [JS] support default imports. 2017-08-01 15:54:43 +00:00
SortImportsTestJava.cpp [clang-format] Java import sorting in clang-format 2018-10-05 17:19:26 +00:00
SortIncludesTest.cpp [clang-format] Move #include related style to libToolingCore 2018-05-14 19:51:33 +00:00
UsingDeclarationsSorterTest.cpp [clang] Update uses of DEBUG macro to LLVM_DEBUG. 2018-05-15 13:30:56 +00:00