llvm-project/clang/lib
Daniel Jasper 8de9ed05b7 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 15:00:41 +00:00
..
ARCMigrate ObjectibeC migrator. Annotate cf_consumed arguments, 2013-08-21 19:37:47 +00:00
AST Revert "Implement a rudimentary form of generic lambdas." 2013-08-22 12:12:24 +00:00
ASTMatchers Refactor ArgumentAdaptativeMatcher matchers to remove the template from their declaration. 2013-08-16 16:19:42 +00:00
Analysis Analysis: Make %I in printf more reasonable, add more tests 2013-08-22 07:53:21 +00:00
Basic Move -mfpmath handling to -cc1 and implement it for x86. 2013-08-21 21:59:03 +00:00
CodeGen DebugInfo: Remove explicit declaration-emissiong handling now that we have a more principled approach (the 'requires complete type' callback) 2013-08-22 13:36:01 +00:00
Driver Move -mfpmath handling to -cc1 and implement it for x86. 2013-08-21 21:59:03 +00:00
Edit ObjectiveC migrator: Remove semicolon after the typedef 2013-07-18 22:17:33 +00:00
Format clang-format: Add column layout formatting for braced lists 2013-08-22 15:00:41 +00:00
Frontend Split isFromMainFile into two functions. 2013-08-22 00:27:10 +00:00
FrontendTool Indicate success for simple options when clang called with -cc1. 2013-08-07 12:54:47 +00:00
Headers Fix the name and the type of the argument for intrinisc 2013-08-17 16:40:09 +00:00
Index Avoid using the 'index' namespace as scope. 2013-08-21 00:49:25 +00:00
Lex Split isFromMainFile into two functions. 2013-08-22 00:27:10 +00:00
Parse Revert "Implement a rudimentary form of generic lambdas." 2013-08-22 12:12:24 +00:00
Rewrite Split isFromMainFile into two functions. 2013-08-22 00:27:10 +00:00
Sema Revert "Implement a rudimentary form of generic lambdas." 2013-08-22 12:12:24 +00:00
Serialization Revert "Implement a rudimentary form of generic lambdas." 2013-08-22 12:12:24 +00:00
StaticAnalyzer Split isFromMainFile into two functions. 2013-08-22 00:27:10 +00:00
Tooling Tweak Replacement comparisons 2013-08-16 12:18:53 +00:00
CMakeLists.txt Rename libIDE to libIndex. 2013-08-17 00:40:41 +00:00
Makefile Rename libIDE to libIndex. 2013-08-17 00:40:41 +00:00