Bump compiler plugins Clang baseline to 5.0.2
...as discussed at <https://lists.freedesktop.org/archives/libreoffice/2018-November/081435.html> "minutes of ESC call ..." Change-Id: Ia053da171d59747984546f38e19da808825b4f79 Reviewed-on: https://gerrit.libreoffice.org/63832 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
This commit is contained in:
@@ -524,10 +524,7 @@ void UnusedFields::checkIfReadFrom(const FieldDecl* fieldDecl, const Expr* membe
|
||||
break;
|
||||
}
|
||||
else if (isa<CastExpr>(parent) || isa<MemberExpr>(parent) || isa<ParenExpr>(parent) || isa<ParenListExpr>(parent)
|
||||
#if CLANG_VERSION >= 40000
|
||||
|| isa<ArrayInitLoopExpr>(parent)
|
||||
#endif
|
||||
|| isa<ExprWithCleanups>(parent))
|
||||
|| isa<ArrayInitLoopExpr>(parent) || isa<ExprWithCleanups>(parent))
|
||||
{
|
||||
walkupUp();
|
||||
}
|
||||
@@ -731,10 +728,7 @@ void UnusedFields::checkIfWrittenTo(const FieldDecl* fieldDecl, const Expr* memb
|
||||
break;
|
||||
}
|
||||
else if (isa<CastExpr>(parent) || isa<MemberExpr>(parent) || isa<ParenExpr>(parent) || isa<ParenListExpr>(parent)
|
||||
#if CLANG_VERSION >= 40000
|
||||
|| isa<ArrayInitLoopExpr>(parent)
|
||||
#endif
|
||||
|| isa<ExprWithCleanups>(parent))
|
||||
|| isa<ArrayInitLoopExpr>(parent) || isa<ExprWithCleanups>(parent))
|
||||
{
|
||||
walkupUp();
|
||||
}
|
||||
|
Reference in New Issue
Block a user