Bump --enable-compiler-plugins to Clang 3.8.0
<https://lists.freedesktop.org/archives/libreoffice/2017-December/079107.html> "Clang baseline bump" Change-Id: I18fca8794ea34118fc6308458064d0c28cf5caf7 Reviewed-on: https://gerrit.libreoffice.org/46557 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
This commit is contained in:
@@ -11,7 +11,6 @@
|
||||
#include <iostream>
|
||||
|
||||
#include "check.hxx"
|
||||
#include "compat.hxx"
|
||||
#include "plugin.hxx"
|
||||
#include "clang/AST/CXXInheritance.h"
|
||||
|
||||
@@ -95,15 +94,10 @@ bool isDerivedFrom(const CXXRecordDecl *decl, DeclChecker base) {
|
||||
if (!decl->hasDefinition()) {
|
||||
return false;
|
||||
}
|
||||
if (!compat::forallBases(
|
||||
*decl,
|
||||
#if CLANG_VERSION < 30800
|
||||
BaseCheckNotSubclass,
|
||||
#else
|
||||
if (!decl->forallBases(
|
||||
[&base](const CXXRecordDecl *BaseDefinition) -> bool
|
||||
{ return BaseCheckNotSubclass(BaseDefinition, &base); },
|
||||
#endif
|
||||
&base, true))
|
||||
true))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
@@ -550,7 +544,7 @@ bool RefCounting::VisitFunctionDecl(const FunctionDecl * functionDecl) {
|
||||
if (methodDecl && methodDecl->size_overridden_methods() > 0) {
|
||||
return true;
|
||||
}
|
||||
checkUnoReference(compat::getReturnType(*functionDecl), functionDecl, nullptr, "return");
|
||||
checkUnoReference(functionDecl->getReturnType(), functionDecl, nullptr, "return");
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user