Details
Details
Diff Detail
Diff Detail
Event Timeline
clang/include/clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h | ||
---|---|---|
1141–1148 | We should explain that these two functions are radically different. Namely, in getCaller() the location context argument is the callee context (from which the call site can be derived), while in getCall() it is the caller context (from which the call site cannot be derived). We should probably reflect this in function names as well, because getCaller() is already a pretty uninformative name. Still, it should be possible to re-use getCall() in getCaller(). |
Comment Actions
Thx! Yeah, i guess the calling convention is kinda reasonable as long as comments are in place.
We should explain that these two functions are radically different. Namely, in getCaller() the location context argument is the callee context (from which the call site can be derived), while in getCall() it is the caller context (from which the call site cannot be derived). We should probably reflect this in function names as well, because getCaller() is already a pretty uninformative name.
Still, it should be possible to re-use getCall() in getCaller().