Lines Matching refs:FlatTree
561 SmallVector<DiffNode, 16> FlatTree; member in __anon9da9a8600111::TemplateDiff::DiffTree
576 FlatTree.push_back(DiffNode()); in DiffTree()
583 assert(FlatTree[CurrentNode].Kind == Invalid && "Node is not empty."); in SetTemplateDiff()
584 FlatTree[CurrentNode].Kind = Template; in SetTemplateDiff()
585 FlatTree[CurrentNode].FromArgInfo.TD = FromTD; in SetTemplateDiff()
586 FlatTree[CurrentNode].ToArgInfo.TD = ToTD; in SetTemplateDiff()
587 FlatTree[CurrentNode].FromArgInfo.Qual = FromQual; in SetTemplateDiff()
588 FlatTree[CurrentNode].ToArgInfo.Qual = ToQual; in SetTemplateDiff()
594 assert(FlatTree[CurrentNode].Kind == Invalid && "Node is not empty."); in SetTypeDiff()
595 FlatTree[CurrentNode].Kind = Type; in SetTypeDiff()
596 FlatTree[CurrentNode].FromArgInfo.ArgType = FromType; in SetTypeDiff()
597 FlatTree[CurrentNode].ToArgInfo.ArgType = ToType; in SetTypeDiff()
603 assert(FlatTree[CurrentNode].Kind == Invalid && "Node is not empty."); in SetExpressionDiff()
604 FlatTree[CurrentNode].Kind = Expression; in SetExpressionDiff()
605 FlatTree[CurrentNode].FromArgInfo.ArgExpr = FromExpr; in SetExpressionDiff()
606 FlatTree[CurrentNode].ToArgInfo.ArgExpr = ToExpr; in SetExpressionDiff()
612 assert(FlatTree[CurrentNode].Kind == Invalid && "Node is not empty."); in SetTemplateTemplateDiff()
613 FlatTree[CurrentNode].Kind = TemplateTemplate; in SetTemplateTemplateDiff()
614 FlatTree[CurrentNode].FromArgInfo.TD = FromTD; in SetTemplateTemplateDiff()
615 FlatTree[CurrentNode].ToArgInfo.TD = ToTD; in SetTemplateTemplateDiff()
624 assert(FlatTree[CurrentNode].Kind == Invalid && "Node is not empty."); in SetIntegerDiff()
625 FlatTree[CurrentNode].Kind = Integer; in SetIntegerDiff()
626 FlatTree[CurrentNode].FromArgInfo.Val = FromInt; in SetIntegerDiff()
627 FlatTree[CurrentNode].ToArgInfo.Val = ToInt; in SetIntegerDiff()
628 FlatTree[CurrentNode].FromArgInfo.IsValidInt = IsValidFromInt; in SetIntegerDiff()
629 FlatTree[CurrentNode].ToArgInfo.IsValidInt = IsValidToInt; in SetIntegerDiff()
630 FlatTree[CurrentNode].FromArgInfo.ArgType = FromIntType; in SetIntegerDiff()
631 FlatTree[CurrentNode].ToArgInfo.ArgType = ToIntType; in SetIntegerDiff()
632 FlatTree[CurrentNode].FromArgInfo.ArgExpr = FromExpr; in SetIntegerDiff()
633 FlatTree[CurrentNode].ToArgInfo.ArgExpr = ToExpr; in SetIntegerDiff()
641 assert(FlatTree[CurrentNode].Kind == Invalid && "Node is not empty."); in SetDeclarationDiff()
642 FlatTree[CurrentNode].Kind = Declaration; in SetDeclarationDiff()
643 FlatTree[CurrentNode].FromArgInfo.VD = FromValueDecl; in SetDeclarationDiff()
644 FlatTree[CurrentNode].ToArgInfo.VD = ToValueDecl; in SetDeclarationDiff()
645 FlatTree[CurrentNode].FromArgInfo.NeedAddressOf = FromAddressOf; in SetDeclarationDiff()
646 FlatTree[CurrentNode].ToArgInfo.NeedAddressOf = ToAddressOf; in SetDeclarationDiff()
647 FlatTree[CurrentNode].FromArgInfo.IsNullPtr = FromNullPtr; in SetDeclarationDiff()
648 FlatTree[CurrentNode].ToArgInfo.IsNullPtr = ToNullPtr; in SetDeclarationDiff()
649 FlatTree[CurrentNode].FromArgInfo.ArgExpr = FromExpr; in SetDeclarationDiff()
650 FlatTree[CurrentNode].ToArgInfo.ArgExpr = ToExpr; in SetDeclarationDiff()
658 assert(FlatTree[CurrentNode].Kind == Invalid && "Node is not empty."); in SetFromDeclarationAndToIntegerDiff()
659 FlatTree[CurrentNode].Kind = FromDeclarationAndToInteger; in SetFromDeclarationAndToIntegerDiff()
660 FlatTree[CurrentNode].FromArgInfo.VD = FromValueDecl; in SetFromDeclarationAndToIntegerDiff()
661 FlatTree[CurrentNode].FromArgInfo.NeedAddressOf = FromAddressOf; in SetFromDeclarationAndToIntegerDiff()
662 FlatTree[CurrentNode].FromArgInfo.IsNullPtr = FromNullPtr; in SetFromDeclarationAndToIntegerDiff()
663 FlatTree[CurrentNode].FromArgInfo.ArgExpr = FromExpr; in SetFromDeclarationAndToIntegerDiff()
664 FlatTree[CurrentNode].ToArgInfo.Val = ToInt; in SetFromDeclarationAndToIntegerDiff()
665 FlatTree[CurrentNode].ToArgInfo.IsValidInt = IsValidToInt; in SetFromDeclarationAndToIntegerDiff()
666 FlatTree[CurrentNode].ToArgInfo.ArgType = ToIntType; in SetFromDeclarationAndToIntegerDiff()
667 FlatTree[CurrentNode].ToArgInfo.ArgExpr = ToExpr; in SetFromDeclarationAndToIntegerDiff()
675 assert(FlatTree[CurrentNode].Kind == Invalid && "Node is not empty."); in SetFromIntegerAndToDeclarationDiff()
676 FlatTree[CurrentNode].Kind = FromIntegerAndToDeclaration; in SetFromIntegerAndToDeclarationDiff()
677 FlatTree[CurrentNode].FromArgInfo.Val = FromInt; in SetFromIntegerAndToDeclarationDiff()
678 FlatTree[CurrentNode].FromArgInfo.IsValidInt = IsValidFromInt; in SetFromIntegerAndToDeclarationDiff()
679 FlatTree[CurrentNode].FromArgInfo.ArgType = FromIntType; in SetFromIntegerAndToDeclarationDiff()
680 FlatTree[CurrentNode].FromArgInfo.ArgExpr = FromExpr; in SetFromIntegerAndToDeclarationDiff()
681 FlatTree[CurrentNode].ToArgInfo.VD = ToValueDecl; in SetFromIntegerAndToDeclarationDiff()
682 FlatTree[CurrentNode].ToArgInfo.NeedAddressOf = ToAddressOf; in SetFromIntegerAndToDeclarationDiff()
683 FlatTree[CurrentNode].ToArgInfo.IsNullPtr = ToNullPtr; in SetFromIntegerAndToDeclarationDiff()
684 FlatTree[CurrentNode].ToArgInfo.ArgExpr = ToExpr; in SetFromIntegerAndToDeclarationDiff()
691 FlatTree[CurrentNode].FromArgInfo.IsDefault = FromDefault; in SetDefault()
692 FlatTree[CurrentNode].ToArgInfo.IsDefault = ToDefault; in SetDefault()
697 FlatTree[CurrentNode].Same = Same; in SetSame()
702 FlatTree[CurrentNode].Kind = Kind; in SetKind()
707 assert(FlatTree[CurrentNode].Kind != Invalid && in Up()
709 CurrentNode = FlatTree[CurrentNode].ParentNode; in Up()
715 assert(FlatTree[CurrentNode].Kind == Template && in AddNode()
717 FlatTree.push_back(DiffNode(CurrentNode)); in AddNode()
718 DiffNode &Node = FlatTree[CurrentNode]; in AddNode()
726 for (i = Node.ChildNode; FlatTree[i].NextNode != 0; in AddNode()
727 i = FlatTree[i].NextNode) { in AddNode()
729 FlatTree[i].NextNode = NextFreeNode; in AddNode()
745 ReadNode = FlatTree[ReadNode].ParentNode; in Parent()
750 assert(FlatTree[ReadNode].Kind == Template && "Unexpected kind."); in GetTemplateDiff()
751 FromTD = FlatTree[ReadNode].FromArgInfo.TD; in GetTemplateDiff()
752 ToTD = FlatTree[ReadNode].ToArgInfo.TD; in GetTemplateDiff()
753 FromQual = FlatTree[ReadNode].FromArgInfo.Qual; in GetTemplateDiff()
754 ToQual = FlatTree[ReadNode].ToArgInfo.Qual; in GetTemplateDiff()
758 assert(FlatTree[ReadNode].Kind == Type && "Unexpected kind"); in GetTypeDiff()
759 FromType = FlatTree[ReadNode].FromArgInfo.ArgType; in GetTypeDiff()
760 ToType = FlatTree[ReadNode].ToArgInfo.ArgType; in GetTypeDiff()
764 assert(FlatTree[ReadNode].Kind == Expression && "Unexpected kind"); in GetExpressionDiff()
765 FromExpr = FlatTree[ReadNode].FromArgInfo.ArgExpr; in GetExpressionDiff()
766 ToExpr = FlatTree[ReadNode].ToArgInfo.ArgExpr; in GetExpressionDiff()
770 assert(FlatTree[ReadNode].Kind == TemplateTemplate && "Unexpected kind."); in GetTemplateTemplateDiff()
771 FromTD = FlatTree[ReadNode].FromArgInfo.TD; in GetTemplateTemplateDiff()
772 ToTD = FlatTree[ReadNode].ToArgInfo.TD; in GetTemplateTemplateDiff()
779 assert(FlatTree[ReadNode].Kind == Integer && "Unexpected kind."); in GetIntegerDiff()
780 FromInt = FlatTree[ReadNode].FromArgInfo.Val; in GetIntegerDiff()
781 ToInt = FlatTree[ReadNode].ToArgInfo.Val; in GetIntegerDiff()
782 IsValidFromInt = FlatTree[ReadNode].FromArgInfo.IsValidInt; in GetIntegerDiff()
783 IsValidToInt = FlatTree[ReadNode].ToArgInfo.IsValidInt; in GetIntegerDiff()
784 FromIntType = FlatTree[ReadNode].FromArgInfo.ArgType; in GetIntegerDiff()
785 ToIntType = FlatTree[ReadNode].ToArgInfo.ArgType; in GetIntegerDiff()
786 FromExpr = FlatTree[ReadNode].FromArgInfo.ArgExpr; in GetIntegerDiff()
787 ToExpr = FlatTree[ReadNode].ToArgInfo.ArgExpr; in GetIntegerDiff()
794 assert(FlatTree[ReadNode].Kind == Declaration && "Unexpected kind."); in GetDeclarationDiff()
795 FromValueDecl = FlatTree[ReadNode].FromArgInfo.VD; in GetDeclarationDiff()
796 ToValueDecl = FlatTree[ReadNode].ToArgInfo.VD; in GetDeclarationDiff()
797 FromAddressOf = FlatTree[ReadNode].FromArgInfo.NeedAddressOf; in GetDeclarationDiff()
798 ToAddressOf = FlatTree[ReadNode].ToArgInfo.NeedAddressOf; in GetDeclarationDiff()
799 FromNullPtr = FlatTree[ReadNode].FromArgInfo.IsNullPtr; in GetDeclarationDiff()
800 ToNullPtr = FlatTree[ReadNode].ToArgInfo.IsNullPtr; in GetDeclarationDiff()
801 FromExpr = FlatTree[ReadNode].FromArgInfo.ArgExpr; in GetDeclarationDiff()
802 ToExpr = FlatTree[ReadNode].ToArgInfo.ArgExpr; in GetDeclarationDiff()
809 assert(FlatTree[ReadNode].Kind == FromDeclarationAndToInteger && in GetFromDeclarationAndToIntegerDiff()
811 FromValueDecl = FlatTree[ReadNode].FromArgInfo.VD; in GetFromDeclarationAndToIntegerDiff()
812 FromAddressOf = FlatTree[ReadNode].FromArgInfo.NeedAddressOf; in GetFromDeclarationAndToIntegerDiff()
813 FromNullPtr = FlatTree[ReadNode].FromArgInfo.IsNullPtr; in GetFromDeclarationAndToIntegerDiff()
814 FromExpr = FlatTree[ReadNode].FromArgInfo.ArgExpr; in GetFromDeclarationAndToIntegerDiff()
815 ToInt = FlatTree[ReadNode].ToArgInfo.Val; in GetFromDeclarationAndToIntegerDiff()
816 IsValidToInt = FlatTree[ReadNode].ToArgInfo.IsValidInt; in GetFromDeclarationAndToIntegerDiff()
817 ToIntType = FlatTree[ReadNode].ToArgInfo.ArgType; in GetFromDeclarationAndToIntegerDiff()
818 ToExpr = FlatTree[ReadNode].ToArgInfo.ArgExpr; in GetFromDeclarationAndToIntegerDiff()
825 assert(FlatTree[ReadNode].Kind == FromIntegerAndToDeclaration && in GetFromIntegerAndToDeclarationDiff()
827 FromInt = FlatTree[ReadNode].FromArgInfo.Val; in GetFromIntegerAndToDeclarationDiff()
828 IsValidFromInt = FlatTree[ReadNode].FromArgInfo.IsValidInt; in GetFromIntegerAndToDeclarationDiff()
829 FromIntType = FlatTree[ReadNode].FromArgInfo.ArgType; in GetFromIntegerAndToDeclarationDiff()
830 FromExpr = FlatTree[ReadNode].FromArgInfo.ArgExpr; in GetFromIntegerAndToDeclarationDiff()
831 ToValueDecl = FlatTree[ReadNode].ToArgInfo.VD; in GetFromIntegerAndToDeclarationDiff()
832 ToAddressOf = FlatTree[ReadNode].ToArgInfo.NeedAddressOf; in GetFromIntegerAndToDeclarationDiff()
833 ToNullPtr = FlatTree[ReadNode].ToArgInfo.IsNullPtr; in GetFromIntegerAndToDeclarationDiff()
834 ToExpr = FlatTree[ReadNode].ToArgInfo.ArgExpr; in GetFromIntegerAndToDeclarationDiff()
839 return FlatTree[ReadNode].FromArgInfo.IsDefault; in FromDefault()
844 return FlatTree[ReadNode].ToArgInfo.IsDefault; in ToDefault()
849 return FlatTree[ReadNode].Same; in NodeIsSame()
854 return FlatTree[ReadNode].ChildNode != 0; in HasChildren()
859 ReadNode = FlatTree[ReadNode].ChildNode; in MoveToChild()
865 if (FlatTree[ReadNode].NextNode == 0) in AdvanceSibling()
868 ReadNode = FlatTree[ReadNode].NextNode; in AdvanceSibling()
874 return FlatTree[ReadNode].NextNode != 0; in HasNextSibling()
884 return FlatTree[ReadNode].Kind; in GetKind()