clang-format: [Java] Never treat @interface as annotation.
authorNico Weber <nicolasweber@gmx.de>
Mon, 10 Nov 2014 16:30:02 +0000 (16:30 +0000)
committerNico Weber <nicolasweber@gmx.de>
Mon, 10 Nov 2014 16:30:02 +0000 (16:30 +0000)
commita644d7f39c22e918c1368169e508048b7860e32e
tree176aaa006ba6bfdb85fe406a84d9cb528e479211
parent337f5b27adaa61395cba6af8fe1b2999dbc234fa
clang-format: [Java] Never treat @interface as annotation.

'@' followed by any keyword can't be an annotation, but @interface is currently
the only combination of '@' and a keyword that's allowed, so limit it to this
case. `@interface Foo` without a leading `public` was misformatted prior to
this patch.

llvm-svn: 221607
clang/lib/Format/FormatToken.h
clang/lib/Format/TokenAnnotator.cpp
clang/unittests/Format/FormatTestJava.cpp