================
@@ -1627,15 +1661,20 @@ bool SemaARM::checkTargetClonesAttr(
const StringRef Param = Params[I].trim();
const SourceLocation &Loc = Locs[I];
- if (Param.empty())
+ auto [LHS, RHS] = Param.split(';');
+ bool HasPriority = !RHS.empty() && RHS.consume_front("priority=");
----------------
peterwaller-arm wrote:
Is it worth trimming whitespace here? If a user wrote a space after the
semicolon: `feature; priority=x` the priority could be silently ignored.
https://github.com/llvm/llvm-project/pull/150267
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits