clang-format: Revamp function declaration/definition indentation.
Key changes: - Correctly (well ...) distinguish function declarations and variable declarations with ()-initialization. - Don't indent when breaking function declarations/definitions after the return type. - Indent variable declarations and typedefs when breaking after the type. This fixes llvm.org/PR17999. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@212591 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- include/clang/Format/Format.h 0 additions, 6 deletionsinclude/clang/Format/Format.h
- lib/Format/ContinuationIndenter.cpp 7 additions, 8 deletionslib/Format/ContinuationIndenter.cpp
- lib/Format/Format.cpp 0 additions, 4 deletionslib/Format/Format.cpp
- lib/Format/FormatToken.h 1 addition, 0 deletionslib/Format/FormatToken.h
- lib/Format/TokenAnnotator.cpp 43 additions, 4 deletionslib/Format/TokenAnnotator.cpp
- lib/Format/TokenAnnotator.h 2 additions, 3 deletionslib/Format/TokenAnnotator.h
- unittests/Format/FormatTest.cpp 33 additions, 28 deletionsunittests/Format/FormatTest.cpp
Loading
Please register or sign in to comment