[all-commits] [llvm/llvm-project] 479ea2: [analyzer] Check the checker name, rather than the...

Kristóf Umann via All-commits all-commits at lists.llvm.org
Wed May 19 03:40:42 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 479ea2a8ed95544d2f5aaede34bfe5c298ae8bdb
      https://github.com/llvm/llvm-project/commit/479ea2a8ed95544d2f5aaede34bfe5c298ae8bdb
  Author: Kristóf Umann <dkszelethus at gmail.com>
  Date:   2021-05-19 (Wed, 19 May 2021)

  Changed paths:
    M clang/lib/StaticAnalyzer/Core/BugReporter.cpp
    M clang/test/Analysis/malloc.cpp
    A clang/test/Analysis/silence-checkers-malloc.cpp

  Log Message:
  -----------
  [analyzer] Check the checker name, rather than the ProgramPointTag when silencing a checker

The program point created by the checker, even if it is an error node,
might not be the same as the name under which the report is emitted.
Make sure we're checking the name of the checker, because thats what
we're silencing after all.

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




More information about the All-commits mailing list