mozilla/dxr — pull request #144 by brucestephens (2013-06-24 20:45:28+00:00)
Title: Emit decldef for C variables even when there's just a tentative definiti...

...on

The issue is that getDefinition() will return 0 for things in C at
file scope like

extern int i;
int i; /* This isn't a definition --- it's tentative */

In C++ that is a definition. While technically it's not a definition,
matching up variable references seems to work better in C code that
I've seen if we assume that such tentative definitions are in fact
definitions, as they are in C++.