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

            Bug ID: 26650
           Summary: clang-format treats multiplication as pointer
                    dereference
           Product: clang
           Version: 3.6
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Formatter
          Assignee: unassignedclangb...@nondot.org
          Reporter: charles.r.h...@gmail.com
                CC: djas...@google.com, kli...@google.com,
                    llvm-bugs@lists.llvm.org
    Classification: Unclassified

Consider the following code:

    a=b*c;

clang-format correctly renders it as follows:

    a = b * c;

However, this breaks if a is a pointer which we must dereference:

    *a=b*c;

clang-format now renders this as:

    *a = b *c;

Note that it thinks we are dereferencing c, instead of multiplying by it!

-- 
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