================
@@ -478,6 +478,31 @@ class FactGenerator : public 
ConstStmtVisitor<FactGenerator> {
     }
   }
 
+  void VisitCXXConstructExpr(const CXXConstructExpr *CCE) {
+    if (!isGslPointerType(CCE->getType()))
----------------
ymand wrote:

If all of the code here is gsl pointer related, then I suggest factoring into a 
named function. In my experience, VisitCXXConstructExpr will grow to model 
other cases...

Otherwise, clearly indicate in comments.

https://github.com/llvm/llvm-project/pull/154009
_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to