[all-commits] [llvm/llvm-project] a65a3b: [clang-tidy] Don't treat invalid branches as ident...

Ishaan Gandhi via All-commits all-commits at lists.llvm.org
Sun Jul 3 14:51:07 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a65a3bffd31f57243929b0f50abbd90bd626faee
      https://github.com/llvm/llvm-project/commit/a65a3bffd31f57243929b0f50abbd90bd626faee
  Author: Ishaan Gandhi <ishaangandhi at gmail.com>
  Date:   2022-07-03 (Sun, 03 Jul 2022)

  Changed paths:
    M clang-tools-extra/clang-tidy/bugprone/BranchCloneCheck.cpp
    M clang-tools-extra/docs/ReleaseNotes.rst
    A clang-tools-extra/test/clang-tidy/checkers/bugprone/branch-clone-unknown-expr.cpp

  Log Message:
  -----------
  [clang-tidy] Don't treat invalid branches as identical

The clang-tidy check bugprone-branch-clone has a false positive if some
symbols are undefined. This patch silences the warning when the two
sides of a branch are invalid.

Fixes #56057

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




More information about the All-commits mailing list