forked from OSchip/llvm-project
Remove redundant semicolons which are null statements.
llvm-svn: 163546
This commit is contained in:
parent
5a72a23a70
commit
76bb5cabfa
|
@ -675,7 +675,7 @@ unsigned Sema::correctTypoInParmVarReference(
|
||||||
if (Corrector.getBestDecl())
|
if (Corrector.getBestDecl())
|
||||||
return Corrector.getBestDeclIndex();
|
return Corrector.getBestDeclIndex();
|
||||||
else
|
else
|
||||||
return ParamCommandComment::InvalidParamIndex;;
|
return ParamCommandComment::InvalidParamIndex;
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
|
|
@ -961,7 +961,7 @@ DeclContext::lookup_result
|
||||||
ExternalASTSource::SetExternalVisibleDeclsForName(const DeclContext *DC,
|
ExternalASTSource::SetExternalVisibleDeclsForName(const DeclContext *DC,
|
||||||
DeclarationName Name,
|
DeclarationName Name,
|
||||||
ArrayRef<NamedDecl*> Decls) {
|
ArrayRef<NamedDecl*> Decls) {
|
||||||
ASTContext &Context = DC->getParentASTContext();;
|
ASTContext &Context = DC->getParentASTContext();
|
||||||
|
|
||||||
StoredDeclsMap *Map;
|
StoredDeclsMap *Map;
|
||||||
if (!(Map = DC->LookupPtr.getPointer()))
|
if (!(Map = DC->LookupPtr.getPointer()))
|
||||||
|
|
|
@ -462,7 +462,7 @@ void DeclPrinter::VisitFunctionDecl(FunctionDecl *D) {
|
||||||
if (I)
|
if (I)
|
||||||
Proto += ", ";
|
Proto += ", ";
|
||||||
|
|
||||||
Proto += FT->getExceptionType(I).getAsString(SubPolicy);;
|
Proto += FT->getExceptionType(I).getAsString(SubPolicy);
|
||||||
}
|
}
|
||||||
Proto += ")";
|
Proto += ")";
|
||||||
} else if (FT && isNoexceptExceptionSpec(FT->getExceptionSpecType())) {
|
} else if (FT && isNoexceptExceptionSpec(FT->getExceptionSpecType())) {
|
||||||
|
|
|
@ -223,7 +223,7 @@ bool clang::analyze_format_string::ParsePrintfString(FormatStringHandler &H,
|
||||||
// Did a fail-stop error of any kind occur when parsing the specifier?
|
// Did a fail-stop error of any kind occur when parsing the specifier?
|
||||||
// If so, don't do any more processing.
|
// If so, don't do any more processing.
|
||||||
if (FSR.shouldStop())
|
if (FSR.shouldStop())
|
||||||
return true;;
|
return true;
|
||||||
// Did we exhaust the string or encounter an error that
|
// Did we exhaust the string or encounter an error that
|
||||||
// we can recover from?
|
// we can recover from?
|
||||||
if (!FSR.hasValue())
|
if (!FSR.hasValue())
|
||||||
|
|
|
@ -476,7 +476,7 @@ bool clang::analyze_format_string::ParseScanfString(FormatStringHandler &H,
|
||||||
// Did a fail-stop error of any kind occur when parsing the specifier?
|
// Did a fail-stop error of any kind occur when parsing the specifier?
|
||||||
// If so, don't do any more processing.
|
// If so, don't do any more processing.
|
||||||
if (FSR.shouldStop())
|
if (FSR.shouldStop())
|
||||||
return true;;
|
return true;
|
||||||
// Did we exhaust the string or encounter an error that
|
// Did we exhaust the string or encounter an error that
|
||||||
// we can recover from?
|
// we can recover from?
|
||||||
if (!FSR.hasValue())
|
if (!FSR.hasValue())
|
||||||
|
|
|
@ -886,7 +886,7 @@ CodeGenFunction::EmitNewArrayInitializer(const CXXNewExpr *E,
|
||||||
if (constNum->getZExtValue() <= initializerElements) {
|
if (constNum->getZExtValue() <= initializerElements) {
|
||||||
// If there was a cleanup, deactivate it.
|
// If there was a cleanup, deactivate it.
|
||||||
if (cleanupDominator)
|
if (cleanupDominator)
|
||||||
DeactivateCleanupBlock(cleanup, cleanupDominator);;
|
DeactivateCleanupBlock(cleanup, cleanupDominator);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -4866,7 +4866,7 @@ void RewriteModernObjC::RewriteBlockPointerDecl(NamedDecl *ND) {
|
||||||
else if (*argListBegin == '<') {
|
else if (*argListBegin == '<') {
|
||||||
buf += "/*";
|
buf += "/*";
|
||||||
buf += *argListBegin++;
|
buf += *argListBegin++;
|
||||||
OrigLength++;;
|
OrigLength++;
|
||||||
while (*argListBegin != '>') {
|
while (*argListBegin != '>') {
|
||||||
buf += *argListBegin++;
|
buf += *argListBegin++;
|
||||||
OrigLength++;
|
OrigLength++;
|
||||||
|
|
|
@ -4183,7 +4183,7 @@ void RewriteObjC::RewriteBlockPointerDecl(NamedDecl *ND) {
|
||||||
else if (*argListBegin == '<') {
|
else if (*argListBegin == '<') {
|
||||||
buf += "/*";
|
buf += "/*";
|
||||||
buf += *argListBegin++;
|
buf += *argListBegin++;
|
||||||
OrigLength++;;
|
OrigLength++;
|
||||||
while (*argListBegin != '>') {
|
while (*argListBegin != '>') {
|
||||||
buf += *argListBegin++;
|
buf += *argListBegin++;
|
||||||
OrigLength++;
|
OrigLength++;
|
||||||
|
|
|
@ -4322,7 +4322,7 @@ bool SpecialMemberDeletionInfo::isAccessible(Subobject Subobj,
|
||||||
/// If we're operating on a base class, the object type is the
|
/// If we're operating on a base class, the object type is the
|
||||||
/// type of this special member.
|
/// type of this special member.
|
||||||
QualType objectTy;
|
QualType objectTy;
|
||||||
AccessSpecifier access = target->getAccess();;
|
AccessSpecifier access = target->getAccess();
|
||||||
if (CXXBaseSpecifier *base = Subobj.dyn_cast<CXXBaseSpecifier*>()) {
|
if (CXXBaseSpecifier *base = Subobj.dyn_cast<CXXBaseSpecifier*>()) {
|
||||||
objectTy = S.Context.getTypeDeclType(MD->getParent());
|
objectTy = S.Context.getTypeDeclType(MD->getParent());
|
||||||
access = CXXRecordDecl::MergeAccess(base->getAccessSpecifier(), access);
|
access = CXXRecordDecl::MergeAccess(base->getAccessSpecifier(), access);
|
||||||
|
|
|
@ -413,7 +413,7 @@ Sema::ActOnCXXTypeid(SourceLocation OpLoc, SourceLocation LParenLoc,
|
||||||
/// Retrieve the UuidAttr associated with QT.
|
/// Retrieve the UuidAttr associated with QT.
|
||||||
static UuidAttr *GetUuidAttrOfType(QualType QT) {
|
static UuidAttr *GetUuidAttrOfType(QualType QT) {
|
||||||
// Optionally remove one level of pointer, reference or array indirection.
|
// Optionally remove one level of pointer, reference or array indirection.
|
||||||
const Type *Ty = QT.getTypePtr();;
|
const Type *Ty = QT.getTypePtr();
|
||||||
if (QT->isPointerType() || QT->isReferenceType())
|
if (QT->isPointerType() || QT->isReferenceType())
|
||||||
Ty = QT->getPointeeType().getTypePtr();
|
Ty = QT->getPointeeType().getTypePtr();
|
||||||
else if (QT->isArrayType())
|
else if (QT->isArrayType())
|
||||||
|
|
|
@ -4426,7 +4426,7 @@ ExprResult Sema::CheckTemplateArgument(NonTypeTemplateParmDecl *Param,
|
||||||
case NPV_NullPointer:
|
case NPV_NullPointer:
|
||||||
Diag(Arg->getExprLoc(), diag::warn_cxx98_compat_template_arg_null);
|
Diag(Arg->getExprLoc(), diag::warn_cxx98_compat_template_arg_null);
|
||||||
Converted = TemplateArgument((Decl *)0);
|
Converted = TemplateArgument((Decl *)0);
|
||||||
return Owned(Arg);;
|
return Owned(Arg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -6368,7 +6368,7 @@ TreeTransform<Derived>::TransformCallExpr(CallExpr *E) {
|
||||||
if (!getDerived().AlwaysRebuild() &&
|
if (!getDerived().AlwaysRebuild() &&
|
||||||
Callee.get() == E->getCallee() &&
|
Callee.get() == E->getCallee() &&
|
||||||
!ArgChanged)
|
!ArgChanged)
|
||||||
return SemaRef.MaybeBindToTemporary(E);;
|
return SemaRef.MaybeBindToTemporary(E);
|
||||||
|
|
||||||
// FIXME: Wrong source location information for the '('.
|
// FIXME: Wrong source location information for the '('.
|
||||||
SourceLocation FakeLParenLoc
|
SourceLocation FakeLParenLoc
|
||||||
|
|
|
@ -85,7 +85,7 @@ static bool scan_ivar_release(Stmt *S, ObjCIvarDecl *ID,
|
||||||
Expr::NPC_ValueDependentIsNull)) {
|
Expr::NPC_ValueDependentIsNull)) {
|
||||||
// This is only a 'release' if the property kind is not
|
// This is only a 'release' if the property kind is not
|
||||||
// 'assign'.
|
// 'assign'.
|
||||||
return PD->getSetterKind() != ObjCPropertyDecl::Assign;;
|
return PD->getSetterKind() != ObjCPropertyDecl::Assign;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Recurse to children.
|
// Recurse to children.
|
||||||
|
|
Loading…
Reference in New Issue