[clang] bf43a13 - [clang] Initialize DeclaratorDecl.ExtInfo.TInfo to null (#114198)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Nov 4 23:57:56 PST 2024
Author: Boaz Brickner
Date: 2024-11-05T08:57:52+01:00
New Revision: bf43a138f0a6220cd043a376200bd739cacb25e3
URL: https://github.com/llvm/llvm-project/commit/bf43a138f0a6220cd043a376200bd739cacb25e3
DIFF: https://github.com/llvm/llvm-project/commit/bf43a138f0a6220cd043a376200bd739cacb25e3.diff
LOG: [clang] Initialize DeclaratorDecl.ExtInfo.TInfo to null (#114198)
I believe this has no effect current behavior but would make code safer
in case we forget to initialize this.
Added:
Modified:
clang/include/clang/AST/Decl.h
Removed:
################################################################################
diff --git a/clang/include/clang/AST/Decl.h b/clang/include/clang/AST/Decl.h
index 7ff35d73df5997..8c39ef3d5a9fa6 100644
--- a/clang/include/clang/AST/Decl.h
+++ b/clang/include/clang/AST/Decl.h
@@ -737,7 +737,7 @@ class DeclaratorDecl : public ValueDecl {
// qualifier, to be used for the (uncommon) case of out-of-line declarations
// and constrained function decls.
struct ExtInfo : public QualifierInfo {
- TypeSourceInfo *TInfo;
+ TypeSourceInfo *TInfo = nullptr;
Expr *TrailingRequiresClause = nullptr;
};
More information about the cfe-commits
mailing list