[clang] [OpenACC] Implement initial parsing for Construct/Directive Names (PR #72661)
Alexey Bataev via cfe-commits
cfe-commits at lists.llvm.org
Fri Nov 17 07:21:41 PST 2023
================
@@ -10,18 +10,240 @@
//
//===----------------------------------------------------------------------===//
+#include "clang/Basic/OpenACCKinds.h"
#include "clang/Parse/ParseDiagnostic.h"
#include "clang/Parse/Parser.h"
+#include "clang/Parse/RAIIObjectsForParser.h"
+#include "llvm/ADT/StringRef.h"
+#include "llvm/ADT/StringSwitch.h"
using namespace clang;
+using namespace llvm;
+
+namespace {
+// An enum that contains the extended 'partial' parsed variants. This type
+// should never escape the initial parse functionality, but is useful for
+// simplifying the implementation.
+enum class OpenACCDirectiveKindEx {
----------------
alexey-bataev wrote:
Same, start with a first simple construct support.
https://github.com/llvm/llvm-project/pull/72661
More information about the cfe-commits
mailing list