[all-commits] [llvm/llvm-project] e66345: [clang-tidy] adjust treating of array-of-pointers ...

Jonas Toth via All-commits all-commits at lists.llvm.org
Mon Sep 26 01:40:10 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e66345d54d5f5e803f54c1ace487d57bb11ee884
      https://github.com/llvm/llvm-project/commit/e66345d54d5f5e803f54c1ace487d57bb11ee884
  Author: Jonas Toth <development at jonas-toth.eu>
  Date:   2022-09-26 (Mon, 26 Sep 2022)

  Changed paths:
    M clang-tools-extra/clang-tidy/misc/ConstCorrectnessCheck.cpp
    M clang-tools-extra/test/clang-tidy/checkers/misc/const-correctness-pointer-as-values.cpp
    M clang-tools-extra/test/clang-tidy/checkers/misc/const-correctness-values.cpp

  Log Message:
  -----------
  [clang-tidy] adjust treating of array-of-pointers when 'AnalyzePointers' is deactivated

'misc-const-correctness' previously considered arrays as 'Values' independent of the type of the elements.
This is inconsistent with the configuration of the check to disable treating pointers as values.
This patch rectifies this inconsistency.

Fixes #56749

Reviewed By: njames93

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




More information about the All-commits mailing list