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

clang-tidy ignores NOLINT

XMLWordPrintable

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

      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?

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes