llvm-project/clang/lib/Format
Daniel Jasper e31388aee9 [clang-format] Don't allow newline after uppercase Obj-C block return types
Fixes the following:
  BOOL (^aaa)(void) = ^BOOL {
  };

The first BOOL's token was getting set to TT_FunctionAnnotationRParen
incorrectly, which was causing an unexpected newline after (^aaa). This
was introduced in r245846.

Patch by Kent Sutherland, thank you!

llvm-svn: 282448
2016-09-26 22:19:08 +00:00
..
AffectedRangeManager.cpp Added Fixer implementation and fix() interface in clang-format for removing redundant code. 2016-04-25 15:09:22 +00:00
AffectedRangeManager.h removed redundant '#' 2016-04-28 07:52:06 +00:00
BreakableToken.cpp clang-format: clang-format (NFC) 2015-06-17 13:08:06 +00:00
BreakableToken.h Roll-back r250822. 2015-10-20 13:23:58 +00:00
CMakeLists.txt clang-format: [JS] sort ES6 imports. 2016-05-20 11:24:24 +00:00
ContinuationIndenter.cpp [NFC] Header cleanup 2016-07-18 19:02:11 +00:00
ContinuationIndenter.h Addressed reviewer's post-submission comments from http://reviews.llvm.org/D18551. 2016-04-28 07:52:03 +00:00
Encoding.h Add missing include for StringRef (NFC) 2016-04-18 09:08:59 +00:00
Format.cpp [clang-format] support header deletion in cleanupAroundReplacemnts. 2016-09-23 15:10:56 +00:00
FormatToken.cpp [NFC] Header cleanup 2016-07-18 19:02:11 +00:00
FormatToken.h clang-format: [JS] recognize more type locations. 2016-06-23 19:52:32 +00:00
FormatTokenLexer.cpp clang-format: [JS] Fix a crash in handledTemplateStrings. 2016-09-17 07:20:36 +00:00
FormatTokenLexer.h clang-format: [JS] nested and tagged template strings. 2016-08-25 10:13:21 +00:00
SortJavaScriptImports.cpp clang-format: [JS] Fix line breaks before comments when sorting imports. 2016-09-19 07:02:34 +00:00
SortJavaScriptImports.h clang-format: [JS] sort ES6 imports. 2016-05-20 11:24:24 +00:00
TokenAnalyzer.cpp clang-format: [JS] merge requoting replacements. 2016-09-02 14:29:48 +00:00
TokenAnalyzer.h clang-format: [JS] merge requoting replacements. 2016-09-02 14:29:48 +00:00
TokenAnnotator.cpp [clang-format] Don't allow newline after uppercase Obj-C block return types 2016-09-26 22:19:08 +00:00
TokenAnnotator.h [NFC] Header cleanup 2016-07-18 19:02:11 +00:00
UnwrappedLineFormatter.cpp [NFC] Header cleanup 2016-07-18 19:02:11 +00:00
UnwrappedLineFormatter.h [NFC] Header cleanup 2016-07-18 19:02:11 +00:00
UnwrappedLineParser.cpp clang-format: [JS] ASI insertion after boolean literals. 2016-09-18 17:21:52 +00:00
UnwrappedLineParser.h clang-format: [JS] Handle certain cases of ASI. 2016-03-14 19:21:36 +00:00
WhitespaceManager.cpp Implement tooling::Replacements as a class. 2016-08-01 10:16:37 +00:00
WhitespaceManager.h Addressed reviewer's post-submission comments from http://reviews.llvm.org/D18551. 2016-04-28 07:52:03 +00:00