Indexing context was skipping explicit template instantiations as well.
This patch makes sure it only skips implicit ones.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
Only have a few NITs, will dig deeper into the change tomorrow.
Added @arphaman too as an owner of the index library. Alex, feel free to reassign if you're the wrong person to take a look at this
unittests/Index/IndexTests.cpp | ||
---|---|---|
31 ↗ | (On Diff #186684) | NIT: initialize with 0 to avoid UB. |
40 ↗ | (On Diff #186684) | Why do we need to static_cast to int? Can we leave out the cast? |
45 ↗ | (On Diff #186684) | NIT: maybe make it a free-standing function, accepting two parameters: struct Position { friend bool operator==(const Pos& L, const Pos& R) { // ... } }; Doesn't really matter much here, though, just a general best practice. |
97 ↗ | (On Diff #186684) | NIT: initialize with null to make UB less likely |
unittests/Index/IndexTests.cpp | ||
---|---|---|
30 ↗ | (On Diff #186684) | NIT: put all of the decls of a file into an anonymous namespace |
unittests/Index/IndexTests.cpp | ||
---|---|---|
40 ↗ | (On Diff #186684) | it was left over of a copy paste, we don't even need subtraction. |