diff options
author | Alex Lorenz <arphaman@gmail.com> | 2019-01-24 23:07:58 +0000 |
---|---|---|
committer | Alex Lorenz <arphaman@gmail.com> | 2019-01-24 23:07:58 +0000 |
commit | 9d53cb8f83bf40993bd90405242f62d7e7b380ce (patch) | |
tree | fd6afa1da635a78d8ba74b9f7af6f90709bf5404 /llvm/lib/CodeGen/TargetPassConfig.cpp | |
parent | 76c40f827dfd67cad6bfe477071af2a63ee5505e (diff) | |
download | llvm-9d53cb8f83bf40993bd90405242f62d7e7b380ce.zip llvm-9d53cb8f83bf40993bd90405242f62d7e7b380ce.tar.gz llvm-9d53cb8f83bf40993bd90405242f62d7e7b380ce.tar.bz2 |
[clang-format] square parens with one token are not Objective-C message sends
The commit r322690 introduced support for ObjC detection in header files.
Unfortunately some C headers that use designated initializers are now
incorrectly detected as Objective-C.
This commit fixes it by ensuring that `[ token ]` is not annotated as an
Objective-C message send.
rdar://45504376
Differential Revision: https://reviews.llvm.org/D56226
llvm-svn: 352125
Diffstat (limited to 'llvm/lib/CodeGen/TargetPassConfig.cpp')
0 files changed, 0 insertions, 0 deletions