I have a case where I'm declaring class member variables with an optional inline default value using macros and __VA_ARGS__. However these variables aren't recognised by VA's intellisense - the default intellisense works fine (with a cpp.hint file).
The actual macros more involved, but I've boiled this down to a very simple test case which demonstrates the problem.
#define declare_var(type, name) type name;
#define declare_var_default(type, name, ...) type name __VA_ARGS__;
class DeclarationTestClass
{
declare_var(int, test) // Shown in VA intellisense
declare_var_default(int, testWithDefault, = 1) // Not shown in VA intellisense
};
So e.g. within the scope of DeclarationTestClass, "test" will be shown in VA's suggestions, but "testWithDefault" will not:
Note that it doesn't matter if members declared with declare_var_default actually provide a default or not (so declare_var_default(int, test)
would have the same problem).
Also, members declared with either macro are not shown in the VA Outline view.
This is with VA 10.9.2302.0 and VS 2017.
Thanks