[clang] [clang][Sema] Stop format size estimator upon %p to adapt to linux kernel's extension (PR #65969)

Nick Desaulniers via cfe-commits cfe-commits at lists.llvm.org
Mon Sep 11 09:13:07 PDT 2023


================
@@ -429,7 +429,13 @@ bool clang::analyze_format_string::ParsePrintfString(FormatStringHandler &H,
     // we can recover from?
     if (!FSR.hasValue())
       continue;
-    // We have a format specifier.  Pass it to the callback.
+    // We have a format specifier.
+    // In case the handler needs to abort parsing upon specific specifiers
----------------
nickdesaulniers wrote:

End comment with correct punctuation.

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


More information about the cfe-commits mailing list