llvm-project/clang/lib/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
..
AffectedRangeManager.cpp Added Fixer implementation and fix() interface in clang-format for removing redundant code. 2016-04-25 15:09:22 +00:00
AffectedRangeManager.h removed redundant '#' 2016-04-28 07:52:06 +00:00
BreakableToken.cpp [clang-format] Add comment manipulation header 2016-10-19 08:19:46 +00:00
BreakableToken.h Roll-back r250822. 2015-10-20 13:23:58 +00:00
CMakeLists.txt [clang-format] Add comment manipulation header 2016-10-19 08:19:46 +00:00
Comments.cpp [clang-format] Add comment manipulation header 2016-10-19 08:19:46 +00:00
Comments.h [clang-format] Add comment manipulation header 2016-10-19 08:19:46 +00:00
ContinuationIndenter.cpp clang-format: Separate out a language kind for ObjC. 2016-12-12 12:42:29 +00:00
ContinuationIndenter.h Addressed reviewer's post-submission comments from http://reviews.llvm.org/D18551. 2016-04-28 07:52:03 +00:00
Encoding.h Move UTF functions into namespace llvm. 2016-09-30 00:38:45 +00:00
Format.cpp clang-format: Separate out a language kind for ObjC. 2016-12-12 12:42:29 +00:00
FormatToken.cpp [NFC] Header cleanup 2016-07-18 19:02:11 +00:00
FormatToken.h clang-format: [JS] do not break after declare namespace. 2016-11-10 16:20:58 +00:00
FormatTokenLexer.cpp clang-format: Separate out a language kind for ObjC. 2016-12-12 12:42:29 +00:00
FormatTokenLexer.h clang-format: [JS] nested and tagged template strings. 2016-08-25 10:13:21 +00:00
SortJavaScriptImports.cpp Removed duplicate header include 2016-10-14 11:48:10 +00:00
SortJavaScriptImports.h clang-format: [JS] sort ES6 imports. 2016-05-20 11:24:24 +00:00
TokenAnalyzer.cpp Don't copy replacements in for-range loop. NFC. 2016-10-19 13:50:17 +00:00
TokenAnalyzer.h Removed DEBUG_TYPE from TokenAnalyzer.h 2016-11-29 10:21:28 +00:00
TokenAnnotator.cpp clang-format: Separate out a language kind for ObjC. 2016-12-12 12:42:29 +00:00
TokenAnnotator.h [NFC] Header cleanup 2016-07-18 19:02:11 +00:00
UnwrappedLineFormatter.cpp [clang-format] Fixed line merging of more than two lines 2016-11-15 15:07:07 +00:00
UnwrappedLineFormatter.h [NFC] Header cleanup 2016-07-18 19:02:11 +00:00
UnwrappedLineParser.cpp clang-format: [JS] do not break after declare namespace. 2016-11-10 16:21:02 +00:00
UnwrappedLineParser.h clang-format: [JS] Handle certain cases of ASI. 2016-03-14 19:21:36 +00:00
WhitespaceManager.cpp Bug 28065 - clang-format incorrectly aligns backslash. 2016-10-26 07:44:51 +00:00
WhitespaceManager.h Addressed reviewer's post-submission comments from http://reviews.llvm.org/D18551. 2016-04-28 07:52:03 +00:00