Kaydet (Commit) 145b0de1 authored tarafından Noel Grandin's avatar Noel Grandin

fix for running externandnotdefined plugin on Ubuntu

Change-Id: I00804b2dd63df44478a14a3eaf2fdcd4e4ce5d09
üst a97457db
......@@ -54,8 +54,7 @@ bool ExternAndNotDefined::VisitFunctionDecl(const FunctionDecl * functionDecl) {
if (functionName == "gdk_x11_screen_get_screen_number") {
return true;
}
SourceLocation spellingLocation = compiler.getSourceManager().getSpellingLoc(functionDecl->getLocation());
if (!compat::isInMainFile( compiler.getSourceManager(), spellingLocation)) {
if (!compat::isInMainFile( compiler.getSourceManager(), functionDecl->getLocation())) {
return true;
}
StringRef fileName { compiler.getSourceManager().getFilename(functionDecl->getLocation()) };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment