VAX wrongfully colors variable as a method/function when declaring a pointer variable with initialization using ()
int *myVariable(nullptr);
see attached image: myVariable is colored as a method while myVariable2 is colored as a variable.
system info: VA_X.dll file version 10.6.1859.0 built 2011.10.02 DevEnv.exe version 10.0.40219.1 Professional msenv.dll version 10.0.40219.1 Comctl32.dll version 6.10.7601.17514 Windows 7 6.1 Build 7601 Service Pack 1 4 processors (x86-64; WOW64)
This "variable" is often called a "function pointer". It is a pointer to a function. So the function (where the variable is pointing to) is colored as a function :) I think that this is a borderline case and that the current working is reasonable. But let's see what others think about this :) I wouldn't say that either version is bad.
I checked and it seems to be consistent so both int *myVariable(nullptr); and int (*myVariable2)(nullptr); is colored as a function.
I don't agree that this is a function pointer. It is a pointer to an int, but I happen to initialize it via () instead of =.
These are function pointers:
I would think they are distinguishable from pointer to int variables because of the data types between the (), whereas my variable uses a value (nullptr in my case). (I might go a bit too fast here, I might be missing some other cases?)