Lines Matching refs:Writer
33 ASTWriter &Writer; member in clang::ASTStmtWriter
40 ASTStmtWriter(ASTWriter &Writer, ASTWriter::RecordData &Record) in ASTStmtWriter() argument
41 : Writer(Writer), Record(Record) { } in ASTStmtWriter()
54 Writer.AddSourceLocation(Args.getTemplateKeywordLoc(), Record); in AddTemplateKWAndArgsInfo()
55 Writer.AddSourceLocation(Args.LAngleLoc, Record); in AddTemplateKWAndArgsInfo()
56 Writer.AddSourceLocation(Args.RAngleLoc, Record); in AddTemplateKWAndArgsInfo()
58 Writer.AddTemplateArgumentLoc(Args.getTemplateArgs()[i], Record); in AddTemplateKWAndArgsInfo()
66 Writer.AddSourceLocation(S->getSemiLoc(), Record); in VisitNullStmt()
75 Writer.AddStmt(CS); in VisitCompoundStmt()
76 Writer.AddSourceLocation(S->getLBracLoc(), Record); in VisitCompoundStmt()
77 Writer.AddSourceLocation(S->getRBracLoc(), Record); in VisitCompoundStmt()
83 Record.push_back(Writer.getSwitchCaseID(S)); in VisitSwitchCase()
84 Writer.AddSourceLocation(S->getKeywordLoc(), Record); in VisitSwitchCase()
85 Writer.AddSourceLocation(S->getColonLoc(), Record); in VisitSwitchCase()
90 Writer.AddStmt(S->getLHS()); in VisitCaseStmt()
91 Writer.AddStmt(S->getRHS()); in VisitCaseStmt()
92 Writer.AddStmt(S->getSubStmt()); in VisitCaseStmt()
93 Writer.AddSourceLocation(S->getEllipsisLoc(), Record); in VisitCaseStmt()
99 Writer.AddStmt(S->getSubStmt()); in VisitDefaultStmt()
105 Writer.AddDeclRef(S->getDecl(), Record); in VisitLabelStmt()
106 Writer.AddStmt(S->getSubStmt()); in VisitLabelStmt()
107 Writer.AddSourceLocation(S->getIdentLoc(), Record); in VisitLabelStmt()
114 Writer.WriteAttributes(S->getAttrs(), Record); in VisitAttributedStmt()
115 Writer.AddStmt(S->getSubStmt()); in VisitAttributedStmt()
116 Writer.AddSourceLocation(S->getAttrLoc(), Record); in VisitAttributedStmt()
122 Writer.AddDeclRef(S->getConditionVariable(), Record); in VisitIfStmt()
123 Writer.AddStmt(S->getCond()); in VisitIfStmt()
124 Writer.AddStmt(S->getThen()); in VisitIfStmt()
125 Writer.AddStmt(S->getElse()); in VisitIfStmt()
126 Writer.AddSourceLocation(S->getIfLoc(), Record); in VisitIfStmt()
127 Writer.AddSourceLocation(S->getElseLoc(), Record); in VisitIfStmt()
133 Writer.AddDeclRef(S->getConditionVariable(), Record); in VisitSwitchStmt()
134 Writer.AddStmt(S->getCond()); in VisitSwitchStmt()
135 Writer.AddStmt(S->getBody()); in VisitSwitchStmt()
136 Writer.AddSourceLocation(S->getSwitchLoc(), Record); in VisitSwitchStmt()
140 Record.push_back(Writer.RecordSwitchCaseID(SC)); in VisitSwitchStmt()
146 Writer.AddDeclRef(S->getConditionVariable(), Record); in VisitWhileStmt()
147 Writer.AddStmt(S->getCond()); in VisitWhileStmt()
148 Writer.AddStmt(S->getBody()); in VisitWhileStmt()
149 Writer.AddSourceLocation(S->getWhileLoc(), Record); in VisitWhileStmt()
155 Writer.AddStmt(S->getCond()); in VisitDoStmt()
156 Writer.AddStmt(S->getBody()); in VisitDoStmt()
157 Writer.AddSourceLocation(S->getDoLoc(), Record); in VisitDoStmt()
158 Writer.AddSourceLocation(S->getWhileLoc(), Record); in VisitDoStmt()
159 Writer.AddSourceLocation(S->getRParenLoc(), Record); in VisitDoStmt()
165 Writer.AddStmt(S->getInit()); in VisitForStmt()
166 Writer.AddStmt(S->getCond()); in VisitForStmt()
167 Writer.AddDeclRef(S->getConditionVariable(), Record); in VisitForStmt()
168 Writer.AddStmt(S->getInc()); in VisitForStmt()
169 Writer.AddStmt(S->getBody()); in VisitForStmt()
170 Writer.AddSourceLocation(S->getForLoc(), Record); in VisitForStmt()
171 Writer.AddSourceLocation(S->getLParenLoc(), Record); in VisitForStmt()
172 Writer.AddSourceLocation(S->getRParenLoc(), Record); in VisitForStmt()
178 Writer.AddDeclRef(S->getLabel(), Record); in VisitGotoStmt()
179 Writer.AddSourceLocation(S->getGotoLoc(), Record); in VisitGotoStmt()
180 Writer.AddSourceLocation(S->getLabelLoc(), Record); in VisitGotoStmt()
186 Writer.AddSourceLocation(S->getGotoLoc(), Record); in VisitIndirectGotoStmt()
187 Writer.AddSourceLocation(S->getStarLoc(), Record); in VisitIndirectGotoStmt()
188 Writer.AddStmt(S->getTarget()); in VisitIndirectGotoStmt()
194 Writer.AddSourceLocation(S->getContinueLoc(), Record); in VisitContinueStmt()
200 Writer.AddSourceLocation(S->getBreakLoc(), Record); in VisitBreakStmt()
206 Writer.AddStmt(S->getRetValue()); in VisitReturnStmt()
207 Writer.AddSourceLocation(S->getReturnLoc(), Record); in VisitReturnStmt()
208 Writer.AddDeclRef(S->getNRVOCandidate(), Record); in VisitReturnStmt()
214 Writer.AddSourceLocation(S->getStartLoc(), Record); in VisitDeclStmt()
215 Writer.AddSourceLocation(S->getEndLoc(), Record); in VisitDeclStmt()
218 Writer.AddDeclRef(*D, Record); in VisitDeclStmt()
227 Writer.AddSourceLocation(S->getAsmLoc(), Record); in VisitAsmStmt()
234 Writer.AddSourceLocation(S->getRParenLoc(), Record); in VisitGCCAsmStmt()
235 Writer.AddStmt(S->getAsmString()); in VisitGCCAsmStmt()
239 Writer.AddIdentifierRef(S->getOutputIdentifier(I), Record); in VisitGCCAsmStmt()
240 Writer.AddStmt(S->getOutputConstraintLiteral(I)); in VisitGCCAsmStmt()
241 Writer.AddStmt(S->getOutputExpr(I)); in VisitGCCAsmStmt()
246 Writer.AddIdentifierRef(S->getInputIdentifier(I), Record); in VisitGCCAsmStmt()
247 Writer.AddStmt(S->getInputConstraintLiteral(I)); in VisitGCCAsmStmt()
248 Writer.AddStmt(S->getInputExpr(I)); in VisitGCCAsmStmt()
253 Writer.AddStmt(S->getClobberStringLiteral(I)); in VisitGCCAsmStmt()
260 Writer.AddSourceLocation(S->getLBraceLoc(), Record); in VisitMSAsmStmt()
261 Writer.AddSourceLocation(S->getEndLoc(), Record); in VisitMSAsmStmt()
263 Writer.AddString(S->getAsmString(), Record); in VisitMSAsmStmt()
267 Writer.AddToken(S->getAsmToks()[I], Record); in VisitMSAsmStmt()
272 Writer.AddString(S->getClobber(I), Record); in VisitMSAsmStmt()
277 Writer.AddStmt(S->getOutputExpr(I)); in VisitMSAsmStmt()
278 Writer.AddString(S->getOutputConstraint(I), Record); in VisitMSAsmStmt()
283 Writer.AddStmt(S->getInputExpr(I)); in VisitMSAsmStmt()
284 Writer.AddString(S->getInputConstraint(I), Record); in VisitMSAsmStmt()
296 Writer.AddDeclRef(S->getCapturedDecl(), Record); in VisitCapturedStmt()
299 Writer.AddDeclRef(S->getCapturedRecordDecl(), Record); in VisitCapturedStmt()
303 Writer.AddStmt(I); in VisitCapturedStmt()
306 Writer.AddStmt(S->getCapturedStmt()); in VisitCapturedStmt()
311 Writer.AddDeclRef(nullptr, Record); in VisitCapturedStmt()
313 Writer.AddDeclRef(I.getCapturedVar(), Record); in VisitCapturedStmt()
315 Writer.AddSourceLocation(I.getLocation(), Record); in VisitCapturedStmt()
323 Writer.AddTypeRef(E->getType(), Record); in VisitExpr()
334 Writer.AddSourceLocation(E->getLocation(), Record); in VisitPredefinedExpr()
336 Writer.AddStmt(E->getFunctionName()); in VisitPredefinedExpr()
359 AbbrevToUse = Writer.getDeclRefExprAbbrev(); in VisitDeclRefExpr()
363 Writer.AddNestedNameSpecifierLoc(E->getQualifierLoc(), Record); in VisitDeclRefExpr()
366 Writer.AddDeclRef(E->getFoundDecl(), Record); in VisitDeclRefExpr()
371 Writer.AddDeclRef(E->getDecl(), Record); in VisitDeclRefExpr()
372 Writer.AddSourceLocation(E->getLocation(), Record); in VisitDeclRefExpr()
373 Writer.AddDeclarationNameLoc(E->DNLoc, E->getDecl()->getDeclName(), Record); in VisitDeclRefExpr()
379 Writer.AddSourceLocation(E->getLocation(), Record); in VisitIntegerLiteral()
380 Writer.AddAPInt(E->getValue(), Record); in VisitIntegerLiteral()
383 AbbrevToUse = Writer.getIntegerLiteralAbbrev(); in VisitIntegerLiteral()
393 Writer.AddAPFloat(E->getValue(), Record); in VisitFloatingLiteral()
394 Writer.AddSourceLocation(E->getLocation(), Record); in VisitFloatingLiteral()
400 Writer.AddStmt(E->getSubExpr()); in VisitImaginaryLiteral()
416 Writer.AddSourceLocation(E->getStrTokenLoc(I), Record); in VisitStringLiteral()
423 Writer.AddSourceLocation(E->getLocation(), Record); in VisitCharacterLiteral()
426 AbbrevToUse = Writer.getCharacterLiteralAbbrev(); in VisitCharacterLiteral()
433 Writer.AddSourceLocation(E->getLParen(), Record); in VisitParenExpr()
434 Writer.AddSourceLocation(E->getRParen(), Record); in VisitParenExpr()
435 Writer.AddStmt(E->getSubExpr()); in VisitParenExpr()
443 Writer.AddStmt(E->Exprs[i]); in VisitParenListExpr()
444 Writer.AddSourceLocation(E->LParenLoc, Record); in VisitParenListExpr()
445 Writer.AddSourceLocation(E->RParenLoc, Record); in VisitParenListExpr()
451 Writer.AddStmt(E->getSubExpr()); in VisitUnaryOperator()
453 Writer.AddSourceLocation(E->getOperatorLoc(), Record); in VisitUnaryOperator()
461 Writer.AddSourceLocation(E->getOperatorLoc(), Record); in VisitOffsetOfExpr()
462 Writer.AddSourceLocation(E->getRParenLoc(), Record); in VisitOffsetOfExpr()
463 Writer.AddTypeSourceInfo(E->getTypeSourceInfo(), Record); in VisitOffsetOfExpr()
467 Writer.AddSourceLocation(ON.getSourceRange().getBegin(), Record); in VisitOffsetOfExpr()
468 Writer.AddSourceLocation(ON.getSourceRange().getEnd(), Record); in VisitOffsetOfExpr()
475 Writer.AddDeclRef(ON.getField(), Record); in VisitOffsetOfExpr()
479 Writer.AddIdentifierRef(ON.getFieldName(), Record); in VisitOffsetOfExpr()
483 Writer.AddCXXBaseSpecifier(*ON.getBase(), Record); in VisitOffsetOfExpr()
488 Writer.AddStmt(E->getIndexExpr(I)); in VisitOffsetOfExpr()
496 Writer.AddTypeSourceInfo(E->getArgumentTypeInfo(), Record); in VisitUnaryExprOrTypeTraitExpr()
499 Writer.AddStmt(E->getArgumentExpr()); in VisitUnaryExprOrTypeTraitExpr()
501 Writer.AddSourceLocation(E->getOperatorLoc(), Record); in VisitUnaryExprOrTypeTraitExpr()
502 Writer.AddSourceLocation(E->getRParenLoc(), Record); in VisitUnaryExprOrTypeTraitExpr()
508 Writer.AddStmt(E->getLHS()); in VisitArraySubscriptExpr()
509 Writer.AddStmt(E->getRHS()); in VisitArraySubscriptExpr()
510 Writer.AddSourceLocation(E->getRBracketLoc(), Record); in VisitArraySubscriptExpr()
517 Writer.AddSourceLocation(E->getRParenLoc(), Record); in VisitCallExpr()
518 Writer.AddStmt(E->getCallee()); in VisitCallExpr()
521 Writer.AddStmt(*Arg); in VisitCallExpr()
530 Writer.AddNestedNameSpecifierLoc(E->getQualifierLoc(), Record); in VisitMemberExpr()
534 Writer.AddSourceLocation(E->getTemplateKeywordLoc(), Record); in VisitMemberExpr()
537 Writer.AddSourceLocation(E->getLAngleLoc(), Record); in VisitMemberExpr()
538 Writer.AddSourceLocation(E->getRAngleLoc(), Record); in VisitMemberExpr()
540 Writer.AddTemplateArgumentLoc(E->getTemplateArgs()[i], Record); in VisitMemberExpr()
546 Writer.AddDeclRef(FoundDecl.getDecl(), Record); in VisitMemberExpr()
549 Writer.AddTypeRef(E->getType(), Record); in VisitMemberExpr()
552 Writer.AddStmt(E->getBase()); in VisitMemberExpr()
553 Writer.AddDeclRef(E->getMemberDecl(), Record); in VisitMemberExpr()
554 Writer.AddSourceLocation(E->getMemberLoc(), Record); in VisitMemberExpr()
556 Writer.AddSourceLocation(E->getOperatorLoc(), Record); in VisitMemberExpr()
557 Writer.AddDeclarationNameLoc(E->MemberDNLoc, in VisitMemberExpr()
564 Writer.AddStmt(E->getBase()); in VisitObjCIsaExpr()
565 Writer.AddSourceLocation(E->getIsaMemberLoc(), Record); in VisitObjCIsaExpr()
566 Writer.AddSourceLocation(E->getOpLoc(), Record); in VisitObjCIsaExpr()
574 Writer.AddStmt(E->getSubExpr()); in VisitObjCIndirectCopyRestoreExpr()
581 Writer.AddSourceLocation(E->getLParenLoc(), Record); in VisitObjCBridgedCastExpr()
582 Writer.AddSourceLocation(E->getBridgeKeywordLoc(), Record); in VisitObjCBridgedCastExpr()
590 Writer.AddStmt(E->getSubExpr()); in VisitCastExpr()
595 Writer.AddCXXBaseSpecifier(**PI, Record); in VisitCastExpr()
600 Writer.AddStmt(E->getLHS()); in VisitBinaryOperator()
601 Writer.AddStmt(E->getRHS()); in VisitBinaryOperator()
603 Writer.AddSourceLocation(E->getOperatorLoc(), Record); in VisitBinaryOperator()
610 Writer.AddTypeRef(E->getComputationLHSType(), Record); in VisitCompoundAssignOperator()
611 Writer.AddTypeRef(E->getComputationResultType(), Record); in VisitCompoundAssignOperator()
617 Writer.AddStmt(E->getCond()); in VisitConditionalOperator()
618 Writer.AddStmt(E->getLHS()); in VisitConditionalOperator()
619 Writer.AddStmt(E->getRHS()); in VisitConditionalOperator()
620 Writer.AddSourceLocation(E->getQuestionLoc(), Record); in VisitConditionalOperator()
621 Writer.AddSourceLocation(E->getColonLoc(), Record); in VisitConditionalOperator()
628 Writer.AddStmt(E->getOpaqueValue()); in VisitBinaryConditionalOperator()
629 Writer.AddStmt(E->getCommon()); in VisitBinaryConditionalOperator()
630 Writer.AddStmt(E->getCond()); in VisitBinaryConditionalOperator()
631 Writer.AddStmt(E->getTrueExpr()); in VisitBinaryConditionalOperator()
632 Writer.AddStmt(E->getFalseExpr()); in VisitBinaryConditionalOperator()
633 Writer.AddSourceLocation(E->getQuestionLoc(), Record); in VisitBinaryConditionalOperator()
634 Writer.AddSourceLocation(E->getColonLoc(), Record); in VisitBinaryConditionalOperator()
642 AbbrevToUse = Writer.getExprImplicitCastAbbrev(); in VisitImplicitCastExpr()
649 Writer.AddTypeSourceInfo(E->getTypeInfoAsWritten(), Record); in VisitExplicitCastExpr()
654 Writer.AddSourceLocation(E->getLParenLoc(), Record); in VisitCStyleCastExpr()
655 Writer.AddSourceLocation(E->getRParenLoc(), Record); in VisitCStyleCastExpr()
661 Writer.AddSourceLocation(E->getLParenLoc(), Record); in VisitCompoundLiteralExpr()
662 Writer.AddTypeSourceInfo(E->getTypeSourceInfo(), Record); in VisitCompoundLiteralExpr()
663 Writer.AddStmt(E->getInitializer()); in VisitCompoundLiteralExpr()
670 Writer.AddStmt(E->getBase()); in VisitExtVectorElementExpr()
671 Writer.AddIdentifierRef(&E->getAccessor(), Record); in VisitExtVectorElementExpr()
672 Writer.AddSourceLocation(E->getAccessorLoc(), Record); in VisitExtVectorElementExpr()
680 Writer.AddStmt(E->getSyntacticForm()); in VisitInitListExpr()
681 Writer.AddSourceLocation(E->getLBraceLoc(), Record); in VisitInitListExpr()
682 Writer.AddSourceLocation(E->getRBraceLoc(), Record); in VisitInitListExpr()
686 Writer.AddStmt(E->getArrayFiller()); in VisitInitListExpr()
688 Writer.AddDeclRef(E->getInitializedFieldInUnion(), Record); in VisitInitListExpr()
696 Writer.AddStmt(E->getInit(I) != filler ? E->getInit(I) : nullptr); in VisitInitListExpr()
699 Writer.AddStmt(E->getInit(I)); in VisitInitListExpr()
708 Writer.AddStmt(E->getSubExpr(I)); in VisitDesignatedInitExpr()
709 Writer.AddSourceLocation(E->getEqualOrColonLoc(), Record); in VisitDesignatedInitExpr()
717 Writer.AddDeclRef(Field, Record); in VisitDesignatedInitExpr()
720 Writer.AddIdentifierRef(D->getFieldName(), Record); in VisitDesignatedInitExpr()
722 Writer.AddSourceLocation(D->getDotLoc(), Record); in VisitDesignatedInitExpr()
723 Writer.AddSourceLocation(D->getFieldLoc(), Record); in VisitDesignatedInitExpr()
727 Writer.AddSourceLocation(D->getLBracketLoc(), Record); in VisitDesignatedInitExpr()
728 Writer.AddSourceLocation(D->getRBracketLoc(), Record); in VisitDesignatedInitExpr()
733 Writer.AddSourceLocation(D->getLBracketLoc(), Record); in VisitDesignatedInitExpr()
734 Writer.AddSourceLocation(D->getEllipsisLoc(), Record); in VisitDesignatedInitExpr()
735 Writer.AddSourceLocation(D->getRBracketLoc(), Record); in VisitDesignatedInitExpr()
748 Writer.AddStmt(E->getSubExpr()); in VisitVAArgExpr()
749 Writer.AddTypeSourceInfo(E->getWrittenTypeInfo(), Record); in VisitVAArgExpr()
750 Writer.AddSourceLocation(E->getBuiltinLoc(), Record); in VisitVAArgExpr()
751 Writer.AddSourceLocation(E->getRParenLoc(), Record); in VisitVAArgExpr()
757 Writer.AddSourceLocation(E->getAmpAmpLoc(), Record); in VisitAddrLabelExpr()
758 Writer.AddSourceLocation(E->getLabelLoc(), Record); in VisitAddrLabelExpr()
759 Writer.AddDeclRef(E->getLabel(), Record); in VisitAddrLabelExpr()
765 Writer.AddStmt(E->getSubStmt()); in VisitStmtExpr()
766 Writer.AddSourceLocation(E->getLParenLoc(), Record); in VisitStmtExpr()
767 Writer.AddSourceLocation(E->getRParenLoc(), Record); in VisitStmtExpr()
773 Writer.AddStmt(E->getCond()); in VisitChooseExpr()
774 Writer.AddStmt(E->getLHS()); in VisitChooseExpr()
775 Writer.AddStmt(E->getRHS()); in VisitChooseExpr()
776 Writer.AddSourceLocation(E->getBuiltinLoc(), Record); in VisitChooseExpr()
777 Writer.AddSourceLocation(E->getRParenLoc(), Record); in VisitChooseExpr()
784 Writer.AddSourceLocation(E->getTokenLocation(), Record); in VisitGNUNullExpr()
792 Writer.AddStmt(E->getExpr(I)); in VisitShuffleVectorExpr()
793 Writer.AddSourceLocation(E->getBuiltinLoc(), Record); in VisitShuffleVectorExpr()
794 Writer.AddSourceLocation(E->getRParenLoc(), Record); in VisitShuffleVectorExpr()
800 Writer.AddSourceLocation(E->getBuiltinLoc(), Record); in VisitConvertVectorExpr()
801 Writer.AddSourceLocation(E->getRParenLoc(), Record); in VisitConvertVectorExpr()
802 Writer.AddTypeSourceInfo(E->getTypeSourceInfo(), Record); in VisitConvertVectorExpr()
803 Writer.AddStmt(E->getSrcExpr()); in VisitConvertVectorExpr()
809 Writer.AddDeclRef(E->getBlockDecl(), Record); in VisitBlockExpr()
817 Writer.AddStmt(E->getControllingExpr()); in VisitGenericSelectionExpr()
819 Writer.AddTypeSourceInfo(E->getAssocTypeSourceInfo(I), Record); in VisitGenericSelectionExpr()
820 Writer.AddStmt(E->getAssocExpr(I)); in VisitGenericSelectionExpr()
824 Writer.AddSourceLocation(E->getGenericLoc(), Record); in VisitGenericSelectionExpr()
825 Writer.AddSourceLocation(E->getDefaultLoc(), Record); in VisitGenericSelectionExpr()
826 Writer.AddSourceLocation(E->getRParenLoc(), Record); in VisitGenericSelectionExpr()
840 Writer.AddStmt(E->getSyntacticForm()); in VisitPseudoObjectExpr()
843 Writer.AddStmt(*i); in VisitPseudoObjectExpr()
852 Writer.AddStmt(E->getSubExprs()[I]); in VisitAtomicExpr()
853 Writer.AddSourceLocation(E->getBuiltinLoc(), Record); in VisitAtomicExpr()
854 Writer.AddSourceLocation(E->getRParenLoc(), Record); in VisitAtomicExpr()
864 Writer.AddStmt(E->getString()); in VisitObjCStringLiteral()
865 Writer.AddSourceLocation(E->getAtLoc(), Record); in VisitObjCStringLiteral()
871 Writer.AddStmt(E->getSubExpr()); in VisitObjCBoxedExpr()
872 Writer.AddDeclRef(E->getBoxingMethod(), Record); in VisitObjCBoxedExpr()
873 Writer.AddSourceRange(E->getSourceRange(), Record); in VisitObjCBoxedExpr()
881 Writer.AddStmt(E->getElement(i)); in VisitObjCArrayLiteral()
882 Writer.AddDeclRef(E->getArrayWithObjectsMethod(), Record); in VisitObjCArrayLiteral()
883 Writer.AddSourceRange(E->getSourceRange(), Record); in VisitObjCArrayLiteral()
893 Writer.AddStmt(Element.Key); in VisitObjCDictionaryLiteral()
894 Writer.AddStmt(Element.Value); in VisitObjCDictionaryLiteral()
896 Writer.AddSourceLocation(Element.EllipsisLoc, Record); in VisitObjCDictionaryLiteral()
904 Writer.AddDeclRef(E->getDictWithObjectsMethod(), Record); in VisitObjCDictionaryLiteral()
905 Writer.AddSourceRange(E->getSourceRange(), Record); in VisitObjCDictionaryLiteral()
911 Writer.AddTypeSourceInfo(E->getEncodedTypeSourceInfo(), Record); in VisitObjCEncodeExpr()
912 Writer.AddSourceLocation(E->getAtLoc(), Record); in VisitObjCEncodeExpr()
913 Writer.AddSourceLocation(E->getRParenLoc(), Record); in VisitObjCEncodeExpr()
919 Writer.AddSelectorRef(E->getSelector(), Record); in VisitObjCSelectorExpr()
920 Writer.AddSourceLocation(E->getAtLoc(), Record); in VisitObjCSelectorExpr()
921 Writer.AddSourceLocation(E->getRParenLoc(), Record); in VisitObjCSelectorExpr()
927 Writer.AddDeclRef(E->getProtocol(), Record); in VisitObjCProtocolExpr()
928 Writer.AddSourceLocation(E->getAtLoc(), Record); in VisitObjCProtocolExpr()
929 Writer.AddSourceLocation(E->ProtoLoc, Record); in VisitObjCProtocolExpr()
930 Writer.AddSourceLocation(E->getRParenLoc(), Record); in VisitObjCProtocolExpr()
936 Writer.AddDeclRef(E->getDecl(), Record); in VisitObjCIvarRefExpr()
937 Writer.AddSourceLocation(E->getLocation(), Record); in VisitObjCIvarRefExpr()
938 Writer.AddSourceLocation(E->getOpLoc(), Record); in VisitObjCIvarRefExpr()
939 Writer.AddStmt(E->getBase()); in VisitObjCIvarRefExpr()
950 Writer.AddDeclRef(E->getImplicitPropertyGetter(), Record); in VisitObjCPropertyRefExpr()
951 Writer.AddDeclRef(E->getImplicitPropertySetter(), Record); in VisitObjCPropertyRefExpr()
953 Writer.AddDeclRef(E->getExplicitProperty(), Record); in VisitObjCPropertyRefExpr()
955 Writer.AddSourceLocation(E->getLocation(), Record); in VisitObjCPropertyRefExpr()
956 Writer.AddSourceLocation(E->getReceiverLocation(), Record); in VisitObjCPropertyRefExpr()
959 Writer.AddStmt(E->getBase()); in VisitObjCPropertyRefExpr()
962 Writer.AddTypeRef(E->getSuperReceiverType(), Record); in VisitObjCPropertyRefExpr()
965 Writer.AddDeclRef(E->getClassReceiver(), Record); in VisitObjCPropertyRefExpr()
973 Writer.AddSourceLocation(E->getRBracket(), Record); in VisitObjCSubscriptRefExpr()
974 Writer.AddStmt(E->getBaseExpr()); in VisitObjCSubscriptRefExpr()
975 Writer.AddStmt(E->getKeyExpr()); in VisitObjCSubscriptRefExpr()
976 Writer.AddDeclRef(E->getAtIndexMethodDecl(), Record); in VisitObjCSubscriptRefExpr()
977 Writer.AddDeclRef(E->setAtIndexMethodDecl(), Record); in VisitObjCSubscriptRefExpr()
992 Writer.AddStmt(E->getInstanceReceiver()); in VisitObjCMessageExpr()
996 Writer.AddTypeSourceInfo(E->getClassReceiverTypeInfo(), Record); in VisitObjCMessageExpr()
1001 Writer.AddTypeRef(E->getSuperType(), Record); in VisitObjCMessageExpr()
1002 Writer.AddSourceLocation(E->getSuperLoc(), Record); in VisitObjCMessageExpr()
1008 Writer.AddDeclRef(E->getMethodDecl(), Record); in VisitObjCMessageExpr()
1011 Writer.AddSelectorRef(E->getSelector(), Record); in VisitObjCMessageExpr()
1014 Writer.AddSourceLocation(E->getLeftLoc(), Record); in VisitObjCMessageExpr()
1015 Writer.AddSourceLocation(E->getRightLoc(), Record); in VisitObjCMessageExpr()
1019 Writer.AddStmt(*Arg); in VisitObjCMessageExpr()
1023 Writer.AddSourceLocation(Locs[i], Record); in VisitObjCMessageExpr()
1030 Writer.AddStmt(S->getElement()); in VisitObjCForCollectionStmt()
1031 Writer.AddStmt(S->getCollection()); in VisitObjCForCollectionStmt()
1032 Writer.AddStmt(S->getBody()); in VisitObjCForCollectionStmt()
1033 Writer.AddSourceLocation(S->getForLoc(), Record); in VisitObjCForCollectionStmt()
1034 Writer.AddSourceLocation(S->getRParenLoc(), Record); in VisitObjCForCollectionStmt()
1039 Writer.AddStmt(S->getCatchBody()); in VisitObjCAtCatchStmt()
1040 Writer.AddDeclRef(S->getCatchParamDecl(), Record); in VisitObjCAtCatchStmt()
1041 Writer.AddSourceLocation(S->getAtCatchLoc(), Record); in VisitObjCAtCatchStmt()
1042 Writer.AddSourceLocation(S->getRParenLoc(), Record); in VisitObjCAtCatchStmt()
1047 Writer.AddStmt(S->getFinallyBody()); in VisitObjCAtFinallyStmt()
1048 Writer.AddSourceLocation(S->getAtFinallyLoc(), Record); in VisitObjCAtFinallyStmt()
1053 Writer.AddStmt(S->getSubStmt()); in VisitObjCAutoreleasePoolStmt()
1054 Writer.AddSourceLocation(S->getAtLoc(), Record); in VisitObjCAutoreleasePoolStmt()
1061 Writer.AddStmt(S->getTryBody()); in VisitObjCAtTryStmt()
1063 Writer.AddStmt(S->getCatchStmt(I)); in VisitObjCAtTryStmt()
1065 Writer.AddStmt(S->getFinallyStmt()); in VisitObjCAtTryStmt()
1066 Writer.AddSourceLocation(S->getAtTryLoc(), Record); in VisitObjCAtTryStmt()
1071 Writer.AddStmt(S->getSynchExpr()); in VisitObjCAtSynchronizedStmt()
1072 Writer.AddStmt(S->getSynchBody()); in VisitObjCAtSynchronizedStmt()
1073 Writer.AddSourceLocation(S->getAtSynchronizedLoc(), Record); in VisitObjCAtSynchronizedStmt()
1078 Writer.AddStmt(S->getThrowExpr()); in VisitObjCAtThrowStmt()
1079 Writer.AddSourceLocation(S->getThrowLoc(), Record); in VisitObjCAtThrowStmt()
1086 Writer.AddSourceLocation(E->getLocation(), Record); in VisitObjCBoolLiteralExpr()
1096 Writer.AddSourceLocation(S->getCatchLoc(), Record); in VisitCXXCatchStmt()
1097 Writer.AddDeclRef(S->getExceptionDecl(), Record); in VisitCXXCatchStmt()
1098 Writer.AddStmt(S->getHandlerBlock()); in VisitCXXCatchStmt()
1105 Writer.AddSourceLocation(S->getTryLoc(), Record); in VisitCXXTryStmt()
1106 Writer.AddStmt(S->getTryBlock()); in VisitCXXTryStmt()
1108 Writer.AddStmt(S->getHandler(i)); in VisitCXXTryStmt()
1114 Writer.AddSourceLocation(S->getForLoc(), Record); in VisitCXXForRangeStmt()
1115 Writer.AddSourceLocation(S->getColonLoc(), Record); in VisitCXXForRangeStmt()
1116 Writer.AddSourceLocation(S->getRParenLoc(), Record); in VisitCXXForRangeStmt()
1117 Writer.AddStmt(S->getRangeStmt()); in VisitCXXForRangeStmt()
1118 Writer.AddStmt(S->getBeginEndStmt()); in VisitCXXForRangeStmt()
1119 Writer.AddStmt(S->getCond()); in VisitCXXForRangeStmt()
1120 Writer.AddStmt(S->getInc()); in VisitCXXForRangeStmt()
1121 Writer.AddStmt(S->getLoopVarStmt()); in VisitCXXForRangeStmt()
1122 Writer.AddStmt(S->getBody()); in VisitCXXForRangeStmt()
1128 Writer.AddSourceLocation(S->getKeywordLoc(), Record); in VisitMSDependentExistsStmt()
1130 Writer.AddNestedNameSpecifierLoc(S->getQualifierLoc(), Record); in VisitMSDependentExistsStmt()
1131 Writer.AddDeclarationNameInfo(S->getNameInfo(), Record); in VisitMSDependentExistsStmt()
1132 Writer.AddStmt(S->getSubStmt()); in VisitMSDependentExistsStmt()
1139 Writer.AddSourceRange(E->Range, Record); in VisitCXXOperatorCallExpr()
1153 Writer.AddStmt(E->getArg(I)); in VisitCXXConstructExpr()
1154 Writer.AddDeclRef(E->getConstructor(), Record); in VisitCXXConstructExpr()
1155 Writer.AddSourceLocation(E->getLocation(), Record); in VisitCXXConstructExpr()
1162 Writer.AddSourceRange(E->getParenOrBraceRange(), Record); in VisitCXXConstructExpr()
1168 Writer.AddTypeSourceInfo(E->getTypeSourceInfo(), Record); in VisitCXXTemporaryObjectExpr()
1179 Writer.AddSourceRange(E->IntroducerRange, Record); in VisitLambdaExpr()
1181 Writer.AddSourceLocation(E->CaptureDefaultLoc, Record); in VisitLambdaExpr()
1184 Writer.AddSourceLocation(E->ClosingBrace, Record); in VisitLambdaExpr()
1190 Writer.AddStmt(*C); in VisitLambdaExpr()
1199 Writer.AddDeclRef(ArrayIndexVars[I], Record); in VisitLambdaExpr()
1207 Writer.AddStmt(E->getSubExpr()); in VisitCXXStdInitializerListExpr()
1213 Writer.AddSourceRange(SourceRange(E->getOperatorLoc(), E->getRParenLoc()), in VisitCXXNamedCastExpr()
1215 Writer.AddSourceRange(E->getAngleBrackets(), Record); in VisitCXXNamedCastExpr()
1240 Writer.AddSourceLocation(E->getLParenLoc(), Record); in VisitCXXFunctionalCastExpr()
1241 Writer.AddSourceLocation(E->getRParenLoc(), Record); in VisitCXXFunctionalCastExpr()
1247 Writer.AddSourceLocation(E->UDSuffixLoc, Record); in VisitUserDefinedLiteral()
1254 Writer.AddSourceLocation(E->getLocation(), Record); in VisitCXXBoolLiteralExpr()
1260 Writer.AddSourceLocation(E->getLocation(), Record); in VisitCXXNullPtrLiteralExpr()
1266 Writer.AddSourceRange(E->getSourceRange(), Record); in VisitCXXTypeidExpr()
1268 Writer.AddTypeSourceInfo(E->getTypeOperandSourceInfo(), Record); in VisitCXXTypeidExpr()
1271 Writer.AddStmt(E->getExprOperand()); in VisitCXXTypeidExpr()
1278 Writer.AddSourceLocation(E->getLocation(), Record); in VisitCXXThisExpr()
1285 Writer.AddSourceLocation(E->getThrowLoc(), Record); in VisitCXXThrowExpr()
1286 Writer.AddStmt(E->getSubExpr()); in VisitCXXThrowExpr()
1298 Writer.AddStmt(E->getExpr()); in VisitCXXDefaultArgExpr()
1299 Writer.AddDeclRef(E->getParam(), Record); in VisitCXXDefaultArgExpr()
1300 Writer.AddSourceLocation(E->getUsedLocation(), Record); in VisitCXXDefaultArgExpr()
1307 Writer.AddDeclRef(E->getField(), Record); in VisitCXXDefaultInitExpr()
1308 Writer.AddSourceLocation(E->getExprLoc(), Record); in VisitCXXDefaultInitExpr()
1314 Writer.AddCXXTemporary(E->getTemporary(), Record); in VisitCXXBindTemporaryExpr()
1315 Writer.AddStmt(E->getSubExpr()); in VisitCXXBindTemporaryExpr()
1321 Writer.AddTypeSourceInfo(E->getTypeSourceInfo(), Record); in VisitCXXScalarValueInitExpr()
1322 Writer.AddSourceLocation(E->getRParenLoc(), Record); in VisitCXXScalarValueInitExpr()
1333 Writer.AddDeclRef(E->getOperatorNew(), Record); in VisitCXXNewExpr()
1334 Writer.AddDeclRef(E->getOperatorDelete(), Record); in VisitCXXNewExpr()
1335 Writer.AddTypeSourceInfo(E->getAllocatedTypeSourceInfo(), Record); in VisitCXXNewExpr()
1336 Writer.AddSourceRange(E->getTypeIdParens(), Record); in VisitCXXNewExpr()
1337 Writer.AddSourceRange(E->getSourceRange(), Record); in VisitCXXNewExpr()
1338 Writer.AddSourceRange(E->getDirectInitRange(), Record); in VisitCXXNewExpr()
1341 Writer.AddStmt(*I); in VisitCXXNewExpr()
1352 Writer.AddDeclRef(E->getOperatorDelete(), Record); in VisitCXXDeleteExpr()
1353 Writer.AddStmt(E->getArgument()); in VisitCXXDeleteExpr()
1354 Writer.AddSourceLocation(E->getSourceRange().getBegin(), Record); in VisitCXXDeleteExpr()
1362 Writer.AddStmt(E->getBase()); in VisitCXXPseudoDestructorExpr()
1364 Writer.AddSourceLocation(E->getOperatorLoc(), Record); in VisitCXXPseudoDestructorExpr()
1365 Writer.AddNestedNameSpecifierLoc(E->getQualifierLoc(), Record); in VisitCXXPseudoDestructorExpr()
1366 Writer.AddTypeSourceInfo(E->getScopeTypeInfo(), Record); in VisitCXXPseudoDestructorExpr()
1367 Writer.AddSourceLocation(E->getColonColonLoc(), Record); in VisitCXXPseudoDestructorExpr()
1368 Writer.AddSourceLocation(E->getTildeLoc(), Record); in VisitCXXPseudoDestructorExpr()
1371 Writer.AddIdentifierRef(E->getDestroyedTypeIdentifier(), Record); in VisitCXXPseudoDestructorExpr()
1373 Writer.AddSourceLocation(E->getDestroyedTypeLoc(), Record); in VisitCXXPseudoDestructorExpr()
1375 Writer.AddTypeSourceInfo(E->getDestroyedTypeInfo(), Record); in VisitCXXPseudoDestructorExpr()
1384 Writer.AddDeclRef(E->getObject(i), Record); in VisitExprWithCleanups()
1386 Writer.AddStmt(E->getSubExpr()); in VisitExprWithCleanups()
1405 Writer.AddStmt(E->getBase()); in VisitCXXDependentScopeMemberExpr()
1407 Writer.AddStmt(nullptr); in VisitCXXDependentScopeMemberExpr()
1408 Writer.AddTypeRef(E->getBaseType(), Record); in VisitCXXDependentScopeMemberExpr()
1410 Writer.AddSourceLocation(E->getOperatorLoc(), Record); in VisitCXXDependentScopeMemberExpr()
1411 Writer.AddNestedNameSpecifierLoc(E->getQualifierLoc(), Record); in VisitCXXDependentScopeMemberExpr()
1412 Writer.AddDeclRef(E->getFirstQualifierFoundInScope(), Record); in VisitCXXDependentScopeMemberExpr()
1413 Writer.AddDeclarationNameInfo(E->MemberNameInfo, Record); in VisitCXXDependentScopeMemberExpr()
1431 Writer.AddNestedNameSpecifierLoc(E->getQualifierLoc(), Record); in VisitDependentScopeDeclRefExpr()
1432 Writer.AddDeclarationNameInfo(E->NameInfo, Record); in VisitDependentScopeDeclRefExpr()
1442 Writer.AddStmt(*ArgI); in VisitCXXUnresolvedConstructExpr()
1443 Writer.AddTypeSourceInfo(E->getTypeSourceInfo(), Record); in VisitCXXUnresolvedConstructExpr()
1444 Writer.AddSourceLocation(E->getLParenLoc(), Record); in VisitCXXUnresolvedConstructExpr()
1445 Writer.AddSourceLocation(E->getRParenLoc(), Record); in VisitCXXUnresolvedConstructExpr()
1465 Writer.AddDeclRef(OvI.getDecl(), Record); in VisitOverloadExpr()
1469 Writer.AddDeclarationNameInfo(E->NameInfo, Record); in VisitOverloadExpr()
1470 Writer.AddNestedNameSpecifierLoc(E->getQualifierLoc(), Record); in VisitOverloadExpr()
1477 Writer.AddStmt(!E->isImplicitAccess() ? E->getBase() : nullptr); in VisitUnresolvedMemberExpr()
1478 Writer.AddTypeRef(E->getBaseType(), Record); in VisitUnresolvedMemberExpr()
1479 Writer.AddSourceLocation(E->getOperatorLoc(), Record); in VisitUnresolvedMemberExpr()
1487 Writer.AddDeclRef(E->getNamingClass(), Record); in VisitUnresolvedLookupExpr()
1496 Writer.AddSourceRange(E->getSourceRange(), Record); in VisitTypeTraitExpr()
1498 Writer.AddTypeSourceInfo(E->getArg(I), Record); in VisitTypeTraitExpr()
1506 Writer.AddSourceRange(E->getSourceRange(), Record); in VisitArrayTypeTraitExpr()
1507 Writer.AddTypeSourceInfo(E->getQueriedTypeSourceInfo(), Record); in VisitArrayTypeTraitExpr()
1515 Writer.AddSourceRange(E->getSourceRange(), Record); in VisitExpressionTraitExpr()
1516 Writer.AddStmt(E->getQueriedExpression()); in VisitExpressionTraitExpr()
1523 Writer.AddSourceRange(E->getSourceRange(), Record); in VisitCXXNoexceptExpr()
1524 Writer.AddStmt(E->getOperand()); in VisitCXXNoexceptExpr()
1530 Writer.AddSourceLocation(E->getEllipsisLoc(), Record); in VisitPackExpansionExpr()
1532 Writer.AddStmt(E->getPattern()); in VisitPackExpansionExpr()
1538 Writer.AddSourceLocation(E->OperatorLoc, Record); in VisitSizeOfPackExpr()
1539 Writer.AddSourceLocation(E->PackLoc, Record); in VisitSizeOfPackExpr()
1540 Writer.AddSourceLocation(E->RParenLoc, Record); in VisitSizeOfPackExpr()
1542 Writer.AddDeclRef(E->Pack, Record); in VisitSizeOfPackExpr()
1549 Writer.AddDeclRef(E->getParameter(), Record); in VisitSubstNonTypeTemplateParmExpr()
1550 Writer.AddSourceLocation(E->getNameLoc(), Record); in VisitSubstNonTypeTemplateParmExpr()
1551 Writer.AddStmt(E->getReplacement()); in VisitSubstNonTypeTemplateParmExpr()
1558 Writer.AddDeclRef(E->getParameterPack(), Record); in VisitSubstNonTypeTemplateParmPackExpr()
1559 Writer.AddTemplateArgument(E->getArgumentPack(), Record); in VisitSubstNonTypeTemplateParmPackExpr()
1560 Writer.AddSourceLocation(E->getParameterPackLocation(), Record); in VisitSubstNonTypeTemplateParmPackExpr()
1567 Writer.AddDeclRef(E->getParameterPack(), Record); in VisitFunctionParmPackExpr()
1568 Writer.AddSourceLocation(E->getParameterPackLocation(), Record); in VisitFunctionParmPackExpr()
1571 Writer.AddDeclRef(*I, Record); in VisitFunctionParmPackExpr()
1577 Writer.AddStmt(E->getTemporary()); in VisitMaterializeTemporaryExpr()
1578 Writer.AddDeclRef(E->getExtendingDecl(), Record); in VisitMaterializeTemporaryExpr()
1585 Writer.AddSourceLocation(E->LParenLoc, Record); in VisitCXXFoldExpr()
1586 Writer.AddSourceLocation(E->EllipsisLoc, Record); in VisitCXXFoldExpr()
1587 Writer.AddSourceLocation(E->RParenLoc, Record); in VisitCXXFoldExpr()
1588 Writer.AddStmt(E->SubExprs[0]); in VisitCXXFoldExpr()
1589 Writer.AddStmt(E->SubExprs[1]); in VisitCXXFoldExpr()
1596 Writer.AddStmt(E->getSourceExpr()); in VisitOpaqueValueExpr()
1597 Writer.AddSourceLocation(E->getLocation(), Record); in VisitOpaqueValueExpr()
1613 Writer.AddStmt(E->getConfig()); in VisitCUDAKernelCallExpr()
1622 Writer.AddSourceLocation(E->getBuiltinLoc(), Record); in VisitAsTypeExpr()
1623 Writer.AddSourceLocation(E->getRParenLoc(), Record); in VisitAsTypeExpr()
1624 Writer.AddStmt(E->getSrcExpr()); in VisitAsTypeExpr()
1634 Writer.AddStmt(E->getBaseExpr()); in VisitMSPropertyRefExpr()
1635 Writer.AddNestedNameSpecifierLoc(E->getQualifierLoc(), Record); in VisitMSPropertyRefExpr()
1636 Writer.AddSourceLocation(E->getMemberLoc(), Record); in VisitMSPropertyRefExpr()
1637 Writer.AddDeclRef(E->getPropertyDecl(), Record); in VisitMSPropertyRefExpr()
1643 Writer.AddSourceRange(E->getSourceRange(), Record); in VisitCXXUuidofExpr()
1645 Writer.AddTypeSourceInfo(E->getTypeOperandSourceInfo(), Record); in VisitCXXUuidofExpr()
1648 Writer.AddStmt(E->getExprOperand()); in VisitCXXUuidofExpr()
1655 Writer.AddSourceLocation(S->getExceptLoc(), Record); in VisitSEHExceptStmt()
1656 Writer.AddStmt(S->getFilterExpr()); in VisitSEHExceptStmt()
1657 Writer.AddStmt(S->getBlock()); in VisitSEHExceptStmt()
1663 Writer.AddSourceLocation(S->getFinallyLoc(), Record); in VisitSEHFinallyStmt()
1664 Writer.AddStmt(S->getBlock()); in VisitSEHFinallyStmt()
1671 Writer.AddSourceLocation(S->getTryLoc(), Record); in VisitSEHTryStmt()
1672 Writer.AddStmt(S->getTryBlock()); in VisitSEHTryStmt()
1673 Writer.AddStmt(S->getHandler()); in VisitSEHTryStmt()
1679 Writer.AddSourceLocation(S->getLeaveLoc(), Record); in VisitSEHLeaveStmt()
1689 ASTStmtWriter *Writer; member in clang::OMPClauseWriter
1693 : Writer(W), Record(Record) { } in OMPClauseWriter()
1704 Writer->Writer.AddSourceLocation(C->getLocStart(), Record); in writeClause()
1705 Writer->Writer.AddSourceLocation(C->getLocEnd(), Record); in writeClause()
1709 Writer->Writer.AddStmt(C->getCondition()); in VisitOMPIfClause()
1710 Writer->Writer.AddSourceLocation(C->getLParenLoc(), Record); in VisitOMPIfClause()
1714 Writer->Writer.AddStmt(C->getCondition()); in VisitOMPFinalClause()
1715 Writer->Writer.AddSourceLocation(C->getLParenLoc(), Record); in VisitOMPFinalClause()
1719 Writer->Writer.AddStmt(C->getNumThreads()); in VisitOMPNumThreadsClause()
1720 Writer->Writer.AddSourceLocation(C->getLParenLoc(), Record); in VisitOMPNumThreadsClause()
1724 Writer->Writer.AddStmt(C->getSafelen()); in VisitOMPSafelenClause()
1725 Writer->Writer.AddSourceLocation(C->getLParenLoc(), Record); in VisitOMPSafelenClause()
1729 Writer->Writer.AddStmt(C->getNumForLoops()); in VisitOMPCollapseClause()
1730 Writer->Writer.AddSourceLocation(C->getLParenLoc(), Record); in VisitOMPCollapseClause()
1735 Writer->Writer.AddSourceLocation(C->getLParenLoc(), Record); in VisitOMPDefaultClause()
1736 Writer->Writer.AddSourceLocation(C->getDefaultKindKwLoc(), Record); in VisitOMPDefaultClause()
1741 Writer->Writer.AddSourceLocation(C->getLParenLoc(), Record); in VisitOMPProcBindClause()
1742 Writer->Writer.AddSourceLocation(C->getProcBindKindKwLoc(), Record); in VisitOMPProcBindClause()
1747 Writer->Writer.AddStmt(C->getChunkSize()); in VisitOMPScheduleClause()
1748 Writer->Writer.AddSourceLocation(C->getLParenLoc(), Record); in VisitOMPScheduleClause()
1749 Writer->Writer.AddSourceLocation(C->getScheduleKindLoc(), Record); in VisitOMPScheduleClause()
1750 Writer->Writer.AddSourceLocation(C->getCommaLoc(), Record); in VisitOMPScheduleClause()
1773 Writer->Writer.AddSourceLocation(C->getLParenLoc(), Record); in VisitOMPPrivateClause()
1775 Writer->Writer.AddStmt(VE); in VisitOMPPrivateClause()
1778 Writer->Writer.AddStmt(VE); in VisitOMPPrivateClause()
1784 Writer->Writer.AddSourceLocation(C->getLParenLoc(), Record); in VisitOMPFirstprivateClause()
1786 Writer->Writer.AddStmt(VE); in VisitOMPFirstprivateClause()
1789 Writer->Writer.AddStmt(VE); in VisitOMPFirstprivateClause()
1792 Writer->Writer.AddStmt(VE); in VisitOMPFirstprivateClause()
1798 Writer->Writer.AddSourceLocation(C->getLParenLoc(), Record); in VisitOMPLastprivateClause()
1800 Writer->Writer.AddStmt(VE); in VisitOMPLastprivateClause()
1802 Writer->Writer.AddStmt(E); in VisitOMPLastprivateClause()
1804 Writer->Writer.AddStmt(E); in VisitOMPLastprivateClause()
1806 Writer->Writer.AddStmt(E); in VisitOMPLastprivateClause()
1808 Writer->Writer.AddStmt(E); in VisitOMPLastprivateClause()
1813 Writer->Writer.AddSourceLocation(C->getLParenLoc(), Record); in VisitOMPSharedClause()
1815 Writer->Writer.AddStmt(VE); in VisitOMPSharedClause()
1820 Writer->Writer.AddSourceLocation(C->getLParenLoc(), Record); in VisitOMPReductionClause()
1821 Writer->Writer.AddSourceLocation(C->getColonLoc(), Record); in VisitOMPReductionClause()
1822 Writer->Writer.AddNestedNameSpecifierLoc(C->getQualifierLoc(), Record); in VisitOMPReductionClause()
1823 Writer->Writer.AddDeclarationNameInfo(C->getNameInfo(), Record); in VisitOMPReductionClause()
1825 Writer->Writer.AddStmt(VE); in VisitOMPReductionClause()
1827 Writer->Writer.AddStmt(E); in VisitOMPReductionClause()
1829 Writer->Writer.AddStmt(E); in VisitOMPReductionClause()
1831 Writer->Writer.AddStmt(E); in VisitOMPReductionClause()
1836 Writer->Writer.AddSourceLocation(C->getLParenLoc(), Record); in VisitOMPLinearClause()
1837 Writer->Writer.AddSourceLocation(C->getColonLoc(), Record); in VisitOMPLinearClause()
1839 Writer->Writer.AddStmt(VE); in VisitOMPLinearClause()
1842 Writer->Writer.AddStmt(VE); in VisitOMPLinearClause()
1845 Writer->Writer.AddStmt(VE); in VisitOMPLinearClause()
1848 Writer->Writer.AddStmt(VE); in VisitOMPLinearClause()
1850 Writer->Writer.AddStmt(C->getStep()); in VisitOMPLinearClause()
1851 Writer->Writer.AddStmt(C->getCalcStep()); in VisitOMPLinearClause()
1856 Writer->Writer.AddSourceLocation(C->getLParenLoc(), Record); in VisitOMPAlignedClause()
1857 Writer->Writer.AddSourceLocation(C->getColonLoc(), Record); in VisitOMPAlignedClause()
1859 Writer->Writer.AddStmt(VE); in VisitOMPAlignedClause()
1860 Writer->Writer.AddStmt(C->getAlignment()); in VisitOMPAlignedClause()
1865 Writer->Writer.AddSourceLocation(C->getLParenLoc(), Record); in VisitOMPCopyinClause()
1867 Writer->Writer.AddStmt(VE); in VisitOMPCopyinClause()
1869 Writer->Writer.AddStmt(E); in VisitOMPCopyinClause()
1871 Writer->Writer.AddStmt(E); in VisitOMPCopyinClause()
1873 Writer->Writer.AddStmt(E); in VisitOMPCopyinClause()
1878 Writer->Writer.AddSourceLocation(C->getLParenLoc(), Record); in VisitOMPCopyprivateClause()
1880 Writer->Writer.AddStmt(VE); in VisitOMPCopyprivateClause()
1882 Writer->Writer.AddStmt(E); in VisitOMPCopyprivateClause()
1884 Writer->Writer.AddStmt(E); in VisitOMPCopyprivateClause()
1886 Writer->Writer.AddStmt(E); in VisitOMPCopyprivateClause()
1891 Writer->Writer.AddSourceLocation(C->getLParenLoc(), Record); in VisitOMPFlushClause()
1893 Writer->Writer.AddStmt(VE); in VisitOMPFlushClause()
1900 Writer.AddSourceLocation(E->getLocStart(), Record); in VisitOMPExecutableDirective()
1901 Writer.AddSourceLocation(E->getLocEnd(), Record); in VisitOMPExecutableDirective()
1907 Writer.AddStmt(E->getAssociatedStmt()); in VisitOMPExecutableDirective()
1915 Writer.AddStmt(D->getIterationVariable()); in VisitOMPLoopDirective()
1916 Writer.AddStmt(D->getLastIteration()); in VisitOMPLoopDirective()
1917 Writer.AddStmt(D->getCalcLastIteration()); in VisitOMPLoopDirective()
1918 Writer.AddStmt(D->getPreCond()); in VisitOMPLoopDirective()
1919 Writer.AddStmt(D->getCond(/* SeparateIter */ false)); in VisitOMPLoopDirective()
1920 Writer.AddStmt(D->getCond(/* SeparateIter */ true)); in VisitOMPLoopDirective()
1921 Writer.AddStmt(D->getInit()); in VisitOMPLoopDirective()
1922 Writer.AddStmt(D->getInc()); in VisitOMPLoopDirective()
1924 Writer.AddStmt(D->getIsLastIterVariable()); in VisitOMPLoopDirective()
1925 Writer.AddStmt(D->getLowerBoundVariable()); in VisitOMPLoopDirective()
1926 Writer.AddStmt(D->getUpperBoundVariable()); in VisitOMPLoopDirective()
1927 Writer.AddStmt(D->getStrideVariable()); in VisitOMPLoopDirective()
1928 Writer.AddStmt(D->getEnsureUpperBound()); in VisitOMPLoopDirective()
1929 Writer.AddStmt(D->getNextLowerBound()); in VisitOMPLoopDirective()
1930 Writer.AddStmt(D->getNextUpperBound()); in VisitOMPLoopDirective()
1933 Writer.AddStmt(I); in VisitOMPLoopDirective()
1936 Writer.AddStmt(I); in VisitOMPLoopDirective()
1939 Writer.AddStmt(I); in VisitOMPLoopDirective()
1994 Writer.AddDeclarationNameInfo(D->getDirectiveName(), Record); in VisitOMPCriticalDirective()
2028 Writer.AddStmt(D->getX()); in VisitOMPAtomicDirective()
2029 Writer.AddStmt(D->getV()); in VisitOMPAtomicDirective()
2030 Writer.AddStmt(D->getExpr()); in VisitOMPAtomicDirective()
2031 Writer.AddStmt(D->getUpdateExpr()); in VisitOMPAtomicDirective()
2110 ASTStmtWriter Writer(*this, Record); in WriteSubStmt() local
2148 Writer.Code = serialization::STMT_NULL_PTR; in WriteSubStmt()
2149 Writer.AbbrevToUse = 0; in WriteSubStmt()
2150 Writer.Visit(S); in WriteSubStmt()
2153 if (Writer.Code == serialization::STMT_NULL_PTR) { in WriteSubStmt()
2171 Stream.EmitRecord(Writer.Code, Record, Writer.AbbrevToUse); in WriteSubStmt()