[llvm-branch-commits] [clang] [clang] "modular_format" attribute for functions using format strings (PR #147431)
Erich Keane via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Wed Jul 16 06:24:22 PDT 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:
This is a heck of a TODO :) Though, I'd expect us to do diagnostics during our normal checking of the format string, so we shouldn't really require anything here.
https://github.com/llvm/llvm-project/pull/147431
More information about the llvm-branch-commits
mailing list