llvm-project/clang/lib/Format
Daniel Jasper 9326f91922 clang-format: [JS] support optional methods.
Optional methods use ? tokens like this:

  interface X { y?(): z; }

It seems easiest to detect and disambiguate these from ternary
expressions by checking if the code is in a declaration context. Turns
out that that didn't quite work properly for interfaces in Java and JS,
and for JS file root contexts.

Patch by Martin Probst, thank you.

llvm-svn: 236488
2015-05-05 08:40:32 +00:00
..
BreakableToken.cpp clang-format: Fix crasher when splitting incomplete escape sequences. 2015-01-21 19:50:35 +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: Force aligning different brackets relative to each other. 2015-05-04 07:39:00 +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: NFC: Delete FormatToken::IsForEachMacro. Use a TokenType instead. 2015-05-04 09:22:29 +00:00
FormatToken.cpp clang-format: Fix crash on invalid code. 2015-01-19 10:51:42 +00:00
FormatToken.h clang-format: NFC: Delete FormatToken::IsForEachMacro. Use a TokenType instead. 2015-05-04 09:22:29 +00:00
Makefile
TokenAnnotator.cpp clang-format: [JS] support optional methods. 2015-05-05 08:40:32 +00:00
TokenAnnotator.h clang-format: Always align */& in multi-var DeclStmts. 2015-03-01 18:55:26 +00:00
UnwrappedLineFormatter.cpp clang-format: [JS] Do not collapse short interfaces. 2015-05-05 08:12:50 +00:00
UnwrappedLineFormatter.h clang-format: Support nested block formatting with ColumnLimit=0. 2015-04-23 09:23:17 +00:00
UnwrappedLineParser.cpp clang-format: [JS] support optional methods. 2015-05-05 08:40:32 +00:00
UnwrappedLineParser.h clang-format: [Java] Support anonymous classes after = and return. 2015-03-12 14:44:29 +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