diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-03-26 13:26:46 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-03-27 08:20:47 +0200 |
commit | cbd1f3695f319c8aa4005d19e40a07c6b4dd116e (patch) | |
tree | 091c943ad8ee6c1dc758d1843b34791f526a88c9 /compilerplugins/clang/convertlong.cxx | |
parent | add1784e13abcfee48e6087e2160a5c6db941487 (diff) |
Use isSamePathname instead of hasPathnamePrefix, where appropriate
Change-Id: I75f32fc66877c0fb1e71be3b5e8b6d6c1b9c4d36
Diffstat (limited to 'compilerplugins/clang/convertlong.cxx')
-rw-r--r-- | compilerplugins/clang/convertlong.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compilerplugins/clang/convertlong.cxx b/compilerplugins/clang/convertlong.cxx index 4d713aeecf2b..b706d7dffaa4 100644 --- a/compilerplugins/clang/convertlong.cxx +++ b/compilerplugins/clang/convertlong.cxx @@ -75,11 +75,11 @@ bool ConvertLong::VisitVarDecl(VarDecl const* varDecl) if (ignoreLocation(varDecl)) return true; StringRef fileName{ compiler.getSourceManager().getFilename(varDecl->getLocation()) }; - if (loplugin::hasPathnamePrefix(fileName, SRCDIR "/include/tools/bigint.hxx")) + if (loplugin::isSamePathname(fileName, SRCDIR "/include/tools/bigint.hxx")) return true; - if (loplugin::hasPathnamePrefix(fileName, SRCDIR "/include/tools/solar.h")) + if (loplugin::isSamePathname(fileName, SRCDIR "/include/tools/solar.h")) return true; - if (loplugin::hasPathnamePrefix(fileName, SRCDIR "/include/o3tl/string_view.hxx")) + if (loplugin::isSamePathname(fileName, SRCDIR "/include/o3tl/string_view.hxx")) return true; if (!varDecl->hasInit()) return true; |