зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1209330 - Get the clang plugin to compile with clang 3.7 and warnings-as-errors. r=mystor
--HG-- extra : rebase_source : 72788f51cda5a8383cb2e286c92b307e3baab007 extra : source : 233c50497b6115de816b989f4f4398cb0a57baa7
This commit is contained in:
Родитель
5eb5527e50
Коммит
3538b31b78
|
@ -30,14 +30,6 @@ typedef ASTConsumer *ASTConsumerPtr;
|
|||
|
||||
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;
|
||||
class DiagnosticsMatcher {
|
||||
public:
|
||||
|
@ -503,13 +495,6 @@ const FieldDecl *getClassRefCntMember(const CXXRecordDecl *D) {
|
|||
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(const CXXRecordDecl *D) {
|
||||
|
@ -1317,8 +1302,6 @@ void DiagnosticsMatcher::NonMemMovableChecker::run(
|
|||
const ClassTemplateSpecializationDecl *specialization =
|
||||
Result.Nodes.getNodeAs<ClassTemplateSpecializationDecl>("specialization");
|
||||
SourceLocation requestLoc = specialization->getPointOfInstantiation();
|
||||
const CXXRecordDecl *templ =
|
||||
specialization->getSpecializedTemplate()->getTemplatedDecl();
|
||||
|
||||
// Report an error for every template argument which is non-memmovable
|
||||
const TemplateArgumentList &args =
|
||||
|
|
Загрузка…
Ссылка в новой задаче