[clang-tidy] adjust treating of array-of-pointers when 'AnalyzePointers' is deactivated
authorJonas Toth <development@jonas-toth.eu>
Sun, 25 Sep 2022 17:26:32 +0000 (19:26 +0200)
committerJonas Toth <development@jonas-toth.eu>
Mon, 26 Sep 2022 08:39:11 +0000 (10:39 +0200)
commite66345d54d5f5e803f54c1ace487d57bb11ee884
tree6cee8d5fb35fc27f772b4a6253ad16b4546141aa
parent5dcd6afa20881490b38f3d88c4e59b0b4ff33551
[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
clang-tools-extra/clang-tidy/misc/ConstCorrectnessCheck.cpp
clang-tools-extra/test/clang-tidy/checkers/misc/const-correctness-pointer-as-values.cpp
clang-tools-extra/test/clang-tidy/checkers/misc/const-correctness-values.cpp