This is an archive of the discontinued LLVM Phabricator instance.

Move initialization of Variable::m_loc_is_const_data into constructor (NFC)
ClosedPublic

Authored by aprantl on Oct 13 2020, 4:58 PM.

Details

Reviewers
JDevlieghere
Summary

This makes it symmetric with all other flags and makes it easier to not forget to initialize it.

Diff Detail

Event Timeline

aprantl requested review of this revision.Oct 13 2020, 4:58 PM
aprantl created this revision.
JDevlieghere accepted this revision.Oct 13 2020, 4:59 PM
This revision is now accepted and ready to land.Oct 13 2020, 4:59 PM
shafik added a subscriber: shafik.Oct 13 2020, 5:05 PM
shafik added inline comments.
lldb/source/Plugins/SymbolFile/NativePDB/SymbolFileNativePDB.cpp
823

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.

aprantl added inline comments.Oct 13 2020, 5:41 PM
lldb/source/Plugins/SymbolFile/NativePDB/SymbolFileNativePDB.cpp
823

commit f9586a3b3c28f87652d00512236c43e8951a1bc4 (HEAD -> master, origin/master, origin/HEAD)
Author: Adrian Prantl <aprantl@apple.com>
Date: Tue Oct 13 17:31:33 2020 -0700

Replace bool constants with named constants for improved readibility (NFC)