================
@@ -48,9 +48,15 @@ class LifetimeSafetyReporter {
                                     SourceLocation ExpiryLoc,
                                     Confidence Confidence) {}
 
-  // Suggests lifetime bound annotations for function paramters
-  virtual void suggestAnnotation(const ParmVarDecl *PVD,
-                                 const Expr *EscapeExpr) {}
+  // Suggest private lifetime bound annotations for function parameters 
internal
+  // to the existing file.
+  virtual void suggestAnnotationsPrivate(const ParmVarDecl *ParmToAnnotate,
+                                         const Expr *EscapeExpr) {}
+
+  // Suggest public lifetime bound annotations for function parameters external
+  // to other files.
+  virtual void suggestAnnotationsPublic(const ParmVarDecl *ParmToAnnotate,
+                                        const Expr *EscapeExpr) {}
 };
----------------
usx95 wrote:

We can merge these into a single function accepting another param of enum 
SuggestionScope {CrossTU/IntraTU}

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

Reply via email to