New install of VSCode. The only extension I have installed is the Microsoft C/C++ Intellisense plugin. Version 0.24.1
I'm working with a codebase that has some header files with #define X foo macros. In the .cpp files it underlines these in red and says "identifier X is undefined". However if I ctrl+click/F12 it takes me to the .h file(s) with the macro defined.
This is the only extension I have right now so I don't think it's an issue of plugins competing. It seems common to macros with multiple definitions. i.e. we have
chipset1/include/registers.h
and
chipset2/include/registers.h
which might both #define REG1 0xF00
or similar. However I only have "${workspaceFolder}/chipset1/include"
in my .vscode/c_cpp_properties.json
file. So I don't know why it's searching the chipset2 definitions as well. Perhaps this is causing the issue and the error message is misleading and should really say something like "multiple definitions found"? Still unsure why this behavior is occurring.