compilerplugins: ignore GCC bridges more generically
Change-Id: Ib76b14d37bbe3c32aa0637037d73d0d5dce01b25
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user