Indexing context was skipping explicit template instantiations as well.
This patch makes sure it only skips implicit ones.
Details
Diff Detail
- Repository
- rC Clang
- Build Status
Buildable 28191 Build 28190: arc lint + arc unit
Event Timeline
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 | ||
---|---|---|
57 | NIT: initialize with 0 to avoid UB. | |
66 | Why do we need to static_cast to int? Can we leave out the cast? | |
71 | 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. | |
98 | NIT: initialize with null to make UB less likely |
unittests/Index/IndexTests.cpp | ||
---|---|---|
56 | NIT: put all of the decls of a file into an anonymous namespace |
unittests/Index/IndexTests.cpp | ||
---|---|---|
66 | it was left over of a copy paste, we don't even need subtraction. |
NIT: put all of the decls of a file into an anonymous namespace