llvm-project/clang/lib/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
..
AffectedRangeManager.cpp Remove \brief commands from doxygen comments. 2018-05-09 01:00:01 +00:00
AffectedRangeManager.h Remove \brief commands from doxygen comments. 2018-05-09 01:00:01 +00:00
BreakableToken.cpp clang-format: [JS] don't break comments before any '{' 2018-08-03 13:58:33 +00:00
BreakableToken.h [clang-format] Silence -Wdocumentation warnings 2018-07-30 12:22:41 +00:00
CMakeLists.txt Reland "Move #include manipulation code to new lib/Tooling/Inclusions." 2018-06-04 09:04:12 +00:00
ContinuationIndenter.cpp [clang-format] tweaked another case of lambda formatting 2018-10-31 17:56:57 +00:00
ContinuationIndenter.h Remove trailing space 2018-07-30 19:24:48 +00:00
Encoding.h NFC: Add the emacs c++ mode hint "-*- C++ -*-" to the headers that don't have it 2018-07-24 00:07:49 +00:00
Format.cpp [Format] Add debugging to ObjC language guesser 2018-11-05 16:59:33 +00:00
FormatInternal.h Remove \brief commands from doxygen comments. 2018-05-09 01:00:01 +00:00
FormatToken.cpp Remove \brief commands from doxygen comments. 2018-05-09 01:00:01 +00:00
FormatToken.h [clang-format] tweaked another case of lambda formatting 2018-10-31 17:56:57 +00:00
FormatTokenLexer.cpp clang-format: better handle statement macros 2018-10-02 16:37:51 +00:00
FormatTokenLexer.h clang-format: better handle statement macros 2018-10-02 16:37:51 +00:00
NamespaceEndCommentsFixer.cpp clang-format: Fix formatting C++ namespaces with preceding 'inline' or 'export' specifier 2018-09-05 07:44:02 +00:00
NamespaceEndCommentsFixer.h Remove \brief commands from doxygen comments. 2018-05-09 01:00:01 +00:00
SortJavaScriptImports.cpp [clang] Update uses of DEBUG macro to LLVM_DEBUG. 2018-05-15 13:30:56 +00:00
SortJavaScriptImports.h Remove \brief commands from doxygen comments. 2018-05-09 01:00:01 +00:00
TokenAnalyzer.cpp [clang] Update uses of DEBUG macro to LLVM_DEBUG. 2018-05-15 13:30:56 +00:00
TokenAnalyzer.h Add SourceManagerForFile helper which sets up SourceManager and dependencies for a single file with code snippet 2018-05-09 21:35:52 +00:00
TokenAnnotator.cpp [clang-format] Do not treat asm clobber [ as ObjCExpr, refined 2018-11-22 14:49:55 +00:00
TokenAnnotator.h clang-format: Fix formatting C++ namespaces with preceding 'inline' or 'export' specifier 2018-09-05 07:44:02 +00:00
UnwrappedLineFormatter.cpp [clang-format] tweaked another case of lambda formatting 2018-10-31 17:56:57 +00:00
UnwrappedLineFormatter.h Remove \brief commands from doxygen comments. 2018-05-09 01:00:01 +00:00
UnwrappedLineParser.cpp Java annotation declaration being handled correctly 2018-10-19 16:19:52 +00:00
UnwrappedLineParser.h clang-format: better handle statement macros 2018-10-02 16:37:51 +00:00
UsingDeclarationsSorter.cpp [clang] Update uses of DEBUG macro to LLVM_DEBUG. 2018-05-15 13:30:56 +00:00
UsingDeclarationsSorter.h Remove \brief commands from doxygen comments. 2018-05-09 01:00:01 +00:00
WhitespaceManager.cpp llvm::sort(C.begin(), C.end(), ...) -> llvm::sort(C, ...) 2018-09-26 22:16:28 +00:00
WhitespaceManager.h Remove \brief commands from doxygen comments. 2018-05-09 01:00:01 +00:00