]> granicus.if.org Git - clang/commit
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)
commitae1c3ef1cf20df7c8d7828364d5f0412042604e8
tree23cd268219faa4d93fe05a786e87f71c53a87b9e
parent8390f779282181f3ed90bff0f68681c46df35f1a
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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@221607 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Format/FormatToken.h
lib/Format/TokenAnnotator.cpp
unittests/Format/FormatTestJava.cpp