Mercurial > hg > CbC > CbC_llvm
changeset 158:bd617681647f
set std::move at caller AddTypeInfo
author | anatofuz |
---|---|
date | Tue, 17 Mar 2020 16:35:46 +0900 |
parents | 5fe240291530 |
children | cbec8b90714d |
files | clang/lib/Parse/ParseCbC.cpp |
diffstat | 1 files changed, 8 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/clang/lib/Parse/ParseCbC.cpp Thu Mar 12 15:06:29 2020 +0900 +++ b/clang/lib/Parse/ParseCbC.cpp Tue Mar 17 16:35:46 2020 +0900 @@ -257,7 +257,7 @@ DeclaratorInfo.ExtendWithDeclSpec(star_DS); DeclaratorInfo.SetIdentifier(nullptr, Tok.getLocation()); DeclaratorInfo.AddTypeInfo(DeclaratorChunk::getPointer(star_DS.getTypeQualifiers(), Loc,star_DS.getConstSpecLoc(),star_DS.getVolatileSpecLoc(), - star_DS.getRestrictSpecLoc(),star_DS.getAtomicSpecLoc(),star_DS.getUnalignedSpecLoc()),star_DS.getAttributes(),SourceLocation()); + star_DS.getRestrictSpecLoc(),star_DS.getAtomicSpecLoc(),star_DS.getUnalignedSpecLoc()),std::move(star_DS.getAttributes()),SourceLocation()); return Actions.ActOnCastExpr(getCurScope(), Loc, DeclaratorInfo, CastTy,Loc, Result.get()); } @@ -329,7 +329,7 @@ DS.Finish(Actions, Policy); D.AddTypeInfo(DeclaratorChunk::getPointer(FDS.getTypeQualifiers(), Loc, FDS.getConstSpecLoc(), FDS.getVolatileSpecLoc(), - FDS.getRestrictSpecLoc(), DS.getAtomicSpecLoc(), FDS.getUnalignedSpecLoc()), FDS.getAttributes(), SourceLocation()); + FDS.getRestrictSpecLoc(), DS.getAtomicSpecLoc(), FDS.getUnalignedSpecLoc()), std::move(FDS.getAttributes()), SourceLocation()); D.setGroupingParens(hadGroupingParens); @@ -370,7 +370,7 @@ DynamicExceptions.data(), DynamicExceptionRanges.data(), DynamicExceptions.size(), NoexceptExpr.isUsable() ? NoexceptExpr.get() : 0, ExceptionSpecTokens, None, Loc, Loc, D, TrailingReturnType), - FnAttrs, Loc); + std::move(FnAttrs), Loc); PrototypeScope.Exit(); DSp = &FDS; } @@ -596,7 +596,7 @@ DeclaratorInfo.D.AddTypeInfo(DeclaratorChunk::getPointer(DS.getTypeQualifiers(), Loc,DS.getConstSpecLoc(), DS.getVolatileSpecLoc(),DS.getRestrictSpecLoc(), DS.getAtomicSpecLoc(), DS.getUnalignedSpecLoc()), - DS.getAttributes(),SourceLocation()); + std::move(DS.getAttributes()),SourceLocation()); Decl *Field = Actions.ActOnField(getCurScope(), TagDecl, DeclaratorInfo.D.getDeclSpec().getSourceRange().getBegin(), DeclaratorInfo.D, DeclaratorInfo.BitfieldSize); @@ -698,7 +698,7 @@ ESpecType, ESpecRange.getBegin(), DynamicExceptions.data(), DynamicExceptionRanges.data(), DynamicExceptions.size(), NoexceptExpr.isUsable() ? NoexceptExpr.get() : 0, ExceptionSpecTokens, None, - Loc, Loc, D, TrailingReturnType), FnAttrs, Loc); + Loc, Loc, D, TrailingReturnType), std::move(FnAttrs), Loc); PrototypeScope.Exit(); Decl *TheDecl; @@ -733,7 +733,7 @@ starDS.getRestrictSpecLoc(), starDS.getAtomicSpecLoc(), starDS.getUnalignedSpecLoc()), - starDS.getAttributes(), + std::move(starDS.getAttributes()), SourceLocation()); ExprVector ArgExprs2; LHS = LookupNameAndBuildExpr(envII); @@ -779,7 +779,7 @@ ljDS.getRestrictSpecLoc(), ljDS.getAtomicSpecLoc(), ljDS.getUnalignedSpecLoc()), - ljDS.getAttributes(), + std::move(ljDS.getAttributes()), SourceLocation()); ljLHS = LookupNameAndBuildExpr(envII); Expr *ljCastExpr = ljLHS.get(); @@ -861,7 +861,7 @@ pointerDS.getRestrictSpecLoc(), pointerDS.getAtomicSpecLoc(), pointerDS.getUnalignedSpecLoc()), - pointerDS.getAttributes(),SourceLocation()); + std::move(pointerDS.getAttributes()),SourceLocation()); } ParmVarDecl *Param = dyn_cast<ParmVarDecl>(Actions.ActOnParamDeclarator(getCurScope(), ParamDeclarator)); return Param;