[llvm-bugs] [Bug 24380] New: ObjC: cannot disable clang-format on class declaration parameterized with lightweight generics

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Aug 6 10:45:11 PDT 2015


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

            Bug ID: 24380
           Summary: ObjC: cannot disable clang-format on class declaration
                    parameterized with lightweight generics
           Product: clang
           Version: unspecified
          Hardware: Macintosh
                OS: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: Formatter
          Assignee: unassignedclangbugs at nondot.org
          Reporter: evergreenthrowaway at gmail.com
                CC: djasper at google.com, klimek at google.com,
                    llvm-bugs at lists.llvm.org
    Classification: Unclassified

This is wrong.

INPUT1
echo "/* clang-format off */ @interface MyClass<KeyType:id<NSCopying>>@end /*
clang-format on */" | clang-format

OUTPUT1
/* clang-format off */ @interface MyClass<KeyType:id<NSCopying>
>@end /* clang-format on */

This is right.

INPUT2
echo "/* clang-format off */ @interface MyClass<KeyType:NSString*>@end /*
clang-format on */" | clang-format 

OUTPUT2
/* clang-format off */ @interface MyClass<KeyType:NSString*>@end /*
clang-format on */

-- 
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/20150806/d47edb42/attachment-0001.html>


More information about the llvm-bugs mailing list