hanchenye-llvm-project/clang/lib/Format
Manuel Klimek 79e06081a3 clang-format: [JS] Better support for fat arrows.
Assigns a token type (TT_JsFatArrow) to => tokens, and uses that to
more easily recognize and format fat arrow functions.
Improves function parsing to better recognize formal parameter
lists and return type declarations.
Recognizes arrow functions and parse function bodies as child blocks.

Patch by Martin Probst.

llvm-svn: 237895
2015-05-21 12:23:34 +00:00
..
BreakableToken.cpp clang-format: Fix bug in multiline comment wrapping. 2015-05-06 07:17:22 +00:00
BreakableToken.h Fix assertion in BreakableBlockComment (http://llvm.org/PR21916). 2015-01-12 13:11:12 +00:00
CMakeLists.txt clang-format: Factor out UnwrappedLineFormatter into a separate file. 2014-12-10 19:00:42 +00:00
ContinuationIndenter.cpp clang-format: Improve detection of macros annotating functions. 2015-05-18 13:47:23 +00:00
ContinuationIndenter.h clang-format: Revamp nested block formatting. 2014-12-12 09:40:58 +00:00
Encoding.h Header guard canonicalization, clang part. 2014-08-13 16:25:19 +00:00
Format.cpp clang-format: [JS] Better support for fat arrows. 2015-05-21 12:23:34 +00:00
FormatToken.cpp clang-format: Don't use column layout in lists that have separating 2015-05-15 09:41:59 +00:00
FormatToken.h clang-format: [JS] Better support for fat arrows. 2015-05-21 12:23:34 +00:00
Makefile
TokenAnnotator.cpp clang-format: Add space in function pointers with SpaceBeforeParens=Always 2015-05-19 16:54:26 +00:00
TokenAnnotator.h clang-format: Always align */& in multi-var DeclStmts. 2015-03-01 18:55:26 +00:00
UnwrappedLineFormatter.cpp clang-format: Make member introduced in r237108 const. 2015-05-12 11:14:06 +00:00
UnwrappedLineFormatter.h Refactor clang-format's formatter. 2015-05-12 09:23:57 +00:00
UnwrappedLineParser.cpp clang-format: [JS] Better support for fat arrows. 2015-05-21 12:23:34 +00:00
UnwrappedLineParser.h clang-format: [JS] Better support for fat arrows. 2015-05-21 12:23:34 +00:00
WhitespaceManager.cpp clang-format: Add ability to align assignment operators. 2015-04-29 13:06:49 +00:00
WhitespaceManager.h clang-format: Add ability to align assignment operators. 2015-04-29 13:06:49 +00:00