aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Sema/SemaExceptionSpec.cpp
diff options
context:
space:
mode:
authorerichkeane <ekeane@nvidia.com>2025-01-03 10:00:12 -0800
committererichkeane <ekeane@nvidia.com>2025-01-06 11:03:18 -0800
commit21c785d7bd84df0b9176d48e7c3e74c914aae05a (patch)
tree373dfe7be6f1e62f067913eab16c7c20bbdf9d13 /clang/lib/Sema/SemaExceptionSpec.cpp
parent3f936251d280d039d0a227247afd6884163e8a9a (diff)
downloadllvm-21c785d7bd84df0b9176d48e7c3e74c914aae05a.zip
llvm-21c785d7bd84df0b9176d48e7c3e74c914aae05a.tar.gz
llvm-21c785d7bd84df0b9176d48e7c3e74c914aae05a.tar.bz2
[OpenACC] Implement 'set' construct sema
The 'set' construct is another fairly simple one, it doesn't have an associated statement and only a handful of allowed clauses. This patch implements it and all the rules for it, allowing 3 of its for clauses. The only exception is default_async, which will be implemented in a future patch, because it isn't just being enabled, it needs a complete new implementation.
Diffstat (limited to 'clang/lib/Sema/SemaExceptionSpec.cpp')
-rw-r--r--clang/lib/Sema/SemaExceptionSpec.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Sema/SemaExceptionSpec.cpp b/clang/lib/Sema/SemaExceptionSpec.cpp
index ac36663..94f59bb 100644
--- a/clang/lib/Sema/SemaExceptionSpec.cpp
+++ b/clang/lib/Sema/SemaExceptionSpec.cpp
@@ -1401,6 +1401,7 @@ CanThrowResult Sema::canThrow(const Stmt *S) {
case Stmt::OpenACCWaitConstructClass:
case Stmt::OpenACCInitConstructClass:
case Stmt::OpenACCShutdownConstructClass:
+ case Stmt::OpenACCSetConstructClass:
// These expressions can never throw.
return CT_Cannot;