diff options
author | Noel Grandin <noel@peralex.com> | 2014-07-28 13:31:05 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-07-29 09:46:41 +0200 |
commit | 145b0de1569229c797084040caa2386c8cf1ee4e (patch) | |
tree | d3415e796d03577ea005aa6015cfee9c7c19cc50 /compilerplugins | |
parent | a97457db2c570b18c3c0e4717eb09210c1287ce8 (diff) |
fix for running externandnotdefined plugin on Ubuntu
Change-Id: I00804b2dd63df44478a14a3eaf2fdcd4e4ce5d09
Diffstat (limited to 'compilerplugins')
-rw-r--r-- | compilerplugins/clang/externandnotdefined.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/compilerplugins/clang/externandnotdefined.cxx b/compilerplugins/clang/externandnotdefined.cxx index e66247fa1fad..2deca8adadcf 100644 --- a/compilerplugins/clang/externandnotdefined.cxx +++ b/compilerplugins/clang/externandnotdefined.cxx @@ -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()) }; |