From c37dbf7f6534f8e76211694ccc5622b6f342cfde Mon Sep 17 00:00:00 2001 From: Eli Friedman Date: Fri, 28 Jun 2013 20:48:34 +0000 Subject: [PATCH] Fix line endings. llvm-svn: 185215 --- clang/lib/Sema/SemaDeclCXX.cpp | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/clang/lib/Sema/SemaDeclCXX.cpp b/clang/lib/Sema/SemaDeclCXX.cpp index 45cf57f..4a008a0 100644 --- a/clang/lib/Sema/SemaDeclCXX.cpp +++ b/clang/lib/Sema/SemaDeclCXX.cpp @@ -1954,26 +1954,26 @@ Sema::ActOnCXXMemberDeclarator(Scope *S, AccessSpecifier AS, Declarator &D, AttributeList *MSPropertyAttr = getMSPropertyAttr(D.getDeclSpec().getAttributes().getList()); - if (MSPropertyAttr) { - Member = HandleMSProperty(S, cast(CurContext), Loc, D, - BitWidth, InitStyle, AS, MSPropertyAttr); - if (!Member) - return 0; - isInstField = false; - } else { - Member = HandleField(S, cast(CurContext), Loc, D, - BitWidth, InitStyle, AS); - assert(Member && "HandleField never returns null"); - } - } else { - assert(InitStyle == ICIS_NoInit || D.getDeclSpec().getStorageClassSpec() == DeclSpec::SCS_static); - - Member = HandleDeclarator(S, D, TemplateParameterLists); - if (!Member) - return 0; - - // Non-instance-fields can't have a bitfield. - if (BitWidth) { + if (MSPropertyAttr) { + Member = HandleMSProperty(S, cast(CurContext), Loc, D, + BitWidth, InitStyle, AS, MSPropertyAttr); + if (!Member) + return 0; + isInstField = false; + } else { + Member = HandleField(S, cast(CurContext), Loc, D, + BitWidth, InitStyle, AS); + assert(Member && "HandleField never returns null"); + } + } else { + assert(InitStyle == ICIS_NoInit || D.getDeclSpec().getStorageClassSpec() == DeclSpec::SCS_static); + + Member = HandleDeclarator(S, D, TemplateParameterLists); + if (!Member) + return 0; + + // Non-instance-fields can't have a bitfield. + if (BitWidth) { if (Member->isInvalidDecl()) { // don't emit another diagnostic. } else if (isa(Member)) { -- 2.7.4