Added basic parsing/sema/ support for the 'indirect' clause.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
| clang/include/clang/Sema/Sema.h | ||
|---|---|---|
| 10338 | Can you use Optional<Expr *> instead of Expr * and bool? | |
| clang/lib/Parse/ParseOpenMP.cpp | ||
| 1862 | /*ParseOnly=*/ | |
| 3427 | I assume it shall be set only if Actions.ActOnOpenMPIndirectClause is successful. | |
| clang/lib/Sema/SemaOpenMP.cpp | ||
| 15732 | I assume it shall return ExprResult | |
| 15747–15748 | Is this correct? Does Sema::ActOnOpenMPIndirectClause is supposed to be failed if Result is false? | |
Thanks Alexey for the code review.
| clang/include/clang/Sema/Sema.h | ||
|---|---|---|
| 10338 | Good to know. Changed. Thank you so much!!!! | |
| clang/lib/Parse/ParseOpenMP.cpp | ||
| 1862 | Sorry changed. | |
| 3427 | The IdirectExpr is user Expression and use for AST dump. Indirect is one which is set after ActOpenMPIndirectClause. BTW the indirect[(invoked-by-fptr)] | |
| clang/lib/Sema/SemaOpenMP.cpp | ||
| 15732 | Add check inside ParseOpenMPIndirectClause instead. | |
| 15747–15748 | This is only set for IsIndirect for DTCI which is for Indirect(true). The original expression is passed in IndirectExpr. | |
Can you use Optional<Expr *> instead of Expr * and bool?