Skip to content
Snippets Groups Projects
  1. Mar 21, 2016
  2. Feb 27, 2016
  3. Feb 23, 2016
  4. Feb 14, 2016
  5. Dec 18, 2015
  6. Oct 27, 2015
  7. Oct 07, 2015
  8. Oct 06, 2015
  9. Oct 05, 2015
  10. Sep 29, 2015
    • Daniel Jasper's avatar
      clang-format: Add a new brace style "custom" as well as flags to · 6cc91d4e
      Daniel Jasper authored
      control the individual braces. The existing choices for brace wrapping
      are now merely presets for the different flags that get expanded upon
      calling the reformat function.
      
      All presets have been chose to keep the existing formatting, so there
      shouldn't be any difference in formatting behavior.
      
      Also change the dump_format_style.py to properly document the nested
      structs that are used to keep these flags discoverable among all the
      configuration flags.
      
      git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@248802 91177308-0d34-0410-b5e6-96231b3b80d8
      6cc91d4e
  11. Aug 10, 2015
  12. Jul 12, 2015
  13. Jul 03, 2015
    • Birunthan Mohanathas's avatar
      clang-format: Add MacroBlock{Begin,End} options · 0af047c8
      Birunthan Mohanathas authored
      The MacroBlockBegin and MacroBlockEnd options make matching macro identifiers
      behave like '{' and '}', respectively, in terms of indentation.
      
      Mozilla code, for example, uses several macros that begin and end a scope.
      Previously, Clang-Format removed the indentation resulting in:
      
          MACRO_BEGIN(...)
          MACRO_ENTRY(...)
          MACRO_ENTRY(...)
          MACRO_END
      
      Now, using the options
      
          MacroBlockBegin: "^[A-Z_]+_BEGIN$"
          MacroBlockEnd: "^[A-Z_]+_END$"
      
      will yield the expected result:
      
          MACRO_BEGIN(...)
            MACRO_ENTRY(...)
            MACRO_ENTRY(...)
          MACRO_END
      
      Differential Revision: http://reviews.llvm.org/D10840
      
      
      git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@241363 91177308-0d34-0410-b5e6-96231b3b80d8
      0af047c8
  14. Jun 29, 2015
  15. Jun 27, 2015
  16. Jun 18, 2015
  17. Jun 11, 2015
  18. May 11, 2015
  19. Apr 29, 2015
    • Daniel Jasper's avatar
      clang-format: Add ability to align assignment operators. · aea0264e
      Daniel Jasper authored
      In Objective-C some style guides use a style where assignment operators are
      aligned, in an effort to increase code readability. This patch adds an option
      to the format library which allows this functionality. It is disabled by
      default for all the included styles, so it must be explicitly enabled.
      
      The option will change code such as:
        - (void)method {
            NSNumber *one = @1;
            NSNumber *twentyFive = @25;
        }
      
      to:
        - (void)method {
            NSNumber *one        = @1;
            NSNumber *twentyFive = @25;
        }
      
      Patch by Matt Oakes. Thank you!
      
      Accidentally reformatted all the tests...
      
      git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@236100 91177308-0d34-0410-b5e6-96231b3b80d8
      aea0264e
  20. Dec 02, 2014
  21. Oct 28, 2014
  22. Oct 09, 2014
  23. Oct 07, 2014
  24. Sep 16, 2014
  25. Sep 15, 2014
  26. Sep 10, 2014
  27. Sep 03, 2014
  28. Aug 26, 2014
  29. Aug 12, 2014
  30. Aug 06, 2014
  31. Aug 05, 2014
Loading