diff options
-rw-r--r-- | compilerplugins/clang/reservedid.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/compilerplugins/clang/reservedid.cxx b/compilerplugins/clang/reservedid.cxx index c2523c82ed64..2206257e6c86 100644 --- a/compilerplugins/clang/reservedid.cxx +++ b/compilerplugins/clang/reservedid.cxx @@ -103,10 +103,8 @@ bool ReservedId::VisitNamedDecl(NamedDecl const * decl) { return true; } auto filename = compiler.getSourceManager().getFilename(spelLoc); - if ((filename - == SRCDIR "/bridges/source/cpp_uno/gcc3_linux_x86-64/share.hxx") - || (filename - == SRCDIR "/bridges/source/cpp_uno/gcc3_macosx_x86-64/share.hxx")) + if (filename.startswith(SRCDIR "/bridges/source/cpp_uno/") + && filename.endswith("share.hxx")) { return true; } |