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