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

            Bug ID: 27025
           Summary: Clang-format does not handle class keyword in
                    objective-c code
           Product: clang
           Version: 3.8
          Hardware: Macintosh
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Formatter
          Assignee: unassignedclangb...@nondot.org
          Reporter: richa...@uber.com
                CC: djas...@google.com, kli...@google.com,
                    llvm-bugs@lists.llvm.org
    Classification: Unclassified

Created attachment 16068
  --> https://llvm.org/bugs/attachment.cgi?id=16068&action=edit
Test case

When formatting objective-c code with method parameters named class, the
formatter starts misbehaving, presumably because it is formatting them as c++
classes? The attached test case ends up as:


- (void)functionWithClassParameter:(Class) class {
}

    - (void)hereIsAnotherFunction : (UIView *)parameter {
}

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to