CodeQL library for C/C++
codeql/cpp-all 0.5.1 (changelog, source)
Search

Member predicate RoutineType::hasCLinkage

Holds if this function type has ā€œCā€ language linkage.

This includes any function declared in a C source file, or explicitly marked as having ā€œCā€ linkage:

extern "C" void f();
extern "C" {
void g();
}
predicate hasCLinkage()