================
@@ -313,6 +232,9 @@ class StreamChecker : public Checker<check::PreCall, 
eval::Call,
   BugType BT_ResourceLeak{this, "Resource leak", "Stream handling error",
                           /*SuppressOnSink =*/true};
 
+  const char *FeofNote = "Assuming stream reaches end-of-file here";
+  const char *FerrorNote = "Assuming this stream operation fails";
----------------
balazske wrote:

I would leave these as `const char *` in the file scope. `std::string` is 
probably not good for global (or static) variables.

https://github.com/llvm/llvm-project/pull/83288
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to