Details
-
Bug
-
Resolution: Won't Do
-
Not Evaluated
-
None
-
Qt Creator 8.0.0
-
None
Description
suppose this code:
static void function_real(int a, int b) {} #define macro1(r) ((r) & 255) #define macro2(r) ((r) >> 8) #define function(a) function_real(macro1(a), macro2(a)) #define CONSTANT 0x203 int main() { function(CONSTANT); return 0; }
then searching for usages of CONSTANT will yield two identical hits on the line where function() is invoked. this is kinda correct in the sense that CONSTANT is, indeed, used twice on that line, but it's certainly not what the user expects.