[clang] nonblocking/nonallocating attributes: 2nd pass caller/callee analysis (PR #99656)

Vlad Serebrennikov via cfe-commits cfe-commits at lists.llvm.org
Fri Jul 19 08:13:00 PDT 2024


================
@@ -891,6 +898,12 @@ class Sema final : public SemaBase {
                                        SourceLocation NewLoc,
                                        SourceLocation OldLoc);
 
+  /// Potentially add a FunctionDecl or BlockDecl to DeclsWithEffectsToVerify.
+  void maybeAddDeclWithEffects(const Decl *D, const FunctionEffectsRef &FX);
----------------
Endilll wrote:

This function is placed is `Sema.cpp` section `Sema.h`, but it's implemented in `SemaDecl.cpp`. You should make sure that other functions you add to `Sema.h` follow this guideline, too.

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


More information about the cfe-commits mailing list