[PATCH] Append CXXDefaultInitExpr's wrapped expression to the CFG when visiting a constructor initializer

Enrico Pertoso epertoso at google.com
Thu Feb 6 07:34:39 PST 2014



================
Comment at: lib/Analysis/CFG.cpp:773-775
@@ -772,1 +772,5 @@
     }
+    CXXDefaultInitExpr *Default;
+    if (BuildOpts.AddCXXDefaultInitExprInCtors &&
+        (Default = dyn_cast<CXXDefaultInitExpr>(Init))) {
+      // In general, appending the expression wrapped by a CXXDefaultInitExpr
----------------
Jordan Rose wrote:
> I would do this using nested ifs but otherwise this looks good.
Done.


http://llvm-reviews.chandlerc.com/D2370



More information about the cfe-commits mailing list