CodeQL library for C/C++
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()