cpg icon indicating copy to clipboard operation
cpg copied to clipboard

extern C statement missing

Open peckto opened this issue 5 years ago • 2 comments

For C++ code, it seems like, the extern statement is not parsed correctly. Example:

extern "C" {
    #include "foo.h" 
}

The header file foo.h is not parsed.

peckto avatar Sep 24 '20 14:09 peckto

Do you know if it not parsed (i.e. by CDT) or if the contents of the header file are not persisted in the graph?

oxisto avatar Sep 25 '20 11:09 oxisto

Maybe "parsed" was misleading. Actually, I cannot distinguish between parsed by the CDT and persisted in the graph. What I have observed is, that everything inside the extern statement is not available in the cpg graph. Not available like, there have been no #include statement. Meaning, all declarations inside foo.h are missing.

peckto avatar Sep 28 '20 06:09 peckto