diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2011-08-12 18:44:32 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2011-08-12 18:44:32 +0000 |
commit | def8bdbfac91cfddb2576a223993a4aebe06a065 (patch) | |
tree | 4f97db2a4258d53356e59dab029059adc6de772a /clang/lib/Sema/SemaDecl.cpp | |
parent | 4a04dbc749a9a4d061d58528d0c7309c41cee321 (diff) | |
download | bcm5719-llvm-def8bdbfac91cfddb2576a223993a4aebe06a065.tar.gz bcm5719-llvm-def8bdbfac91cfddb2576a223993a4aebe06a065.zip |
Fix some comments.
llvm-svn: 137491
Diffstat (limited to 'clang/lib/Sema/SemaDecl.cpp')
-rw-r--r-- | clang/lib/Sema/SemaDecl.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/clang/lib/Sema/SemaDecl.cpp b/clang/lib/Sema/SemaDecl.cpp index ff313932b26..b67c3d3e952 100644 --- a/clang/lib/Sema/SemaDecl.cpp +++ b/clang/lib/Sema/SemaDecl.cpp @@ -4371,11 +4371,10 @@ Sema::ActOnFunctionDeclarator(Scope *S, Declarator &D, DeclContext *DC, isVirtualOkay = true; } else if (DC->isRecord()) { - // If the of the function is the same as the name of the record, then this - // must be an invalid constructor that has a return type. + // If the name of the function is the same as the name of the record, + // then this must be an invalid constructor that has a return type. // (The parser checks for a return type and makes the declarator a // constructor if it has no return type). - // must have an invalid constructor that has a return type if (Name.getAsIdentifierInfo() && Name.getAsIdentifierInfo() == cast<CXXRecordDecl>(DC)->getIdentifier()){ Diag(D.getIdentifierLoc(), diag::err_constructor_return_type) @@ -6590,8 +6589,7 @@ Decl *Sema::ActOnFinishFunctionBody(Decl *dcl, Stmt *Body, if (FD && isa<CXXConstructorDecl>(FD) && isa<CXXTryStmt>(Body)) DiagnoseReturnInConstructorExceptionHandler(cast<CXXTryStmt>(Body)); - // Verify that that gotos and switch cases don't jump into scopes illegally. - // Verify that that gotos and switch cases don't jump into scopes illegally. + // Verify that gotos and switch cases don't jump into scopes illegally. if (getCurFunction()->NeedsScopeChecking() && !dcl->isInvalidDecl() && !hasAnyUnrecoverableErrorsInThisFunction()) |