[clang] [Clang] restrict use of attribute names reserved by the C++ standard (PR #106036)
    via cfe-commits 
    cfe-commits at lists.llvm.org
       
    Sun Aug 25 23:01:17 PDT 2024
    
    
  
================
@@ -177,6 +177,26 @@ static bool isLanguageDefinedBuiltin(const SourceManager &SourceMgr,
   return false;
 }
 
+static bool isReservedAttrName(Preprocessor &PP, IdentifierInfo *II) {
----------------
cor3ntin wrote:
`likely` is reserved, `likely()` is not.
Also, as we support attributes in older language modes as extensions so we should take that into account.
Does C has similar restrictions?
https://github.com/llvm/llvm-project/pull/106036
    
    
More information about the cfe-commits
mailing list