[clang] Add clang atomic control options and attribute (PR #114841)
Yaxun Liu via cfe-commits
cfe-commits at lists.llvm.org
Wed Feb 26 17:06:14 PST 2025
================
@@ -625,6 +625,43 @@ static Attr *handleHLSLControlFlowHint(Sema &S, Stmt *St, const ParsedAttr &A,
return ::new (S.Context) HLSLControlFlowHintAttr(S.Context, A);
}
+static Attr *handleAtomicAttr(Sema &S, Stmt *St, const ParsedAttr &A,
+ SourceRange Range) {
+ if (!isa<CompoundStmt>(St)) {
----------------
yxsamliu wrote:
You are right. The CompoundStmt check is not necessary since equivalent check is done in Parser. Will remove this check here.
https://github.com/llvm/llvm-project/pull/114841
More information about the cfe-commits
mailing list