buildtools/chkincs: check missing C++ guards
authorBruce Richardson <bruce.richardson@intel.com>
Tue, 15 Feb 2022 17:30:29 +0000 (17:30 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 22 Feb 2022 14:26:15 +0000 (15:26 +0100)
commit1ee492bdc4ffeb392f6e7cc0386793c3e53ebb0f
tree3350f0f623cbbd29d735b0e3a4e1ca1c421681d3
parentb232b2aa212be9a7f127ad368c40faf28989f678
buildtools/chkincs: check missing C++ guards

Simply compiling a C header with a C++ compiler is not enough to flag
missing 'extern "C"' guards. To catch missing guards, we can just use a
simple grep for the 'extern "C"' part, and error out if any files have a
miss.

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Tyler Retzlaff <roretzla@linux.microsoft.com>
buildtools/chkincs/meson.build