diff options
author | Igor Kudrin <ikudrin@accesssoftek.com> | 2025-07-14 15:44:43 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-07-14 15:44:43 -0700 |
commit | 00dacf8c22f065cb52efb14cd091d441f19b319e (patch) | |
tree | 4f08dcec67d6cd6b89a7cd3602142e674702232c /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 244ebef1ddbc6a77f17c36562d4a4292654940a6 (diff) | |
download | llvm-00dacf8c22f065cb52efb14cd091d441f19b319e.zip llvm-00dacf8c22f065cb52efb14cd091d441f19b319e.tar.gz llvm-00dacf8c22f065cb52efb14cd091d441f19b319e.tar.bz2 |
[clang] Add -Wuninitialized-const-pointer (#148337)
This option is similar to -Wuninitialized-const-reference, but diagnoses
the passing of an uninitialized value via a const pointer, like in the
following code:
```
void foo(const int *);
void test() {
int v;
foo(&v);
}
```
This is an extract from #147221 as suggested in [this
comment](https://github.com/llvm/llvm-project/pull/147221#discussion_r2190998730).
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions