2012-12-04 02:12:45 +08:00
|
|
|
set(LLVM_LINK_COMPONENTS support)
|
|
|
|
|
|
|
|
add_clang_library(clangFormat
|
2016-04-25 23:09:22 +08:00
|
|
|
AffectedRangeManager.cpp
|
2013-04-15 22:28:00 +08:00
|
|
|
BreakableToken.cpp
|
2013-08-16 19:20:30 +08:00
|
|
|
ContinuationIndenter.cpp
|
2013-04-15 22:28:00 +08:00
|
|
|
Format.cpp
|
clang-format: Add column layout formatting for braced lists
With this patch, braced lists (with more than 3 elements are formatted in a
column layout if possible). E.g.:
static const uint16_t CallerSavedRegs64Bit[] = {
X86::RAX, X86::RDX, X86::RCX, X86::RSI, X86::RDI,
X86::R8, X86::R9, X86::R10, X86::R11, 0
};
Required other changes:
- FormatTokens can now have a special role that contains extra data and can do
special formattings. A comma separated list is currently the only
implementation.
- Move penalty calculation entirely into ContinuationIndenter (there was a last
piece still in UnwrappedLineFormatter).
Review: http://llvm-reviews.chandlerc.com/D1457
llvm-svn: 189018
2013-08-22 23:00:41 +08:00
|
|
|
FormatToken.cpp
|
2016-05-20 19:24:24 +08:00
|
|
|
FormatTokenLexer.cpp
|
2020-07-07 18:17:14 +08:00
|
|
|
MacroExpander.cpp
|
2017-02-27 21:28:36 +08:00
|
|
|
NamespaceEndCommentsFixer.cpp
|
2016-05-20 19:24:24 +08:00
|
|
|
SortJavaScriptImports.cpp
|
|
|
|
TokenAnalyzer.cpp
|
2013-01-30 05:01:14 +08:00
|
|
|
TokenAnnotator.cpp
|
2014-12-11 03:00:42 +08:00
|
|
|
UnwrappedLineFormatter.cpp
|
2012-12-04 02:12:45 +08:00
|
|
|
UnwrappedLineParser.cpp
|
2017-06-21 20:03:12 +08:00
|
|
|
UsingDeclarationsSorter.cpp
|
2013-04-15 22:28:00 +08:00
|
|
|
WhitespaceManager.cpp
|
2012-12-04 02:12:45 +08:00
|
|
|
|
2014-02-26 14:41:29 +08:00
|
|
|
LINK_LIBS
|
2013-12-10 03:04:43 +08:00
|
|
|
clangBasic
|
|
|
|
clangLex
|
2014-10-30 02:55:09 +08:00
|
|
|
clangToolingCore
|
2018-06-04 17:04:12 +08:00
|
|
|
clangToolingInclusions
|
2012-12-04 02:12:45 +08:00
|
|
|
)
|