[clang] [C] Warn on uninitialized const objects (PR #137166)
Erich Keane via cfe-commits
cfe-commits at lists.llvm.org
Thu Apr 24 07:16:07 PDT 2025
================
@@ -6496,6 +6496,17 @@ static bool canPerformArrayCopy(const InitializedEntity &Entity) {
return false;
}
+static const FieldDecl *GetConstField(const RecordDecl *RD) {
----------------
erichkeane wrote:
```suggestion
static const FieldDecl *getConstField(const RecordDecl *RD) {
```
Also, does this need to consider base types?
https://github.com/llvm/llvm-project/pull/137166
More information about the cfe-commits
mailing list