[clang] [clang] Implement __attribute__((format_matches)) (PR #116708)

Erich Keane via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 25 07:26:14 PST 2024


================
@@ -270,4 +270,9 @@ unsigned AlignedAttr::getAlignment(ASTContext &Ctx) const {
   return Ctx.getTargetDefaultAlignForAttributeAligned();
 }
 
+StringLiteral *FormatMatchesAttr::getFormatString() const {
+  // This cannot go in headers because StringLiteral and Expr may be incomplete.
----------------
erichkeane wrote:

This comment isn't really necessary/useful.  

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


More information about the cfe-commits mailing list