[PATCH] D148381: [WIP][Clang] Add counted_by attribute
Nick Desaulniers via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Aug 22 09:19:02 PDT 2023
nickdesaulniers added inline comments.
================
Comment at: clang/lib/AST/Decl.cpp:4541-4544
+bool FieldDecl::isFlexibleArrayMemberLike(
+ ASTContext &Ctx,
+ LangOptions::StrictFlexArraysLevelKind StrictFlexArraysLevel,
+ bool IgnoreTemplateOrMacroSubstitution) const {
----------------
nickdesaulniers wrote:
> There's a lambda in `isUserWritingOffTheEnd` in clang/lib/AST/ExprConstant.cpp assigned to a variable `isFlexibleArrayMember`. Any way we can reuse code between here and there if we host that into a proper method somewhere else?
s/host/hoist/
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