diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-03-26 13:37:06 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-03-27 08:20:47 +0200 |
commit | 449d416335802b23cf0f8f4725042f92138019cd (patch) | |
tree | 9c72f7efcc8c817a1e20c72180c08340e16aabc6 /compilerplugins/clang/memoryvar.cxx | |
parent | cbd1f3695f319c8aa4005d19e40a07c6b4dd116e (diff) |
Let prefix arguments to hasPathnamePrefix end in slash
...for better precision
Change-Id: I5f273b7c66ba931647805c415622b5ac767ff987
Diffstat (limited to 'compilerplugins/clang/memoryvar.cxx')
-rw-r--r-- | compilerplugins/clang/memoryvar.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compilerplugins/clang/memoryvar.cxx b/compilerplugins/clang/memoryvar.cxx index 168cc8bf175f..17cb2701acd0 100644 --- a/compilerplugins/clang/memoryvar.cxx +++ b/compilerplugins/clang/memoryvar.cxx @@ -80,7 +80,7 @@ bool MemoryVar::TraverseFunctionDecl(FunctionDecl * decl) // I'm not getting accurate results from clang right now StringRef aFileName = getFilename(varLoc); // TODO these files are doing some weird stuff I don't know how to ignore yet - if (loplugin::hasPathnamePrefix(aFileName, SRCDIR "/vcl/source/filter")) { + if (loplugin::hasPathnamePrefix(aFileName, SRCDIR "/vcl/source/filter/")) { return true; } if (loplugin::isSamePathname(aFileName, SRCDIR "/sw/source/core/layout/frmtool.cxx")) { |