[clang] [OpenACC] Add 'clause' parsing infrastructure plus a few clauses (PR #75052)

Erich Keane via cfe-commits cfe-commits at lists.llvm.org
Wed Dec 13 07:16:05 PST 2023


================
@@ -69,6 +69,29 @@ OpenACCDirectiveKindEx getOpenACCDirectiveKind(Token Tok) {
       .Default(OpenACCDirectiveKindEx::Invalid);
 }
 
+// Translate single-token string representations to the OpenCC Clause Kind.
+OpenACCClauseKind getOpenACCClauseKind(Token Tok) {
----------------
erichkeane wrote:

They are instead in an anonymous namespace,which has the same effect with a much less likelihood of someone forgetting static :D

https://github.com/llvm/llvm-project/pull/75052


More information about the cfe-commits mailing list