[PATCH] D105648: [OpenMP] Support OpenMP 5.1 attributes
Alexey Bataev via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Jul 8 11:27:52 PDT 2021
ABataev added inline comments.
================
Comment at: clang/include/clang/Parse/Parser.h:2803-2808
+ bool MaybeParseCXX11Attributes(ParsedAttributesWithRange &Attrs,
+ SourceLocation *EndLoc = nullptr,
bool OuterMightBeMessageSend = false) {
if (standardAttributesAllowed() &&
isCXX11AttributeSpecifier(false, OuterMightBeMessageSend)) {
+ ParseCXX11Attributes(Attrs, EndLoc);
----------------
I think better to commit this as NFC in a separate patch.
================
Comment at: clang/lib/Parse/ParseDeclCXX.cpp:4173-4174
+ T.consumeClose();
+ } else if (AttrName->isStr("sequence")) {
+ // If the attribute is named 'sequence', its argument is a list of one or
+ // more OpenMP attributes (either 'omp::directive' or 'omp::sequence',
----------------
```
else {
assert(AttrName->isStr("sequence"));
```
? Or we can expect something else here?
================
Comment at: clang/lib/Parse/ParseDeclCXX.cpp:4177-4181
+ BalancedDelimiterTracker T(*this, tok::l_paren);
+ if (T.consumeOpen()) {
+ Diag(Tok, diag::err_expected) << tok::l_paren;
+ return;
+ }
----------------
Common code between then and else.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D105648/new/
https://reviews.llvm.org/D105648
More information about the cfe-commits
mailing list