<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Clang-tidy suppression comments and the WarningsAsErrors setting are ignored"
   href="https://bugs.llvm.org/show_bug.cgi?id=41218">41218</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Clang-tidy suppression comments and the WarningsAsErrors setting are ignored
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang-tools-extra
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>clangd
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>zeratul976@hotmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>hokein@google.com, ibiryukov@google.com, kadircetinkaya.06.tr@gmail.com, llvm-bugs@lists.llvm.org, sammccall@google.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>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] <a href="https://clang.llvm.org/extra/clang-tidy/#suppressing-undesired-diagnostics">https://clang.llvm.org/extra/clang-tidy/#suppressing-undesired-diagnostics</a></pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>