Skip to content

Commit c97aef4

Browse files
committed
Fix fetcher
1 parent b7c3833 commit c97aef4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/fetchers/GlobalVariableUsageMatchCallback.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ void GlobalVariableUsageMatchCallback::handleUsage(const clang::FunctionDecl *fu
6464
const std::string usedParamTypeString = varDecl->getType().getAsString();
6565
types::Type paramType = types::Type(realParamType, usedParamTypeString, sourceManager);
6666
method.globalParams.emplace_back(paramType, usage.variableName, AlignmentFetcher::fetch(varDecl));
67-
if (varDecl->hasExternalStorage()) {
67+
if (varDecl->isKnownToBeDefined()) {
6868
tests.externVariables.insert({paramType, usage.variableName});
6969
}
7070
}

0 commit comments

Comments
 (0)