]> granicus.if.org Git - clang/commit
[clang-format] Improve ObjC headers detection.
authorKrasimir Georgiev <krasimir@google.com>
Tue, 12 Dec 2017 13:43:59 +0000 (13:43 +0000)
committerKrasimir Georgiev <krasimir@google.com>
Tue, 12 Dec 2017 13:43:59 +0000 (13:43 +0000)
commit006661785ecc08a648d2cb01fc21b898f81e3c40
tree65ea5f09b9942ff5cb68d3e33d410878cc9126fe
parentf2e8b97a0c90f26c6e01aa88c7c6d23ed248d65b
[clang-format] Improve ObjC headers detection.

This patch improves detection of ObjC header files.
Right now many ObjC headers, especially short ones, are categorized as C/C++.

Way of filtering still isn't the best, as most likely it should be token-based.

Contributed by jolesiak!

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