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

Vlad Serebrennikov via cfe-commits cfe-commits at lists.llvm.org
Fri Apr 5 06:43:42 PDT 2024


================
@@ -1698,6 +1698,9 @@ class Sema final {
     ChangedStateAtExit
   };
 
+  void DiagnoseMissingFormatAttributes(const FunctionDecl *FDecl,
----------------
Endilll wrote:

This declaration is placed among functions implemented in `SemaAttr.cpp`, as you might see around line 1296, but its implementation is placed in `SemaDeclAttr.cpp`. Declarations of functions in this file have their own section in `Sema.h`, which starts around line 3690. This discrepancy should be fixed one way or another.

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


More information about the cfe-commits mailing list