[llvm-bugs] [Bug 32060] New: Regression(282138:293675): clang-format inserts newline before final ; on enums in files containing Obj-C method declarations, in .h files

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Feb 24 08:22:00 PST 2017


https://bugs.llvm.org/show_bug.cgi?id=32060

            Bug ID: 32060
           Summary: Regression(282138:293675):  clang-format inserts
                    newline before final ; on enums in files containing
                    Obj-C method declarations, in .h files
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Formatter
          Assignee: unassignedclangbugs at nondot.org
          Reporter: nicolasweber at gmx.de
                CC: djasper at google.com, klimek at google.com,
                    llvm-bugs at lists.llvm.org

thakis at thakis:~/src/chrome/src$ cat test.h
enum A {};
@interface I
- (void)f;
@end


thakis at thakis:~/src/chrome/src$ buildtools/linux64/clang-format --version
clang-format version 4.0.0 (trunk 282138)
thakis at thakis:~/src/chrome/src$ buildtools/linux64/clang-format test.h
enum A {};
@interface I
- (void)f;
@end


thakis at thakis:~/src/chrome/src$ buildtools/linux64/clang-format --version
clang-format version 5.0.0 (trunk 293675)
thakis at thakis:~/src/chrome/src$ buildtools/linux64/clang-format test.h
enum A {}
;
@interface I
- (void)f;
@end



This is a pretty bad regression if you use Objective-C :-/

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20170224/b80658bd/attachment.html>


More information about the llvm-bugs mailing list