[clang] [clang][dataflow] When analyzing ctors, don't initialize fields of `*this` with values. (PR #84164)

Yitzhak Mandelbaum via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 7 05:57:19 PST 2024


================
@@ -799,6 +806,16 @@ PointerValue &Environment::getOrCreateNullPointerValue(QualType PointeeType) {
   return DACtx->getOrCreateNullPointerValue(PointeeType);
 }
 
+void Environment::initializeFieldsWithValues(RecordStorageLocation &Loc) {
----------------
ymand wrote:

I don't know of any convention. I tend not to anchor on header order, but YMMV.  Up to you.

https://github.com/llvm/llvm-project/pull/84164


More information about the cfe-commits mailing list