Eclipse Luna CDT: What is a header variant?
问题 I am having difficulty getting the Eclipse Indexer (Codan) to recognize certain data declarations in header files. There is a new preference to Index all header variants, but little explanation as to what this means. Enabling the preference seems to fix the problem. But I still would like to know what the preference does exactly. 回答1: Let's say you have header a.h like this: #pragma once #ifndef SYMBOL #define SYMBOL int #endif struct S { SYMBOL sym; }; And now if you include your header like