llvm-project/clang/unittests/Format
Daniel Jasper 03a04fe95f clang-format: Separate out a language kind for ObjC.
While C(++) and ObjC are generally formatted the same way and can be
mixed, people might want to choose different styles based on the
language. This patch recognizes .m and .mm files as ObjC and also
implements a very crude detection of whether or not a .h file contains
ObjC code. This can be improved over time.

Also move most of the ObjC tests into their own test file to keep file
size maintainable.

llvm-svn: 289428
2016-12-12 12:42:29 +00:00
..
CMakeLists.txt clang-format: Separate out a language kind for ObjC. 2016-12-12 12:42:29 +00:00
CleanupTest.cpp [clang-format] calculate MaxInsertOffset in the original code correctly. 2016-12-09 11:45:50 +00:00
FormatTest.cpp clang-format: Separate out a language kind for ObjC. 2016-12-12 12:42:29 +00:00
FormatTestJS.cpp clang-format: [JS] Properly format dict literals that skip labels. 2016-11-29 09:40:36 +00:00
FormatTestJava.cpp Make tooling::applyAllReplacements return llvm::Expected<string> instead of empty string to indicate potential error. 2016-07-11 13:53:12 +00:00
FormatTestObjC.cpp clang-format: Separate out a language kind for ObjC. 2016-12-12 12:42:29 +00:00
FormatTestProto.cpp Make tooling::applyAllReplacements return llvm::Expected<string> instead of empty string to indicate potential error. 2016-07-11 13:53:12 +00:00
FormatTestSelective.cpp Make tooling::applyAllReplacements return llvm::Expected<string> instead of empty string to indicate potential error. 2016-07-11 13:53:12 +00:00
FormatTestUtils.h Header guard canonicalization, clang part. 2014-08-13 16:25:19 +00:00
SortImportsTestJS.cpp clang-format: [JS] Fix line breaks before comments when sorting imports. 2016-09-19 07:02:34 +00:00
SortIncludesTest.cpp clang-format: Correctly calculate affected ranges when sorting #includes. 2016-08-30 21:33:41 +00:00