This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGe66345d54d5f: [clang-tidy] adjust treating of
array-of-pointers when AnalyzePointers is… (authored by JonasToth).
Repository:
rG LLVM Github
JonasToth updated this revision to Diff 462838.
JonasToth added a comment.
- remove unproductive check-fixes line
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D130793/new/
https://reviews.llvm.org/D130793
Files:
njames93 accepted this revision.
njames93 added a comment.
This revision is now accepted and ready to land.
LGTM, just with one small testing nit
Comment at:
clang-tools-extra/test/clang-tidy/checkers/misc/const-correctness-values.cpp:533
+ int *np_local0[2] = {nullptr,
JonasToth marked an inline comment as done.
JonasToth added a comment.
ping @njames93 :)
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D130793/new/
https://reviews.llvm.org/D130793
___
cfe-commits
JonasToth added inline comments.
Comment at:
clang-tools-extra/test/clang-tidy/checkers/misc/const-correctness-pointer-as-values.cpp:27-30
+ for (const int *p_local1 : p_local0) {
+ // CHECK-MESSAGES: [[@LINE-1]]:8: warning: variable 'p_local1' of type
'const int *' can be
njames93 added inline comments.
Comment at:
clang-tools-extra/test/clang-tidy/checkers/misc/const-correctness-pointer-as-values.cpp:27-30
+ for (const int *p_local1 : p_local0) {
+ // CHECK-MESSAGES: [[@LINE-1]]:8: warning: variable 'p_local1' of type
'const int *' can be
JonasToth updated this revision to Diff 454032.
JonasToth added a comment.
- remove bad change from diff
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D130793/new/
https://reviews.llvm.org/D130793
Files:
JonasToth updated this revision to Diff 454031.
JonasToth marked an inline comment as done.
JonasToth added a comment.
- split patch
- remove unnecessary includes
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D130793/new/
njames93 added inline comments.
Comment at: clang-tools-extra/clang-tidy/misc/ConstCorrectnessCheck.cpp:14
#include "clang/ASTMatchers/ASTMatchers.h"
+#include "llvm/Support/Casting.h"
Typically don't need this include.
Comment at:
JonasToth updated this revision to Diff 450359.
JonasToth added a comment.
- improve test
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D130793/new/
https://reviews.llvm.org/D130793
Files:
JonasToth updated this revision to Diff 450358.
JonasToth added a comment.
- add test with typedef
- [docs] improve documentation for misc-const-correctness
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D130793/new/
https://reviews.llvm.org/D130793
JonasToth added inline comments.
Comment at:
clang-tools-extra/test/clang-tidy/checkers/misc/const-correctness-pointer-as-values.cpp:16
+void range_for() {
+ int np_local0[2] = {1, 2};
+ int *p_local0[2] = {_local0[0], _local0[1]};
the tests must be exanded
JonasToth created this revision.
JonasToth added reviewers: njames93, aaron.ballman, alexfh.
Herald added subscribers: carlosgalvezp, xazax.hun.
Herald added a project: All.
JonasToth requested review of this revision.
Herald added a project: clang-tools-extra.
Herald added a subscriber:
13 matches
Mail list logo