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

            Bug ID: 32211
           Summary: breaks clang-tidy annotation: // NOLINT(check)
           Product: clang
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Formatter
          Assignee: unassignedclangb...@nondot.org
          Reporter: gonzalob...@gmail.com
                CC: djas...@google.com, kli...@google.com,
                    llvm-bugs@lists.llvm.org

given

template <typename T> struct A { }; // NOLINT(some-check-name)

clang-format changes the program to 

template <typename T> 
struct A 
{ 
}; // NOLINT(some-check-name)

Moving the // NOLINT annotation to a different line, and thus breaking
clang-tidy builds.

Clang-format should never ever change anything in a line containing a // NOLINT
annotation.

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