llvm-project/clang/unittests/Format
Ben Hamilton e2e3e67cf1 [Format] Improve ObjC header guessing heuristic
Summary:
This improves upon the previous Objective-C header guessing heuristic
from 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

Reviewers: jolesiak, krasimir

Reviewed By: jolesiak

Subscribers: klimek, cfe-commits

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

llvm-svn: 322690
2018-01-17 17:33:08 +00:00
..
CMakeLists.txt [CMake] Use PRIVATE in target_link_libraries for executables 2017-12-05 21:49:56 +00:00
CleanupTest.cpp clang-format: [JS] do not clean up duplicated commas. 2017-05-29 08:41:11 +00:00
FormatTest.cpp [clang-format] adds enclosing function detection to raw string formatting 2018-01-17 16:17:26 +00:00
FormatTestComments.cpp Fix bug where we wouldn't break columns over the limit. 2017-12-04 08:53:16 +00:00
FormatTestJS.cpp clang-format: [JS] do not wrap after async/await. 2017-11-30 10:25:17 +00:00
FormatTestJava.cpp clang-format/java: Unbreak genenrics formatting after r299952. 2017-09-27 17:57:50 +00:00
FormatTestObjC.cpp [Format] Improve ObjC header guessing heuristic 2018-01-17 17:33:08 +00:00
FormatTestProto.cpp [clang-format] Fix indent of 'key <...>' and 'key {...}' in text protos 2017-08-03 14:17:29 +00:00
FormatTestRawStrings.cpp [clang-format] adds enclosing function detection to raw string formatting 2018-01-17 16:17:26 +00:00
FormatTestSelective.cpp [clang-format] Handle trailing comment sections in import statement lines 2017-05-19 10:34:57 +00:00
FormatTestTextProto.cpp [clang-format] Fix indent of 'key <...>' and 'key {...}' in text protos 2017-08-03 14:17:29 +00:00
FormatTestUtils.h clang-format: Add preprocessor directive indentation 2017-08-30 14:34:57 +00:00
NamespaceEndCommentsFixerTest.cpp clang-format: fix block OpeningLineIndex around preprocessor 2017-07-28 07:56:14 +00:00
SortImportsTestJS.cpp clang-format: [JS] support default imports. 2017-08-01 15:54:43 +00:00
SortIncludesTest.cpp [clang-format] Add option to group multiple #include blocks when sorting includes 2017-11-27 13:23:45 +00:00
UsingDeclarationsSorterTest.cpp [clang-format] Deduplicate using declarations 2017-11-24 18:00:01 +00:00