[PATCH] D46891: [StaticAnalyzer] Added a getLValue method to ProgramState for bases
Artem Dergachev via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue May 15 17:36:05 PDT 2018
NoQ added inline comments.
================
Comment at: include/clang/StaticAnalyzer/Core/PathSensitive/ProgramState.h:732
+ const SubRegion *Super) const {
+ const auto Base = BaseSpec.getType()->getAsCXXRecordDecl();
+ return loc::MemRegionVal(
----------------
I think you wanted to say `const auto *` here. It's not really important that the local variable is const, but that the pointer points to const.
Repository:
rC Clang
https://reviews.llvm.org/D46891
More information about the cfe-commits
mailing list