Lines Matching refs:FlatTree

593     SmallVector<DiffNode, 16> FlatTree;  member in __anon000f1fee0111::TemplateDiff::DiffTree
607 FlatTree.push_back(DiffNode()); in DiffTree()
614 assert(FlatTree[CurrentNode].Kind == Invalid && "Node is not empty."); in SetTemplateDiff()
615 FlatTree[CurrentNode].Kind = Template; in SetTemplateDiff()
616 FlatTree[CurrentNode].FromArgInfo.TD = FromTD; in SetTemplateDiff()
617 FlatTree[CurrentNode].ToArgInfo.TD = ToTD; in SetTemplateDiff()
618 FlatTree[CurrentNode].FromArgInfo.Qual = FromQual; in SetTemplateDiff()
619 FlatTree[CurrentNode].ToArgInfo.Qual = ToQual; in SetTemplateDiff()
625 assert(FlatTree[CurrentNode].Kind == Invalid && "Node is not empty."); in SetTypeDiff()
626 FlatTree[CurrentNode].Kind = Type; in SetTypeDiff()
627 FlatTree[CurrentNode].FromArgInfo.ArgType = FromType; in SetTypeDiff()
628 FlatTree[CurrentNode].ToArgInfo.ArgType = ToType; in SetTypeDiff()
634 assert(FlatTree[CurrentNode].Kind == Invalid && "Node is not empty."); in SetExpressionDiff()
635 FlatTree[CurrentNode].Kind = Expression; in SetExpressionDiff()
636 FlatTree[CurrentNode].FromArgInfo.ArgExpr = FromExpr; in SetExpressionDiff()
637 FlatTree[CurrentNode].ToArgInfo.ArgExpr = ToExpr; in SetExpressionDiff()
643 assert(FlatTree[CurrentNode].Kind == Invalid && "Node is not empty."); in SetTemplateTemplateDiff()
644 FlatTree[CurrentNode].Kind = TemplateTemplate; in SetTemplateTemplateDiff()
645 FlatTree[CurrentNode].FromArgInfo.TD = FromTD; in SetTemplateTemplateDiff()
646 FlatTree[CurrentNode].ToArgInfo.TD = ToTD; in SetTemplateTemplateDiff()
655 assert(FlatTree[CurrentNode].Kind == Invalid && "Node is not empty."); in SetIntegerDiff()
656 FlatTree[CurrentNode].Kind = Integer; in SetIntegerDiff()
657 FlatTree[CurrentNode].FromArgInfo.Val = FromInt; in SetIntegerDiff()
658 FlatTree[CurrentNode].ToArgInfo.Val = ToInt; in SetIntegerDiff()
659 FlatTree[CurrentNode].FromArgInfo.IsValidInt = IsValidFromInt; in SetIntegerDiff()
660 FlatTree[CurrentNode].ToArgInfo.IsValidInt = IsValidToInt; in SetIntegerDiff()
661 FlatTree[CurrentNode].FromArgInfo.ArgType = FromIntType; in SetIntegerDiff()
662 FlatTree[CurrentNode].ToArgInfo.ArgType = ToIntType; in SetIntegerDiff()
663 FlatTree[CurrentNode].FromArgInfo.ArgExpr = FromExpr; in SetIntegerDiff()
664 FlatTree[CurrentNode].ToArgInfo.ArgExpr = ToExpr; in SetIntegerDiff()
672 assert(FlatTree[CurrentNode].Kind == Invalid && "Node is not empty."); in SetDeclarationDiff()
673 FlatTree[CurrentNode].Kind = Declaration; in SetDeclarationDiff()
674 FlatTree[CurrentNode].FromArgInfo.VD = FromValueDecl; in SetDeclarationDiff()
675 FlatTree[CurrentNode].ToArgInfo.VD = ToValueDecl; in SetDeclarationDiff()
676 FlatTree[CurrentNode].FromArgInfo.NeedAddressOf = FromAddressOf; in SetDeclarationDiff()
677 FlatTree[CurrentNode].ToArgInfo.NeedAddressOf = ToAddressOf; in SetDeclarationDiff()
678 FlatTree[CurrentNode].FromArgInfo.IsNullPtr = FromNullPtr; in SetDeclarationDiff()
679 FlatTree[CurrentNode].ToArgInfo.IsNullPtr = ToNullPtr; in SetDeclarationDiff()
680 FlatTree[CurrentNode].FromArgInfo.ArgExpr = FromExpr; in SetDeclarationDiff()
681 FlatTree[CurrentNode].ToArgInfo.ArgExpr = ToExpr; in SetDeclarationDiff()
689 assert(FlatTree[CurrentNode].Kind == Invalid && "Node is not empty."); in SetFromDeclarationAndToIntegerDiff()
690 FlatTree[CurrentNode].Kind = FromDeclarationAndToInteger; in SetFromDeclarationAndToIntegerDiff()
691 FlatTree[CurrentNode].FromArgInfo.VD = FromValueDecl; in SetFromDeclarationAndToIntegerDiff()
692 FlatTree[CurrentNode].FromArgInfo.NeedAddressOf = FromAddressOf; in SetFromDeclarationAndToIntegerDiff()
693 FlatTree[CurrentNode].FromArgInfo.IsNullPtr = FromNullPtr; in SetFromDeclarationAndToIntegerDiff()
694 FlatTree[CurrentNode].FromArgInfo.ArgExpr = FromExpr; in SetFromDeclarationAndToIntegerDiff()
695 FlatTree[CurrentNode].ToArgInfo.Val = ToInt; in SetFromDeclarationAndToIntegerDiff()
696 FlatTree[CurrentNode].ToArgInfo.IsValidInt = IsValidToInt; in SetFromDeclarationAndToIntegerDiff()
697 FlatTree[CurrentNode].ToArgInfo.ArgType = ToIntType; in SetFromDeclarationAndToIntegerDiff()
698 FlatTree[CurrentNode].ToArgInfo.ArgExpr = ToExpr; in SetFromDeclarationAndToIntegerDiff()
706 assert(FlatTree[CurrentNode].Kind == Invalid && "Node is not empty."); in SetFromIntegerAndToDeclarationDiff()
707 FlatTree[CurrentNode].Kind = FromIntegerAndToDeclaration; in SetFromIntegerAndToDeclarationDiff()
708 FlatTree[CurrentNode].FromArgInfo.Val = FromInt; in SetFromIntegerAndToDeclarationDiff()
709 FlatTree[CurrentNode].FromArgInfo.IsValidInt = IsValidFromInt; in SetFromIntegerAndToDeclarationDiff()
710 FlatTree[CurrentNode].FromArgInfo.ArgType = FromIntType; in SetFromIntegerAndToDeclarationDiff()
711 FlatTree[CurrentNode].FromArgInfo.ArgExpr = FromExpr; in SetFromIntegerAndToDeclarationDiff()
712 FlatTree[CurrentNode].ToArgInfo.VD = ToValueDecl; in SetFromIntegerAndToDeclarationDiff()
713 FlatTree[CurrentNode].ToArgInfo.NeedAddressOf = ToAddressOf; in SetFromIntegerAndToDeclarationDiff()
714 FlatTree[CurrentNode].ToArgInfo.IsNullPtr = ToNullPtr; in SetFromIntegerAndToDeclarationDiff()
715 FlatTree[CurrentNode].ToArgInfo.ArgExpr = ToExpr; in SetFromIntegerAndToDeclarationDiff()
722 FlatTree[CurrentNode].FromArgInfo.IsDefault = FromDefault; in SetDefault()
723 FlatTree[CurrentNode].ToArgInfo.IsDefault = ToDefault; in SetDefault()
728 FlatTree[CurrentNode].Same = Same; in SetSame()
733 FlatTree[CurrentNode].Kind = Kind; in SetKind()
738 assert(FlatTree[CurrentNode].Kind != Invalid && in Up()
740 CurrentNode = FlatTree[CurrentNode].ParentNode; in Up()
746 assert(FlatTree[CurrentNode].Kind == Template && in AddNode()
748 FlatTree.push_back(DiffNode(CurrentNode)); in AddNode()
749 DiffNode &Node = FlatTree[CurrentNode]; in AddNode()
757 for (i = Node.ChildNode; FlatTree[i].NextNode != 0; in AddNode()
758 i = FlatTree[i].NextNode) { in AddNode()
760 FlatTree[i].NextNode = NextFreeNode; in AddNode()
776 ReadNode = FlatTree[ReadNode].ParentNode; in Parent()
781 assert(FlatTree[ReadNode].Kind == Template && "Unexpected kind."); in GetTemplateDiff()
782 FromTD = FlatTree[ReadNode].FromArgInfo.TD; in GetTemplateDiff()
783 ToTD = FlatTree[ReadNode].ToArgInfo.TD; in GetTemplateDiff()
784 FromQual = FlatTree[ReadNode].FromArgInfo.Qual; in GetTemplateDiff()
785 ToQual = FlatTree[ReadNode].ToArgInfo.Qual; in GetTemplateDiff()
789 assert(FlatTree[ReadNode].Kind == Type && "Unexpected kind"); in GetTypeDiff()
790 FromType = FlatTree[ReadNode].FromArgInfo.ArgType; in GetTypeDiff()
791 ToType = FlatTree[ReadNode].ToArgInfo.ArgType; in GetTypeDiff()
795 assert(FlatTree[ReadNode].Kind == Expression && "Unexpected kind"); in GetExpressionDiff()
796 FromExpr = FlatTree[ReadNode].FromArgInfo.ArgExpr; in GetExpressionDiff()
797 ToExpr = FlatTree[ReadNode].ToArgInfo.ArgExpr; in GetExpressionDiff()
801 assert(FlatTree[ReadNode].Kind == TemplateTemplate && "Unexpected kind."); in GetTemplateTemplateDiff()
802 FromTD = FlatTree[ReadNode].FromArgInfo.TD; in GetTemplateTemplateDiff()
803 ToTD = FlatTree[ReadNode].ToArgInfo.TD; in GetTemplateTemplateDiff()
810 assert(FlatTree[ReadNode].Kind == Integer && "Unexpected kind."); in GetIntegerDiff()
811 FromInt = FlatTree[ReadNode].FromArgInfo.Val; in GetIntegerDiff()
812 ToInt = FlatTree[ReadNode].ToArgInfo.Val; in GetIntegerDiff()
813 IsValidFromInt = FlatTree[ReadNode].FromArgInfo.IsValidInt; in GetIntegerDiff()
814 IsValidToInt = FlatTree[ReadNode].ToArgInfo.IsValidInt; in GetIntegerDiff()
815 FromIntType = FlatTree[ReadNode].FromArgInfo.ArgType; in GetIntegerDiff()
816 ToIntType = FlatTree[ReadNode].ToArgInfo.ArgType; in GetIntegerDiff()
817 FromExpr = FlatTree[ReadNode].FromArgInfo.ArgExpr; in GetIntegerDiff()
818 ToExpr = FlatTree[ReadNode].ToArgInfo.ArgExpr; in GetIntegerDiff()
825 assert(FlatTree[ReadNode].Kind == Declaration && "Unexpected kind."); in GetDeclarationDiff()
826 FromValueDecl = FlatTree[ReadNode].FromArgInfo.VD; in GetDeclarationDiff()
827 ToValueDecl = FlatTree[ReadNode].ToArgInfo.VD; in GetDeclarationDiff()
828 FromAddressOf = FlatTree[ReadNode].FromArgInfo.NeedAddressOf; in GetDeclarationDiff()
829 ToAddressOf = FlatTree[ReadNode].ToArgInfo.NeedAddressOf; in GetDeclarationDiff()
830 FromNullPtr = FlatTree[ReadNode].FromArgInfo.IsNullPtr; in GetDeclarationDiff()
831 ToNullPtr = FlatTree[ReadNode].ToArgInfo.IsNullPtr; in GetDeclarationDiff()
832 FromExpr = FlatTree[ReadNode].FromArgInfo.ArgExpr; in GetDeclarationDiff()
833 ToExpr = FlatTree[ReadNode].ToArgInfo.ArgExpr; in GetDeclarationDiff()
840 assert(FlatTree[ReadNode].Kind == FromDeclarationAndToInteger && in GetFromDeclarationAndToIntegerDiff()
842 FromValueDecl = FlatTree[ReadNode].FromArgInfo.VD; in GetFromDeclarationAndToIntegerDiff()
843 FromAddressOf = FlatTree[ReadNode].FromArgInfo.NeedAddressOf; in GetFromDeclarationAndToIntegerDiff()
844 FromNullPtr = FlatTree[ReadNode].FromArgInfo.IsNullPtr; in GetFromDeclarationAndToIntegerDiff()
845 FromExpr = FlatTree[ReadNode].FromArgInfo.ArgExpr; in GetFromDeclarationAndToIntegerDiff()
846 ToInt = FlatTree[ReadNode].ToArgInfo.Val; in GetFromDeclarationAndToIntegerDiff()
847 IsValidToInt = FlatTree[ReadNode].ToArgInfo.IsValidInt; in GetFromDeclarationAndToIntegerDiff()
848 ToIntType = FlatTree[ReadNode].ToArgInfo.ArgType; in GetFromDeclarationAndToIntegerDiff()
849 ToExpr = FlatTree[ReadNode].ToArgInfo.ArgExpr; in GetFromDeclarationAndToIntegerDiff()
856 assert(FlatTree[ReadNode].Kind == FromIntegerAndToDeclaration && in GetFromIntegerAndToDeclarationDiff()
858 FromInt = FlatTree[ReadNode].FromArgInfo.Val; in GetFromIntegerAndToDeclarationDiff()
859 IsValidFromInt = FlatTree[ReadNode].FromArgInfo.IsValidInt; in GetFromIntegerAndToDeclarationDiff()
860 FromIntType = FlatTree[ReadNode].FromArgInfo.ArgType; in GetFromIntegerAndToDeclarationDiff()
861 FromExpr = FlatTree[ReadNode].FromArgInfo.ArgExpr; in GetFromIntegerAndToDeclarationDiff()
862 ToValueDecl = FlatTree[ReadNode].ToArgInfo.VD; in GetFromIntegerAndToDeclarationDiff()
863 ToAddressOf = FlatTree[ReadNode].ToArgInfo.NeedAddressOf; in GetFromIntegerAndToDeclarationDiff()
864 ToNullPtr = FlatTree[ReadNode].ToArgInfo.IsNullPtr; in GetFromIntegerAndToDeclarationDiff()
865 ToExpr = FlatTree[ReadNode].ToArgInfo.ArgExpr; in GetFromIntegerAndToDeclarationDiff()
870 return FlatTree[ReadNode].FromArgInfo.IsDefault; in FromDefault()
875 return FlatTree[ReadNode].ToArgInfo.IsDefault; in ToDefault()
880 return FlatTree[ReadNode].Same; in NodeIsSame()
885 return FlatTree[ReadNode].ChildNode != 0; in HasChildren()
890 ReadNode = FlatTree[ReadNode].ChildNode; in MoveToChild()
896 if (FlatTree[ReadNode].NextNode == 0) in AdvanceSibling()
899 ReadNode = FlatTree[ReadNode].NextNode; in AdvanceSibling()
905 return FlatTree[ReadNode].NextNode != 0; in HasNextSibling()
915 return FlatTree[ReadNode].Kind; in GetKind()