[llvm-bugs] [Bug 41218] New: Clang-tidy suppression comments and the WarningsAsErrors setting are ignored

via llvm-bugs llvm-bugs at lists.llvm.org
Sun Mar 24 19:16:31 PDT 2019


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

            Bug ID: 41218
           Summary: Clang-tidy suppression comments and the
                    WarningsAsErrors setting are ignored
           Product: clang-tools-extra
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: clangd
          Assignee: unassignedclangbugs at nondot.org
          Reporter: zeratul976 at hotmail.com
                CC: hokein at google.com, ibiryukov at google.com,
                    kadircetinkaya.06.tr at gmail.com,
                    llvm-bugs at lists.llvm.org, sammccall at google.com

When using clangd's clang-tidy integration, some customization mechanisms that
work with standalone clang-tidy, do not work.

This includes:

  * Suppressing specific diagnostics using suppression
    comments as documented here [1].

  * Using the WarningsAsErrors option in the .clang-tidy
    config file to upgrade some checks from warnings to
    errors.

The reason these don't work is that they are handled in
ClangTidyDiagnosticConsumer, but the clangd integration does not use this
component.

[1] https://clang.llvm.org/extra/clang-tidy/#suppressing-undesired-diagnostics

-- 
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/20190325/0f84ad47/attachment.html>


More information about the llvm-bugs mailing list