compilerplugins: ignore GCC bridges more generically

Change-Id: Ib76b14d37bbe3c32aa0637037d73d0d5dce01b25
This commit is contained in:
Michael Stahl
2016-06-20 14:43:14 +02:00
parent d7777467a3
commit bd8c029301

View File

@@ -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;
}