-
Bug
-
Resolution: Done
-
Not Evaluated
-
Qt Creator 2.5.0-beta
-
None
-
a450c13327124483ff36546a4c1f8488aa945c39
#include <string.h> #define RESET(d,l) memset((d), (f), (0)) #define STRCMP strcmp int main() { char *buffer = "foo"; STRCMP(buffer, "foo"); // Find Usages finds strcmp (in string.h) RESET(buffer, 4); // Find Usages finds #define RESET(d,l)... return 0; }
Macros that accept parameters are found using "Find Usages", while macros that accept no parameters are not.
"Follow Symbol" for both leads to the referenced symbol rather than the macro (QTCREATORBUG-6175).