]> granicus.if.org Git - clang/commit
[clang-format] Do not treat the asm clobber [ as ObjCExpr
authorKrasimir Georgiev <krasimir@google.com>
Tue, 13 Nov 2018 15:38:12 +0000 (15:38 +0000)
committerKrasimir Georgiev <krasimir@google.com>
Tue, 13 Nov 2018 15:38:12 +0000 (15:38 +0000)
commit3919b8d9833d23d98e8be71fe608627866d5c40c
tree954fcd0dc3269928631bdba1083033ca57eec5a0
parent27ccc9daf4d4a73c77e50d86af93355c97085813
[clang-format] Do not treat the asm clobber [ as ObjCExpr

Summary:
The opening square of an inline asm clobber was being annotated as an ObjCExpr.
This caused, amongst other things, the ObjCGuesser to guess header files
containing that pattern as ObjC files.

Reviewers: benhamilton

Reviewed By: benhamilton

Subscribers: cfe-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@346756 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Format/TokenAnnotator.cpp
unittests/Format/FormatTest.cpp