[PATCH] D122139: [pseudo] Introduce parse forest.
Simon Pilgrim via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Aug 9 09:13:44 PDT 2022
RKSimon added inline comments.
================
Comment at: clang-tools-extra/pseudo/include/clang-pseudo/Forest.h:158
+ size_t nodeCount() const { return NodeCount; }
+ size_t bytes() const { return Arena.getBytesAllocated() + sizeof(this); }
+
----------------
@hokein Static analysis is warning about sizeof(this) - should it be sizeof(*this) ?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D122139/new/
https://reviews.llvm.org/D122139
More information about the cfe-commits
mailing list