[Lldb-commits] [PATCH] D89351: Move initialization of Variable::m_loc_is_const_data into constructor (NFC)
Adrian Prantl via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Tue Oct 13 17:41:46 PDT 2020
aprantl added inline comments.
================
Comment at: lldb/source/Plugins/SymbolFile/NativePDB/SymbolFileNativePDB.cpp:823
scope, comp_unit.get(), ranges, &decl, location, is_external, false,
- false);
- var_sp->SetLocationIsConstantValueData(false);
+ false, false);
----------------
shafik wrote:
> Can we add comments for these `bool` arguments, I have seen this done in llvm/clang and really helps readability e.g.:
>
> ```
> /*artificial*/ false, /*location_is_constant_data*/ false, /*static_member*/ false);
> ```
>
> Same goes for other places as well.
commit f9586a3b3c28f87652d00512236c43e8951a1bc4 (HEAD -> master, origin/master, origin/HEAD)
Author: Adrian Prantl <aprantl at apple.com>
Date: Tue Oct 13 17:31:33 2020 -0700
Replace bool constants with named constants for improved readibility (NFC)
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D89351/new/
https://reviews.llvm.org/D89351
More information about the lldb-commits
mailing list