bradfordelliott / shorte

The documentation language
0 stars 0 forks source link

clang: skips methods if they are implicitly forward-declared #127

Open bradfordelliott opened 9 years ago

bradfordelliott commented 9 years ago

If I run clang on cs4224.c it tends to miss the definition of cs4224_reg_get_channel() if clang can't find cs4224.h. This seems to have something to do with it being implicitly forward declared. Not sure why this is but if I add these options when I instantiate the parser the problem goes away since it can now pick up cs4224.h:

    args = ['-DCS_LITTLE_ENDIAN', '-Imodules', '-Iplatform']