ccls/tests/namespaces/function_definition.cc
Jacob Dufault d6123bd861 Every function usage is now considered a call of that function.
This means we will now report function calls that happen in the global scope (previously, those would only show up for find all refs).
2017-04-13 00:47:47 -07:00

18 lines
266 B
C++

namespace hello {
void foo() {}
}
/*
OUTPUT:
{
"funcs": [{
"id": 0,
"usr": "c:@N@hello@F@foo#",
"short_name": "foo",
"qualified_name": "hello::foo",
"definition_spelling": "2:6-2:9",
"definition_extent": "2:1-2:14"
}]
}
*/