codan

Eclipse Luna CDT: What is a header variant?

筅森魡賤 提交于 2021-02-07 19:47:13
问题 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

Eclipse CDT shows errors before project is built

和自甴很熟 提交于 2019-12-12 05:28:47
问题 I am having a minor problem with Eclipse CDT Juno. When I open up Eclipse for the first time, it will show many C/C++ Problem errors which put red x's on all of my projects. Many of these errors are "no such file or directory" errors for #include'd header files. However, after I clean and rebuild my projects, all of the errors go away. I have double checked all of my indexer settings, and the index paths are pointing to the right place. I also believe the indexer is setup correctly because