Also explicitly do not support functors for now, since that entails figuring out which call operator corresponds to the passed parameters.
Resolution: we really should not do body farming for templated C++ functions, even in seemingly trivial cases!
Details
Details
- Reviewers
dcoughlin NoQ zaks.anna danielmarjamaki - Commits
- rGbd4254c69235: [Analyzer] Correctly handle parameters passed by reference when bodyfarming std…
rC316249: [Analyzer] Correctly handle parameters passed by reference when bodyfarming std…
rL316249: [Analyzer] Correctly handle parameters passed by reference when bodyfarming std…
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
Stylistically this looks pretty good to me. Just a minor nit.
lib/Analysis/BodyFarm.cpp | ||
---|---|---|
389 ↗ | (On Diff #119415) | ehm.. I would remove this blank |
Comment Actions
Some nits inline, but looks good to me!
lib/Analysis/BodyFarm.cpp | ||
---|---|---|
388 ↗ | (On Diff #119415) | Nit: 'i' doesn't match the naming conventions and it is not particularly descriptive. Perhaps "ParamIndex"? |
391 ↗ | (On Diff #119415) | Nit: You can move PTy inside the if block so it is not calculated when it is not needed. |