Distinguish types of field uses: read/write/use
Categories
(Webtools :: Searchfox, enhancement)
Tracking
(Not tracked)
People
(Reporter: sfink, Unassigned)
Details
This is probably just wishful thinking, but a common scenario for me is that I want to look at all places a field is set to a particular value, or maybe just set. Right now, I'm looking at a field mStatus and I want to examine all places where it is set to Killing (an enum value).
It Would Be Nice If searchfox distinguished between reads, writes, and uses that can't be definitely categorized as either. So foo(mStatus) is a read (unless the parameter is a reference!), mStatus = X is a write, and various things like &mStatus and mValue++ and refTakingFunction(mStatus) are uses. I don't know if clang provides a good way of getting this information. It's kind of tricky. Class::Class() : mField(7) {} would optimally be a write. &mField.mSubField and mField[3] = -1 are arguable, though for my purposes calling them either uses or writes would work. (I will need to hand-examine all writes and uses.)
Updated•1 year ago
|
Description
•