[PATCH] D42135: [Format] Improve ObjC header guessing heuristic

Ben Hamilton via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jan 16 14:46:05 PST 2018


benhamilton created this revision.
benhamilton added reviewers: jolesiak, krasimir.
Herald added subscribers: cfe-commits, klimek.

This improves upon the previous Objective-C header guessing heuristic
from https://reviews.llvm.org/rC320479.

Now, we run the lexer on C++ header files and look for Objective-C
keywords and syntax. We also look for Foundation types.

Test Plan: make -j12 FormatTests && ./tools/clang/unittests/Format/FormatTests


Repository:
  rC Clang

https://reviews.llvm.org/D42135

Files:
  lib/Format/Format.cpp
  unittests/Format/FormatTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D42135.130040.patch
Type: text/x-patch
Size: 8015 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180116/012c2b87/attachment-0001.bin>


More information about the cfe-commits mailing list