[PATCH] D148381: [WIP][Clang] Add element_count attribute
Balázs Kéri via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed May 3 23:59:29 PDT 2023
balazske added inline comments.
================
Comment at: clang/lib/AST/ASTImporter.cpp:8992-8993
+ for (unsigned I = 0, E = ECA->elementCountFields_size(); I != E; ++I) {
+ SourceRange SR = Import(ECA->getCountFieldSourceRange(I)).get();
+ AI.getAttrAs<ElementCountAttr>()->addCountFieldSourceRange(SR);
+ }
----------------
Expected<SourceRange> SR = Import(ECA->getCountFieldSourceRange(I));
if (!SR)
return SR.takeError();
AI.getAttrAs<ElementCountAttr>()->addCountFieldSourceRange(*SR);
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D148381/new/
https://reviews.llvm.org/D148381
More information about the cfe-commits
mailing list