[clang] [Sema, Lex, Parse] Preprocessor embed in C and C++ (and Obj-C and Obj-C++ by-proxy) (PR #68620)
Björn Schäpers via cfe-commits
cfe-commits at lists.llvm.org
Mon Oct 9 12:36:23 PDT 2023
================
@@ -1500,6 +1518,14 @@ class AnnotatingParser {
next(); // ')'
}
+ void parseHasEmbed() {
+ if (!CurrentToken || CurrentToken->isNot(tok::l_paren))
+ return;
+ next(); // '('
+ parseEmbedDirective();
+ next(); // ')'
----------------
HazardyKnusperkeks wrote:
What if it isn't a `r_paren`?
https://github.com/llvm/llvm-project/pull/68620
More information about the cfe-commits
mailing list