diff options
author | Daniel Jasper <djasper@google.com> | 2015-03-12 14:44:29 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2015-03-12 14:44:29 +0000 |
commit | d216a8f7c6428c38f63f61b94ea77af31f2dc8db (patch) | |
tree | fd1577c9df2c266f3cb87ec0b9311e7b98a0f001 /lib/Format/UnwrappedLineParser.h | |
parent | bcf994970a004598574cc45565be0b7f55cb8524 (diff) |
clang-format: [Java] Support anonymous classes after = and return.
Before:
A a = new A(){public String toString(){return "NotReallyA";
}
}
;
After:
A a = return new A() {
public String toString() {
return "NotReallyA";
}
};
This fixes llvm.org/PR22878.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@232042 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Format/UnwrappedLineParser.h')
-rw-r--r-- | lib/Format/UnwrappedLineParser.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Format/UnwrappedLineParser.h b/lib/Format/UnwrappedLineParser.h index 4b953ea607..76c62cdc1d 100644 --- a/lib/Format/UnwrappedLineParser.h +++ b/lib/Format/UnwrappedLineParser.h @@ -95,6 +95,7 @@ private: void parseCaseLabel(); void parseSwitch(); void parseNamespace(); + void parseNew(); void parseAccessSpecifier(); void parseEnum(); void parseJavaEnumBody(); |