[llvm-bugs] [Bug 32211] New: breaks clang-tidy annotation: // NOLINT(check)

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Mar 10 03:18:20 PST 2017


            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: unassignedclangbugs at nondot.org
          Reporter: gonzalobg88 at gmail.com
                CC: djasper at google.com, klimek at google.com,
                    llvm-bugs at lists.llvm.org


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

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/20170310/d9a56986/attachment-0001.html>

More information about the llvm-bugs mailing list