================
@@ -366,6 +389,101 @@ getFunctionSourceCode(const FunctionDecl *FD, const 
DeclContext *TargetContext,
       DelKeyword(tok::kw_explicit, {FD->getBeginLoc(), FD->getLocation()});
   }
 
+  // Drop attributes that the out-of-line definition inherits from the
+  // declaration. Ones we can't safely locate are left alone.
+  // FIXME: Attributes coing from macros and attributes unknown to clang (which
----------------
max-winkler wrote:

Done

https://github.com/llvm/llvm-project/pull/242635
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to