Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-20744

clang-tidy ignores NOLINT

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P3: Somewhat important
    • None
    • Qt Creator 4.7.0-rc1
    • None
    • 4.7.0 snapshot from Jul 6
    • Windows

    Description

      I wasn't able to get NOLINT comments to work at all. Either these or NOLINTNEXTLINE.

      Now clang-tidy add diagnostics in real time which is amazing. It's also able to emit clang and clang-analyzer warnings which is even more amazing!

      However, warnings added in realtime ignore the NOLINT and NOLINTNEXTLINE comments. For instance,

      operator t() const { return get(); } // NOLINT

      Same happens with NOLINTNEXTLINE or putting NOLINT in various places. Perhaps the comment is stripped for realtime analysis?

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              yvvan Ivan Donchevskii
              sthalik Stanislaw Halik
              Votes:
              5 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes