================ @@ -8806,26 +8806,90 @@ static bool MustDelayAttributeArguments(const ParsedAttr &AL) { return false; } +static bool checkArmNewAttrMutualExclusion(Sema &S, const ParsedAttr &AL, + const FunctionProtoType *FPT, + FunctionType::ArmStateValue State, + StringRef StateName) { + std::string ArmNewStr = ---------------- rsandifo-arm wrote:
How about using a lambda to report the error message, taking the name of the function type attribute as argument? That would avoid some of the cut-&-paste, and would also avoid needing to construct `ArmNewStr` when there's no error to report. https://github.com/llvm/llvm-project/pull/76971 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits