[clang] [llvm] Support for assume directive : Parse & AST modules (PR #97535)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 15 12:51:17 PDT 2024
================
@@ -488,6 +488,49 @@ class Parser : public CodeCompletionHandler {
/// a statement expression and builds a suitable expression statement.
StmtResult handleExprStmt(ExprResult E, ParsedStmtContext StmtCtx);
+ class AssumeParseAssociatedStmtRAII {
+ Parser *parent;
----------------
SunilKuravinakop wrote:
Since I am creating instance of `AssumeParseAssociatedStmtRAII` in `Parser::ParseOpenMPAssumesDirective()` I have to store Parent as a pointer. The creation of the instance is done as :
`AssumeParseAssociatedStmtRAII AssumeParseAssocRAII(this, Loc, DKind);`
https://github.com/llvm/llvm-project/pull/97535
More information about the llvm-commits
mailing list