[clang] [llvm] [clang] "modular_format" attribute for functions using format strings (PR #147431)

Erich Keane via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 12 11:31:55 PST 2025


================
@@ -2569,6 +2569,18 @@ void CodeGenModule::ConstructAttributeList(StringRef Name,
 
     if (TargetDecl->hasAttr<ArmLocallyStreamingAttr>())
       FuncAttrs.addAttribute("aarch64_pstate_sm_body");
+
+    if (auto *ModularFormat = TargetDecl->getAttr<ModularFormatAttr>()) {
+      // TODO: Error checking
----------------
erichkeane wrote:

Just another ping here, I saw a little bit of error checking above, but probably this comment should disappear/that should be fleshed out.

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


More information about the llvm-commits mailing list