mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1209330 - Get the clang plugin to compile with clang 3.7 and warnings-as-errors. r=mystor
This commit is contained in:
parent
3e1e0e3b3f
commit
56e0b97c28
@ -30,14 +30,6 @@ typedef ASTConsumer *ASTConsumerPtr;
|
|||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
QualType GetCallReturnType(const CallExpr *expr) {
|
|
||||||
#if CLANG_VERSION_FULL >= 307
|
|
||||||
return expr->getCallReturnType(expr->getCalleeDecl()->getASTContext());
|
|
||||||
#else
|
|
||||||
return expr->getCallReturnType();
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
|
|
||||||
using namespace clang::ast_matchers;
|
using namespace clang::ast_matchers;
|
||||||
class DiagnosticsMatcher {
|
class DiagnosticsMatcher {
|
||||||
public:
|
public:
|
||||||
@ -503,13 +495,6 @@ const FieldDecl *getClassRefCntMember(const CXXRecordDecl *D) {
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
const FieldDecl *getClassRefCntMember(QualType T) {
|
|
||||||
while (const ArrayType *arrTy = T->getAsArrayTypeUnsafe())
|
|
||||||
T = arrTy->getElementType();
|
|
||||||
CXXRecordDecl *clazz = T->getAsCXXRecordDecl();
|
|
||||||
return clazz ? getClassRefCntMember(clazz) : 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
const FieldDecl *getBaseRefCntMember(QualType T);
|
const FieldDecl *getBaseRefCntMember(QualType T);
|
||||||
|
|
||||||
const FieldDecl *getBaseRefCntMember(const CXXRecordDecl *D) {
|
const FieldDecl *getBaseRefCntMember(const CXXRecordDecl *D) {
|
||||||
@ -1317,8 +1302,6 @@ void DiagnosticsMatcher::NonMemMovableChecker::run(
|
|||||||
const ClassTemplateSpecializationDecl *specialization =
|
const ClassTemplateSpecializationDecl *specialization =
|
||||||
Result.Nodes.getNodeAs<ClassTemplateSpecializationDecl>("specialization");
|
Result.Nodes.getNodeAs<ClassTemplateSpecializationDecl>("specialization");
|
||||||
SourceLocation requestLoc = specialization->getPointOfInstantiation();
|
SourceLocation requestLoc = specialization->getPointOfInstantiation();
|
||||||
const CXXRecordDecl *templ =
|
|
||||||
specialization->getSpecializedTemplate()->getTemplatedDecl();
|
|
||||||
|
|
||||||
// Report an error for every template argument which is non-memmovable
|
// Report an error for every template argument which is non-memmovable
|
||||||
const TemplateArgumentList &args =
|
const TemplateArgumentList &args =
|
||||||
|
Loading…
Reference in New Issue
Block a user