Fix a typo, remove a tab, canonicalize some spacing. No functional change.

llvm-svn: 134305
This commit is contained in:
Nick Lewycky 2011-07-02 02:05:12 +00:00
parent ec485453b2
commit 0bdf13ea9a
1 changed files with 3 additions and 3 deletions
clang/lib/Sema

View File

@ -1378,7 +1378,7 @@ void Sema::MergeTypedefNameDecl(TypedefNameDecl *New, LookupResult &OldDecls) {
// The types match. Link up the redeclaration chain if the old // The types match. Link up the redeclaration chain if the old
// declaration was a typedef. // declaration was a typedef.
// FIXME: this is a potential source of wierdness if the type // FIXME: this is a potential source of weirdness if the type
// spellings don't match exactly. // spellings don't match exactly.
if (TypedefNameDecl *Typedef = dyn_cast<TypedefNameDecl>(Old)) if (TypedefNameDecl *Typedef = dyn_cast<TypedefNameDecl>(Old))
New->setPreviousDeclaration(Typedef); New->setPreviousDeclaration(Typedef);
@ -4124,7 +4124,7 @@ static void DiagnoseInvalidRedeclaration(Sema &S, FunctionDecl *NewFD) {
} }
NamedDecl* NamedDecl*
Sema::ActOnFunctionDeclarator(Scope* S, Declarator& D, DeclContext* DC, Sema::ActOnFunctionDeclarator(Scope *S, Declarator &D, DeclContext *DC,
QualType R, TypeSourceInfo *TInfo, QualType R, TypeSourceInfo *TInfo,
LookupResult &Previous, LookupResult &Previous,
MultiTemplateParamsArg TemplateParamLists, MultiTemplateParamsArg TemplateParamLists,
@ -9058,7 +9058,7 @@ void Sema::ActOnEnumBody(SourceLocation EnumLoc, SourceLocation LBraceLoc,
// Adjust the Expr initializer and type. // Adjust the Expr initializer and type.
if (ECD->getInitExpr() && if (ECD->getInitExpr() &&
!Context.hasSameType(NewTy, ECD->getInitExpr()->getType())) !Context.hasSameType(NewTy, ECD->getInitExpr()->getType()))
ECD->setInitExpr(ImplicitCastExpr::Create(Context, NewTy, ECD->setInitExpr(ImplicitCastExpr::Create(Context, NewTy,
CK_IntegralCast, CK_IntegralCast,
ECD->getInitExpr(), ECD->getInitExpr(),