[clang] [clang] Catch missing format attributes (PR #70024)

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 25 06:24:36 PDT 2023


================
@@ -10615,6 +10615,8 @@ class Sema final {
     ChangedStateAtExit
   };
 
+  void DiagnoseMissingFormatAttributes(NamedDecl *FDecl, SourceLocation Loc);
----------------
AaronBallman wrote:

```suggestion
  void DiagnoseMissingFormatAttributes(const NamedDecl *FDecl, SourceLocation Loc);
```
(If we can't add the `const` here because it's viral for some reason, then I don't insist on this change.)

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


More information about the cfe-commits mailing list