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).
9 lines
150 B
C++
9 lines
150 B
C++
namespace NAMESPACE {
|
|
static int g_value = 0;
|
|
void DoSomeStuff() {
|
|
// A comment here
|
|
g_value++; // The line with code
|
|
}
|
|
|
|
} // namespace NAMESPACE
|