Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-dev] [cdt 8.4.0 regression] stdint.h comments

Dear all

I just updated to 8.4.0 and found a curious regression: When including <stdint.h> multiple times its comments are wrong. This only happens for stdint.h and only when included as system header. These would work:
   #include "/usr/include/stdint.h"
   #include <test.h> // test.h being a copy of stdint.h

Does that ring a bell to anyone? It's surprising that this only applies to <stdint.h>. Maybe some custom handling of that header file was added?

Minimal example:

----- foo.c -----
#include "bar.h"
#include <stdint.h>
----- ----- -----

----- bar.h -----
#include <stdint.h>
----- ----- -----

----- stdint.h -----
#define foo /* test */
----- -------- -----

Parsing foo.c, CASTTranslationUnit.getComments() has one entry with an empty comment with offset -1 and length 10. It should have two entries with /* test */.


Thanks!
Marco


Back to the top