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

            Bug ID: 48537
           Summary: clang-format Thinks Minus Is Negative
           Product: new-bugs
           Version: 11.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedb...@nondot.org
          Reporter: gavin.d.how...@gmail.com
                CC: htmldevelo...@gmail.com, llvm-bugs@lists.llvm.org

Created attachment 24298
  --> https://bugs.llvm.org/attachment.cgi?id=24298&action=edit
Style file

clang-format can be tricked into thinking that a minus operator is a unary
negative operator.

Using the attached style file, run clang-format on
https://git.yzena.com/Yzena/Yc/src/commit/dadbb62db6023b532bf0bbe7d73303950710937f/src/map/map.h
. The spaces after the minus operators on lines 114 and 143 are removed.

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

Reply via email to