RIOT icon indicating copy to clipboard operation
RIOT copied to clipboard

dist/tools: script falsely accuses headers without C symbols of lacking `extern "C"` decl

Open carl-tud opened this issue 8 months ago • 1 comments

dist/tools/externc/check.sh complains about headers not having an extern "C" declaration when there are no C symbols being defined in that header (e.g., the header only defines only macros).

carl-tud avatar Apr 10 '25 12:04 carl-tud

I'm not sure this is so easy to distinguish in a shell script. Do the extern "C" declarations do any harm in a header with only macros?

crasbe avatar Apr 11 '25 09:04 crasbe