Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-dev] Re: Choice of files to index up-front

I did some limited testing with a C project and gcc 3.4.5. cstdarg, cstddef, ctime set of files seems to work just as well as stdarg.h, stddef.h, sys/types.h. I'm inclined to change IndexPreferences.DEFAULT_FILES_TO_PARSE_UP_FRONT to "cstdarg, cstddef, ctime" unless somebody objects. Bugzilla 259843 is created to track this issue.


On Mon, Dec 29, 2008 at 11:14 AM, Sergey Prigogin <eclipse.sprigogin@xxxxxxxxx> wrote:
By default CDT indexes stdarg.h, stddef.h, sys/types.h up-front. With C++ project with gcc 4.3 on Linux this causes parser to miss significant parts of time.h. The problem can be remedied by changing the files to index up-front to cstdarg, cstddef, ctime. Here are few questions related to this:

1. How was it decided to choose stdarg.h, stddef.h, sys/types.h?
2. Was there a specific test that failed without indexing these files up-front?
3. Is it possible to rerun this test with cstdarg, cstddef, ctime and compare results?

I haven't tested cstdarg, cstddef, ctime with plain C projects or with different compiler versions. If you are using C projects and/or different compiler version, could you please give cstdarg, cstddef, ctime a try to see if it works better or worse than stdarg.h, stddef.h, sys/types.h in your case and let me know the results. Thanks.


Back to the top