summaryrefslogtreecommitdiff
path: root/compilerplugins
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2016-06-20 14:43:14 +0200
committerMichael Stahl <mstahl@redhat.com>2016-06-21 18:20:26 +0200
commitbd8c0293010a767a9889cf1b5e92e4828b6b07bd (patch)
tree30cc98581a1d8f1c110a3f7f693b5a50ca80662e /compilerplugins
parentd7777467a3a06bc367d0f9aa1bbf9e361609da7d (diff)
compilerplugins: ignore GCC bridges more generically
Change-Id: Ib76b14d37bbe3c32aa0637037d73d0d5dce01b25
Diffstat (limited to 'compilerplugins')
-rw-r--r--compilerplugins/clang/reservedid.cxx6
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;
}