I have to check for the sc list size being changed by the call-site search, not just that it had more than one element. Added a test for multiple CU's with the same name in a given module, which would have caught this mistake. We were also doing all the work to find call sites when the found decl and specified decl's only difference was a column, but the incoming specification hadn't specified a column (column number == 0).
25 lines
322 B
C++
25 lines
322 B
C++
namespace ns1 {
|
|
extern void DoSomeStuff();
|
|
}
|
|
|
|
namespace ns2 {
|
|
extern void DoSomeStuff();
|
|
}
|
|
|
|
namespace ns3 {
|
|
extern void DoSomeStuff();
|
|
}
|
|
|
|
namespace ns4 {
|
|
extern void DoSomeStuff();
|
|
}
|
|
|
|
int main(int argc, char *argv[]) {
|
|
ns1::DoSomeStuff();
|
|
ns2::DoSomeStuff();
|
|
ns3::DoSomeStuff();
|
|
ns4::DoSomeStuff();
|
|
|
|
return 0;
|
|
}
|