diff options
Diffstat (limited to 'compilerplugins/clang/reservedid.cxx')
-rw-r--r-- | compilerplugins/clang/reservedid.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compilerplugins/clang/reservedid.cxx b/compilerplugins/clang/reservedid.cxx index acdc18217514..b43b1c882046 100644 --- a/compilerplugins/clang/reservedid.cxx +++ b/compilerplugins/clang/reservedid.cxx @@ -111,7 +111,7 @@ void ReservedId::postRun() { if (d->getKind() == MacroDirective::MD_Define) { auto loc = d->getLocation(); if (loc.isValid() && !ignoreLocation(loc)) { - auto file = getFileNameOfSpellingLoc(loc); + auto file = getFilenameOfLocation(loc); if (!loplugin::isSamePathname( file, SRCDIR @@ -143,7 +143,7 @@ bool ReservedId::VisitNamedDecl(NamedDecl const * decl) { if (ignoreLocation(spelLoc)) { return true; } - auto filename = getFileNameOfSpellingLoc(spelLoc); + auto filename = getFilenameOfLocation(spelLoc); if (loplugin::hasPathnamePrefix(filename, SRCDIR "/bridges/source/cpp_uno/") && filename.endswith("share.hxx")) { @@ -274,7 +274,7 @@ ReservedId::Kind ReservedId::determineKind(llvm::StringRef const & id) { bool ReservedId::isInLokIncludeFile(SourceLocation spellingLocation) const { return loplugin::hasPathnamePrefix( - getFileNameOfSpellingLoc(spellingLocation), + getFilenameOfLocation(spellingLocation), SRCDIR "/include/LibreOfficeKit/"); } |