[clang] [clang] WIP: Warn on mismatched RequiresCapability attributes (PR #67520)
    Aaron Puchert via cfe-commits 
    cfe-commits at lists.llvm.org
       
    Wed Oct  2 15:24:27 PDT 2024
    
    
  
Timm =?utf-8?q?Bäder?= <tbaeder at redhat.com>,
Timm =?utf-8?q?Bäder?= <tbaeder at redhat.com>,
Timm =?utf-8?q?Bäder?= <tbaeder at redhat.com>,
Timm =?utf-8?q?Bäder?= <tbaeder at redhat.com>,
Timm =?utf-8?q?Bäder?= <tbaeder at redhat.com>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/67520 at github.com>
================
@@ -2263,6 +2265,28 @@ static bool neverReturns(const CFGBlock *B) {
   return false;
 }
 
+void ThreadSafetyAnalyzer::checkMismatchedFunctionAttrs(
+    const FunctionDecl *FD) {
+  FD = FD->getMostRecentDecl();
----------------
aaronpuchert wrote:
That probably doesn't do anything, I think we're always analyzing the most recent declaration. But maybe I'm wrong.
https://github.com/llvm/llvm-project/pull/67520
    
    
More information about the cfe-commits
mailing list