[all-commits] [llvm/llvm-project] 964436: [clang-tidy] Fix checks filter with warnings-as-er...

Piotr Zegar via All-commits all-commits at lists.llvm.org
Sat Jul 22 12:33:09 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9644368f974a095472832bbf9cd475ef5c2c307f
      https://github.com/llvm/llvm-project/commit/9644368f974a095472832bbf9cd475ef5c2c307f
  Author: Piotr Zegar <me at piotrzegar.pl>
  Date:   2023-07-22 (Sat, 22 Jul 2023)

  Changed paths:
    M clang-tools-extra/clang-tidy/ClangTidy.cpp
    M clang-tools-extra/clang-tidy/ClangTidyDiagnosticConsumer.cpp
    M clang-tools-extra/docs/ReleaseNotes.rst
    M clang-tools-extra/test/clang-tidy/infrastructure/warnings-as-errors-diagnostics.cpp

  Log Message:
  -----------
  [clang-tidy] Fix checks filter with warnings-as-errors

Since commit 5d12b13b0b26bc58b02ee23c369da8b83240cceb, warnings are
internally classified as errors which skip the check filters.

One use-case is particularly affected: you cannot selectively disable
clang-analyzer-core checks, they are force-enabled because required by others.
So enabling warning as errors will show new (and unwanted) errors !

Co-authored-by: kiwixz <kiwixz at outlook.com>

Fixes: #61969

Reviewed By: carlosgalvezp

Differential Revision: https://reviews.llvm.org/D146520




More information about the All-commits mailing list