diff --git a/server/src/fetchers/GlobalVariableUsageMatchCallback.cpp b/server/src/fetchers/GlobalVariableUsageMatchCallback.cpp index b02902ff..8d1211a5 100644 --- a/server/src/fetchers/GlobalVariableUsageMatchCallback.cpp +++ b/server/src/fetchers/GlobalVariableUsageMatchCallback.cpp @@ -67,7 +67,7 @@ void GlobalVariableUsageMatchCallback::handleUsage(const clang::FunctionDecl *fu const std::string usedParamTypeString = varDecl->getType().getAsString(); types::Type paramType = types::Type(realParamType, usedParamTypeString, sourceManager); method.globalParams.emplace_back(paramType, usage.variableName, AlignmentFetcher::fetch(varDecl)); - if (varDecl->isExternC() && !varDecl->hasDefinition()) { + if (!paramType.isPointerToFunction() && varDecl->isExternC() && !varDecl->hasDefinition()) { tests.externVariables.insert({paramType, usage.variableName}); } }