llvm-project/clang/unittests/Format
Hans Wennborg 749c1b597a Java annotation declaration being handled correctly
Previously, Java annotation declarations (@interface AnnotationName) were being
handled as ObjC interfaces. This caused the brace formatting to mess up, so
that when you had a class with an interface defined in it, it would indent the
final brace of the class.

It used to format this class like so:

  class A {
    @interface B {}
    }

But will now just skip the @interface and format it like so:

  class A {
    @interface B {}
  }

Patch by Sam Maier!

Differential Revision: https://reviews.llvm.org/D53434

llvm-svn: 344789
2018-10-19 16:19:52 +00:00
..
CMakeLists.txt [clang-format] Java import sorting in clang-format 2018-10-05 17:19:26 +00:00
CleanupTest.cpp [Tooling] Pull #include manipulation code from clangFormat into libToolingCore. 2018-05-14 20:17:53 +00:00
FormatTest.cpp Lift VFS from clang to llvm (NFC) 2018-10-10 13:27:25 +00:00
FormatTestComments.cpp clang-format: fix a crash in comment wraps. 2018-08-02 11:52:08 +00:00
FormatTestJS.cpp clang-format: [JS] conditional types. 2018-09-27 06:48:13 +00:00
FormatTestJava.cpp Java annotation declaration being handled correctly 2018-10-19 16:19:52 +00:00
FormatTestObjC.cpp [clang-format] Fix BraceWrapping AfterFunction for ObjC methods 2018-10-12 19:43:01 +00:00
FormatTestProto.cpp clang-format: Change Google style wrt. the formatting of empty messages. 2018-08-15 19:07:55 +00:00
FormatTestRawStrings.cpp [clang-format] Do not format raw string literals inside a recognized function with a non-recognized delimiter 2018-06-28 16:58:24 +00:00
FormatTestSelective.cpp [clang] Update uses of DEBUG macro to LLVM_DEBUG. 2018-05-15 13:30:56 +00:00
FormatTestTextProto.cpp [clang-format] Fix comment, NFC 2018-08-13 14:32:29 +00:00
FormatTestUtils.h clang-format: Add preprocessor directive indentation 2017-08-30 14:34:57 +00:00
NamespaceEndCommentsFixerTest.cpp [clang] Update uses of DEBUG macro to LLVM_DEBUG. 2018-05-15 13:30:56 +00:00
SortImportsTestJS.cpp clang-format: [JS] support default imports. 2017-08-01 15:54:43 +00:00
SortImportsTestJava.cpp [clang-format] Java import sorting in clang-format 2018-10-05 17:19:26 +00:00
SortIncludesTest.cpp [clang-format] Move #include related style to libToolingCore 2018-05-14 19:51:33 +00:00
UsingDeclarationsSorterTest.cpp [clang] Update uses of DEBUG macro to LLVM_DEBUG. 2018-05-15 13:30:56 +00:00