reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

tools/clang/lib/AST/ASTDiagnostic.cpp
  594       FlatTree.push_back(DiffNode());
  601       assert(FlatTree[CurrentNode].Kind == Invalid && "Node is not empty.");
  602       FlatTree[CurrentNode].Kind = Template;
  603       FlatTree[CurrentNode].FromArgInfo.TD = FromTD;
  604       FlatTree[CurrentNode].ToArgInfo.TD = ToTD;
  605       FlatTree[CurrentNode].FromArgInfo.Qual = FromQual;
  606       FlatTree[CurrentNode].ToArgInfo.Qual = ToQual;
  612       assert(FlatTree[CurrentNode].Kind == Invalid && "Node is not empty.");
  613       FlatTree[CurrentNode].Kind = Type;
  614       FlatTree[CurrentNode].FromArgInfo.ArgType = FromType;
  615       FlatTree[CurrentNode].ToArgInfo.ArgType = ToType;
  621       assert(FlatTree[CurrentNode].Kind == Invalid && "Node is not empty.");
  622       FlatTree[CurrentNode].Kind = Expression;
  623       FlatTree[CurrentNode].FromArgInfo.ArgExpr = FromExpr;
  624       FlatTree[CurrentNode].ToArgInfo.ArgExpr = ToExpr;
  630       assert(FlatTree[CurrentNode].Kind == Invalid && "Node is not empty.");
  631       FlatTree[CurrentNode].Kind = TemplateTemplate;
  632       FlatTree[CurrentNode].FromArgInfo.TD = FromTD;
  633       FlatTree[CurrentNode].ToArgInfo.TD = ToTD;
  642       assert(FlatTree[CurrentNode].Kind == Invalid && "Node is not empty.");
  643       FlatTree[CurrentNode].Kind = Integer;
  644       FlatTree[CurrentNode].FromArgInfo.Val = FromInt;
  645       FlatTree[CurrentNode].ToArgInfo.Val = ToInt;
  646       FlatTree[CurrentNode].FromArgInfo.IsValidInt = IsValidFromInt;
  647       FlatTree[CurrentNode].ToArgInfo.IsValidInt = IsValidToInt;
  648       FlatTree[CurrentNode].FromArgInfo.ArgType = FromIntType;
  649       FlatTree[CurrentNode].ToArgInfo.ArgType = ToIntType;
  650       FlatTree[CurrentNode].FromArgInfo.ArgExpr = FromExpr;
  651       FlatTree[CurrentNode].ToArgInfo.ArgExpr = ToExpr;
  659       assert(FlatTree[CurrentNode].Kind == Invalid && "Node is not empty.");
  660       FlatTree[CurrentNode].Kind = Declaration;
  661       FlatTree[CurrentNode].FromArgInfo.VD = FromValueDecl;
  662       FlatTree[CurrentNode].ToArgInfo.VD = ToValueDecl;
  663       FlatTree[CurrentNode].FromArgInfo.NeedAddressOf = FromAddressOf;
  664       FlatTree[CurrentNode].ToArgInfo.NeedAddressOf = ToAddressOf;
  665       FlatTree[CurrentNode].FromArgInfo.IsNullPtr = FromNullPtr;
  666       FlatTree[CurrentNode].ToArgInfo.IsNullPtr = ToNullPtr;
  667       FlatTree[CurrentNode].FromArgInfo.ArgExpr = FromExpr;
  668       FlatTree[CurrentNode].ToArgInfo.ArgExpr = ToExpr;
  676       assert(FlatTree[CurrentNode].Kind == Invalid && "Node is not empty.");
  677       FlatTree[CurrentNode].Kind = FromDeclarationAndToInteger;
  678       FlatTree[CurrentNode].FromArgInfo.VD = FromValueDecl;
  679       FlatTree[CurrentNode].FromArgInfo.NeedAddressOf = FromAddressOf;
  680       FlatTree[CurrentNode].FromArgInfo.IsNullPtr = FromNullPtr;
  681       FlatTree[CurrentNode].FromArgInfo.ArgExpr = FromExpr;
  682       FlatTree[CurrentNode].ToArgInfo.Val = ToInt;
  683       FlatTree[CurrentNode].ToArgInfo.IsValidInt = IsValidToInt;
  684       FlatTree[CurrentNode].ToArgInfo.ArgType = ToIntType;
  685       FlatTree[CurrentNode].ToArgInfo.ArgExpr = ToExpr;
  693       assert(FlatTree[CurrentNode].Kind == Invalid && "Node is not empty.");
  694       FlatTree[CurrentNode].Kind = FromIntegerAndToDeclaration;
  695       FlatTree[CurrentNode].FromArgInfo.Val = FromInt;
  696       FlatTree[CurrentNode].FromArgInfo.IsValidInt = IsValidFromInt;
  697       FlatTree[CurrentNode].FromArgInfo.ArgType = FromIntType;
  698       FlatTree[CurrentNode].FromArgInfo.ArgExpr = FromExpr;
  699       FlatTree[CurrentNode].ToArgInfo.VD = ToValueDecl;
  700       FlatTree[CurrentNode].ToArgInfo.NeedAddressOf = ToAddressOf;
  701       FlatTree[CurrentNode].ToArgInfo.IsNullPtr = ToNullPtr;
  702       FlatTree[CurrentNode].ToArgInfo.ArgExpr = ToExpr;
  709       FlatTree[CurrentNode].FromArgInfo.IsDefault = FromDefault;
  710       FlatTree[CurrentNode].ToArgInfo.IsDefault = ToDefault;
  715       FlatTree[CurrentNode].Same = Same;
  720       FlatTree[CurrentNode].Kind = Kind;
  725       assert(FlatTree[CurrentNode].Kind != Invalid &&
  727       CurrentNode = FlatTree[CurrentNode].ParentNode;
  733       assert(FlatTree[CurrentNode].Kind == Template &&
  735       FlatTree.push_back(DiffNode(CurrentNode));
  736       DiffNode &Node = FlatTree[CurrentNode];
  744         for (i = Node.ChildNode; FlatTree[i].NextNode != 0;
  745              i = FlatTree[i].NextNode) {
  747         FlatTree[i].NextNode = NextFreeNode;
  763       ReadNode = FlatTree[ReadNode].ParentNode;
  768       assert(FlatTree[ReadNode].Kind == Template && "Unexpected kind.");
  769       FromTD = FlatTree[ReadNode].FromArgInfo.TD;
  770       ToTD = FlatTree[ReadNode].ToArgInfo.TD;
  771       FromQual = FlatTree[ReadNode].FromArgInfo.Qual;
  772       ToQual = FlatTree[ReadNode].ToArgInfo.Qual;
  776       assert(FlatTree[ReadNode].Kind == Type && "Unexpected kind");
  777       FromType = FlatTree[ReadNode].FromArgInfo.ArgType;
  778       ToType = FlatTree[ReadNode].ToArgInfo.ArgType;
  782       assert(FlatTree[ReadNode].Kind == Expression && "Unexpected kind");
  783       FromExpr = FlatTree[ReadNode].FromArgInfo.ArgExpr;
  784       ToExpr = FlatTree[ReadNode].ToArgInfo.ArgExpr;
  788       assert(FlatTree[ReadNode].Kind == TemplateTemplate && "Unexpected kind.");
  789       FromTD = FlatTree[ReadNode].FromArgInfo.TD;
  790       ToTD = FlatTree[ReadNode].ToArgInfo.TD;
  797       assert(FlatTree[ReadNode].Kind == Integer && "Unexpected kind.");
  798       FromInt = FlatTree[ReadNode].FromArgInfo.Val;
  799       ToInt = FlatTree[ReadNode].ToArgInfo.Val;
  800       IsValidFromInt = FlatTree[ReadNode].FromArgInfo.IsValidInt;
  801       IsValidToInt = FlatTree[ReadNode].ToArgInfo.IsValidInt;
  802       FromIntType = FlatTree[ReadNode].FromArgInfo.ArgType;
  803       ToIntType = FlatTree[ReadNode].ToArgInfo.ArgType;
  804       FromExpr = FlatTree[ReadNode].FromArgInfo.ArgExpr;
  805       ToExpr = FlatTree[ReadNode].ToArgInfo.ArgExpr;
  812       assert(FlatTree[ReadNode].Kind == Declaration && "Unexpected kind.");
  813       FromValueDecl = FlatTree[ReadNode].FromArgInfo.VD;
  814       ToValueDecl = FlatTree[ReadNode].ToArgInfo.VD;
  815       FromAddressOf = FlatTree[ReadNode].FromArgInfo.NeedAddressOf;
  816       ToAddressOf = FlatTree[ReadNode].ToArgInfo.NeedAddressOf;
  817       FromNullPtr = FlatTree[ReadNode].FromArgInfo.IsNullPtr;
  818       ToNullPtr = FlatTree[ReadNode].ToArgInfo.IsNullPtr;
  819       FromExpr = FlatTree[ReadNode].FromArgInfo.ArgExpr;
  820       ToExpr = FlatTree[ReadNode].ToArgInfo.ArgExpr;
  827       assert(FlatTree[ReadNode].Kind == FromDeclarationAndToInteger &&
  829       FromValueDecl = FlatTree[ReadNode].FromArgInfo.VD;
  830       FromAddressOf = FlatTree[ReadNode].FromArgInfo.NeedAddressOf;
  831       FromNullPtr = FlatTree[ReadNode].FromArgInfo.IsNullPtr;
  832       FromExpr = FlatTree[ReadNode].FromArgInfo.ArgExpr;
  833       ToInt = FlatTree[ReadNode].ToArgInfo.Val;
  834       IsValidToInt = FlatTree[ReadNode].ToArgInfo.IsValidInt;
  835       ToIntType = FlatTree[ReadNode].ToArgInfo.ArgType;
  836       ToExpr = FlatTree[ReadNode].ToArgInfo.ArgExpr;
  843       assert(FlatTree[ReadNode].Kind == FromIntegerAndToDeclaration &&
  845       FromInt = FlatTree[ReadNode].FromArgInfo.Val;
  846       IsValidFromInt = FlatTree[ReadNode].FromArgInfo.IsValidInt;
  847       FromIntType = FlatTree[ReadNode].FromArgInfo.ArgType;
  848       FromExpr = FlatTree[ReadNode].FromArgInfo.ArgExpr;
  849       ToValueDecl = FlatTree[ReadNode].ToArgInfo.VD;
  850       ToAddressOf = FlatTree[ReadNode].ToArgInfo.NeedAddressOf;
  851       ToNullPtr = FlatTree[ReadNode].ToArgInfo.IsNullPtr;
  852       ToExpr = FlatTree[ReadNode].ToArgInfo.ArgExpr;
  857       return FlatTree[ReadNode].FromArgInfo.IsDefault;
  862       return FlatTree[ReadNode].ToArgInfo.IsDefault;
  867       return FlatTree[ReadNode].Same;
  872       return FlatTree[ReadNode].ChildNode != 0;
  877       ReadNode = FlatTree[ReadNode].ChildNode;
  883       if (FlatTree[ReadNode].NextNode == 0)
  886       ReadNode = FlatTree[ReadNode].NextNode;
  892       return FlatTree[ReadNode].NextNode != 0;
  902       return FlatTree[ReadNode].Kind;