clang API Documentation

APValue.cpp
Go to the documentation of this file.
00001 //===--- APValue.cpp - Union class for APFloat/APSInt/Complex -------------===//
00002 //
00003 //                     The LLVM Compiler Infrastructure
00004 //
00005 // This file is distributed under the University of Illinois Open Source
00006 // License. See LICENSE.TXT for details.
00007 //
00008 //===----------------------------------------------------------------------===//
00009 //
00010 //  This file implements the APValue class.
00011 //
00012 //===----------------------------------------------------------------------===//
00013 
00014 #include "clang/AST/APValue.h"
00015 #include "clang/AST/ASTContext.h"
00016 #include "clang/AST/CharUnits.h"
00017 #include "clang/AST/DeclCXX.h"
00018 #include "clang/AST/Expr.h"
00019 #include "clang/AST/Type.h"
00020 #include "clang/Basic/Diagnostic.h"
00021 #include "llvm/ADT/SmallString.h"
00022 #include "llvm/Support/raw_ostream.h"
00023 #include "llvm/Support/ErrorHandling.h"
00024 using namespace clang;
00025 
00026 namespace {
00027   struct LVBase {
00028     llvm::PointerIntPair<APValue::LValueBase, 1, bool> BaseAndIsOnePastTheEnd;
00029     CharUnits Offset;
00030     unsigned PathLength;
00031     unsigned CallIndex;
00032   };
00033 }
00034 
00035 struct APValue::LV : LVBase {
00036   static const unsigned InlinePathSpace =
00037       (MaxSize - sizeof(LVBase)) / sizeof(LValuePathEntry);
00038 
00039   /// Path - The sequence of base classes, fields and array indices to follow to
00040   /// walk from Base to the subobject. When performing GCC-style folding, there
00041   /// may not be such a path.
00042   union {
00043     LValuePathEntry Path[InlinePathSpace];
00044     LValuePathEntry *PathPtr;
00045   };
00046 
00047   LV() { PathLength = (unsigned)-1; }
00048   ~LV() { resizePath(0); }
00049 
00050   void resizePath(unsigned Length) {
00051     if (Length == PathLength)
00052       return;
00053     if (hasPathPtr())
00054       delete [] PathPtr;
00055     PathLength = Length;
00056     if (hasPathPtr())
00057       PathPtr = new LValuePathEntry[Length];
00058   }
00059 
00060   bool hasPath() const { return PathLength != (unsigned)-1; }
00061   bool hasPathPtr() const { return hasPath() && PathLength > InlinePathSpace; }
00062 
00063   LValuePathEntry *getPath() { return hasPathPtr() ? PathPtr : Path; }
00064   const LValuePathEntry *getPath() const {
00065     return hasPathPtr() ? PathPtr : Path;
00066   }
00067 };
00068 
00069 namespace {
00070   struct MemberPointerBase {
00071     llvm::PointerIntPair<const ValueDecl*, 1, bool> MemberAndIsDerivedMember;
00072     unsigned PathLength;
00073   };
00074 }
00075 
00076 struct APValue::MemberPointerData : MemberPointerBase {
00077   static const unsigned InlinePathSpace =
00078       (MaxSize - sizeof(MemberPointerBase)) / sizeof(const CXXRecordDecl*);
00079   typedef const CXXRecordDecl *PathElem;
00080   union {
00081     PathElem Path[InlinePathSpace];
00082     PathElem *PathPtr;
00083   };
00084 
00085   MemberPointerData() { PathLength = 0; }
00086   ~MemberPointerData() { resizePath(0); }
00087 
00088   void resizePath(unsigned Length) {
00089     if (Length == PathLength)
00090       return;
00091     if (hasPathPtr())
00092       delete [] PathPtr;
00093     PathLength = Length;
00094     if (hasPathPtr())
00095       PathPtr = new PathElem[Length];
00096   }
00097 
00098   bool hasPathPtr() const { return PathLength > InlinePathSpace; }
00099 
00100   PathElem *getPath() { return hasPathPtr() ? PathPtr : Path; }
00101   const PathElem *getPath() const {
00102     return hasPathPtr() ? PathPtr : Path;
00103   }
00104 };
00105 
00106 // FIXME: Reduce the malloc traffic here.
00107 
00108 APValue::Arr::Arr(unsigned NumElts, unsigned Size) :
00109   Elts(new APValue[NumElts + (NumElts != Size ? 1 : 0)]),
00110   NumElts(NumElts), ArrSize(Size) {}
00111 APValue::Arr::~Arr() { delete [] Elts; }
00112 
00113 APValue::StructData::StructData(unsigned NumBases, unsigned NumFields) :
00114   Elts(new APValue[NumBases+NumFields]),
00115   NumBases(NumBases), NumFields(NumFields) {}
00116 APValue::StructData::~StructData() {
00117   delete [] Elts;
00118 }
00119 
00120 APValue::UnionData::UnionData() : Field(0), Value(new APValue) {}
00121 APValue::UnionData::~UnionData () {
00122   delete Value;
00123 }
00124 
00125 APValue::APValue(const APValue &RHS) : Kind(Uninitialized) {
00126   switch (RHS.getKind()) {
00127   case Uninitialized:
00128     break;
00129   case Int:
00130     MakeInt();
00131     setInt(RHS.getInt());
00132     break;
00133   case Float:
00134     MakeFloat();
00135     setFloat(RHS.getFloat());
00136     break;
00137   case Vector:
00138     MakeVector();
00139     setVector(((const Vec *)(const char *)RHS.Data)->Elts,
00140               RHS.getVectorLength());
00141     break;
00142   case ComplexInt:
00143     MakeComplexInt();
00144     setComplexInt(RHS.getComplexIntReal(), RHS.getComplexIntImag());
00145     break;
00146   case ComplexFloat:
00147     MakeComplexFloat();
00148     setComplexFloat(RHS.getComplexFloatReal(), RHS.getComplexFloatImag());
00149     break;
00150   case LValue:
00151     MakeLValue();
00152     if (RHS.hasLValuePath())
00153       setLValue(RHS.getLValueBase(), RHS.getLValueOffset(), RHS.getLValuePath(),
00154                 RHS.isLValueOnePastTheEnd(), RHS.getLValueCallIndex());
00155     else
00156       setLValue(RHS.getLValueBase(), RHS.getLValueOffset(), NoLValuePath(),
00157                 RHS.getLValueCallIndex());
00158     break;
00159   case Array:
00160     MakeArray(RHS.getArrayInitializedElts(), RHS.getArraySize());
00161     for (unsigned I = 0, N = RHS.getArrayInitializedElts(); I != N; ++I)
00162       getArrayInitializedElt(I) = RHS.getArrayInitializedElt(I);
00163     if (RHS.hasArrayFiller())
00164       getArrayFiller() = RHS.getArrayFiller();
00165     break;
00166   case Struct:
00167     MakeStruct(RHS.getStructNumBases(), RHS.getStructNumFields());
00168     for (unsigned I = 0, N = RHS.getStructNumBases(); I != N; ++I)
00169       getStructBase(I) = RHS.getStructBase(I);
00170     for (unsigned I = 0, N = RHS.getStructNumFields(); I != N; ++I)
00171       getStructField(I) = RHS.getStructField(I);
00172     break;
00173   case Union:
00174     MakeUnion();
00175     setUnion(RHS.getUnionField(), RHS.getUnionValue());
00176     break;
00177   case MemberPointer:
00178     MakeMemberPointer(RHS.getMemberPointerDecl(),
00179                       RHS.isMemberPointerToDerivedMember(),
00180                       RHS.getMemberPointerPath());
00181     break;
00182   case AddrLabelDiff:
00183     MakeAddrLabelDiff();
00184     setAddrLabelDiff(RHS.getAddrLabelDiffLHS(), RHS.getAddrLabelDiffRHS());
00185     break;
00186   }
00187 }
00188 
00189 void APValue::DestroyDataAndMakeUninit() {
00190   if (Kind == Int)
00191     ((APSInt*)(char*)Data)->~APSInt();
00192   else if (Kind == Float)
00193     ((APFloat*)(char*)Data)->~APFloat();
00194   else if (Kind == Vector)
00195     ((Vec*)(char*)Data)->~Vec();
00196   else if (Kind == ComplexInt)
00197     ((ComplexAPSInt*)(char*)Data)->~ComplexAPSInt();
00198   else if (Kind == ComplexFloat)
00199     ((ComplexAPFloat*)(char*)Data)->~ComplexAPFloat();
00200   else if (Kind == LValue)
00201     ((LV*)(char*)Data)->~LV();
00202   else if (Kind == Array)
00203     ((Arr*)(char*)Data)->~Arr();
00204   else if (Kind == Struct)
00205     ((StructData*)(char*)Data)->~StructData();
00206   else if (Kind == Union)
00207     ((UnionData*)(char*)Data)->~UnionData();
00208   else if (Kind == MemberPointer)
00209     ((MemberPointerData*)(char*)Data)->~MemberPointerData();
00210   else if (Kind == AddrLabelDiff)
00211     ((AddrLabelDiffData*)(char*)Data)->~AddrLabelDiffData();
00212   Kind = Uninitialized;
00213 }
00214 
00215 void APValue::swap(APValue &RHS) {
00216   std::swap(Kind, RHS.Kind);
00217   char TmpData[MaxSize];
00218   memcpy(TmpData, Data, MaxSize);
00219   memcpy(Data, RHS.Data, MaxSize);
00220   memcpy(RHS.Data, TmpData, MaxSize);
00221 }
00222 
00223 void APValue::dump() const {
00224   dump(llvm::errs());
00225   llvm::errs() << '\n';
00226 }
00227 
00228 static double GetApproxValue(const llvm::APFloat &F) {
00229   llvm::APFloat V = F;
00230   bool ignored;
00231   V.convert(llvm::APFloat::IEEEdouble, llvm::APFloat::rmNearestTiesToEven,
00232             &ignored);
00233   return V.convertToDouble();
00234 }
00235 
00236 void APValue::dump(raw_ostream &OS) const {
00237   switch (getKind()) {
00238   case Uninitialized:
00239     OS << "Uninitialized";
00240     return;
00241   case Int:
00242     OS << "Int: " << getInt();
00243     return;
00244   case Float:
00245     OS << "Float: " << GetApproxValue(getFloat());
00246     return;
00247   case Vector:
00248     OS << "Vector: ";
00249     getVectorElt(0).dump(OS);
00250     for (unsigned i = 1; i != getVectorLength(); ++i) {
00251       OS << ", ";
00252       getVectorElt(i).dump(OS);
00253     }
00254     return;
00255   case ComplexInt:
00256     OS << "ComplexInt: " << getComplexIntReal() << ", " << getComplexIntImag();
00257     return;
00258   case ComplexFloat:
00259     OS << "ComplexFloat: " << GetApproxValue(getComplexFloatReal())
00260        << ", " << GetApproxValue(getComplexFloatImag());
00261     return;
00262   case LValue:
00263     OS << "LValue: <todo>";
00264     return;
00265   case Array:
00266     OS << "Array: ";
00267     for (unsigned I = 0, N = getArrayInitializedElts(); I != N; ++I) {
00268       getArrayInitializedElt(I).dump(OS);
00269       if (I != getArraySize() - 1) OS << ", ";
00270     }
00271     if (hasArrayFiller()) {
00272       OS << getArraySize() - getArrayInitializedElts() << " x ";
00273       getArrayFiller().dump(OS);
00274     }
00275     return;
00276   case Struct:
00277     OS << "Struct ";
00278     if (unsigned N = getStructNumBases()) {
00279       OS << " bases: ";
00280       getStructBase(0).dump(OS);
00281       for (unsigned I = 1; I != N; ++I) {
00282         OS << ", ";
00283         getStructBase(I).dump(OS);
00284       }
00285     }
00286     if (unsigned N = getStructNumFields()) {
00287       OS << " fields: ";
00288       getStructField(0).dump(OS);
00289       for (unsigned I = 1; I != N; ++I) {
00290         OS << ", ";
00291         getStructField(I).dump(OS);
00292       }
00293     }
00294     return;
00295   case Union:
00296     OS << "Union: ";
00297     getUnionValue().dump(OS);
00298     return;
00299   case MemberPointer:
00300     OS << "MemberPointer: <todo>";
00301     return;
00302   case AddrLabelDiff:
00303     OS << "AddrLabelDiff: <todo>";
00304     return;
00305   }
00306   llvm_unreachable("Unknown APValue kind!");
00307 }
00308 
00309 void APValue::printPretty(raw_ostream &Out, ASTContext &Ctx, QualType Ty) const{
00310   switch (getKind()) {
00311   case APValue::Uninitialized:
00312     Out << "<uninitialized>";
00313     return;
00314   case APValue::Int:
00315     if (Ty->isBooleanType())
00316       Out << (getInt().getBoolValue() ? "true" : "false");
00317     else
00318       Out << getInt();
00319     return;
00320   case APValue::Float:
00321     Out << GetApproxValue(getFloat());
00322     return;
00323   case APValue::Vector: {
00324     Out << '{';
00325     QualType ElemTy = Ty->getAs<VectorType>()->getElementType();
00326     getVectorElt(0).printPretty(Out, Ctx, ElemTy);
00327     for (unsigned i = 1; i != getVectorLength(); ++i) {
00328       Out << ", ";
00329       getVectorElt(i).printPretty(Out, Ctx, ElemTy);
00330     }
00331     Out << '}';
00332     return;
00333   }
00334   case APValue::ComplexInt:
00335     Out << getComplexIntReal() << "+" << getComplexIntImag() << "i";
00336     return;
00337   case APValue::ComplexFloat:
00338     Out << GetApproxValue(getComplexFloatReal()) << "+"
00339         << GetApproxValue(getComplexFloatImag()) << "i";
00340     return;
00341   case APValue::LValue: {
00342     LValueBase Base = getLValueBase();
00343     if (!Base) {
00344       Out << "0";
00345       return;
00346     }
00347 
00348     bool IsReference = Ty->isReferenceType();
00349     QualType InnerTy
00350       = IsReference ? Ty.getNonReferenceType() : Ty->getPointeeType();
00351 
00352     if (!hasLValuePath()) {
00353       // No lvalue path: just print the offset.
00354       CharUnits O = getLValueOffset();
00355       CharUnits S = Ctx.getTypeSizeInChars(InnerTy);
00356       if (!O.isZero()) {
00357         if (IsReference)
00358           Out << "*(";
00359         if (O % S) {
00360           Out << "(char*)";
00361           S = CharUnits::One();
00362         }
00363         Out << '&';
00364       } else if (!IsReference)
00365         Out << '&';
00366 
00367       if (const ValueDecl *VD = Base.dyn_cast<const ValueDecl*>())
00368         Out << *VD;
00369       else
00370         Base.get<const Expr*>()->printPretty(Out, Ctx, 0,
00371                                              Ctx.getPrintingPolicy());
00372       if (!O.isZero()) {
00373         Out << " + " << (O / S);
00374         if (IsReference)
00375           Out << ')';
00376       }
00377       return;
00378     }
00379 
00380     // We have an lvalue path. Print it out nicely.
00381     if (!IsReference)
00382       Out << '&';
00383     else if (isLValueOnePastTheEnd())
00384       Out << "*(&";
00385 
00386     QualType ElemTy;
00387     if (const ValueDecl *VD = Base.dyn_cast<const ValueDecl*>()) {
00388       Out << *VD;
00389       ElemTy = VD->getType();
00390     } else {
00391       const Expr *E = Base.get<const Expr*>();
00392       E->printPretty(Out, Ctx, 0,Ctx.getPrintingPolicy());
00393       ElemTy = E->getType();
00394     }
00395 
00396     ArrayRef<LValuePathEntry> Path = getLValuePath();
00397     const CXXRecordDecl *CastToBase = 0;
00398     for (unsigned I = 0, N = Path.size(); I != N; ++I) {
00399       if (ElemTy->getAs<RecordType>()) {
00400         // The lvalue refers to a class type, so the next path entry is a base
00401         // or member.
00402         const Decl *BaseOrMember =
00403         BaseOrMemberType::getFromOpaqueValue(Path[I].BaseOrMember).getPointer();
00404         if (const CXXRecordDecl *RD = dyn_cast<CXXRecordDecl>(BaseOrMember)) {
00405           CastToBase = RD;
00406           ElemTy = Ctx.getRecordType(RD);
00407         } else {
00408           const ValueDecl *VD = cast<ValueDecl>(BaseOrMember);
00409           Out << ".";
00410           if (CastToBase)
00411             Out << *CastToBase << "::";
00412           Out << *VD;
00413           ElemTy = VD->getType();
00414         }
00415       } else {
00416         // The lvalue must refer to an array.
00417         Out << '[' << Path[I].ArrayIndex << ']';
00418         ElemTy = Ctx.getAsArrayType(ElemTy)->getElementType();
00419       }
00420     }
00421 
00422     // Handle formatting of one-past-the-end lvalues.
00423     if (isLValueOnePastTheEnd()) {
00424       // FIXME: If CastToBase is non-0, we should prefix the output with
00425       // "(CastToBase*)".
00426       Out << " + 1";
00427       if (IsReference)
00428         Out << ')';
00429     }
00430     return;
00431   }
00432   case APValue::Array: {
00433     const ArrayType *AT = Ctx.getAsArrayType(Ty);
00434     QualType ElemTy = AT->getElementType();
00435     Out << '{';
00436     if (unsigned N = getArrayInitializedElts()) {
00437       getArrayInitializedElt(0).printPretty(Out, Ctx, ElemTy);
00438       for (unsigned I = 1; I != N; ++I) {
00439         Out << ", ";
00440         if (I == 10) {
00441           // Avoid printing out the entire contents of large arrays.
00442           Out << "...";
00443           break;
00444         }
00445         getArrayInitializedElt(I).printPretty(Out, Ctx, ElemTy);
00446       }
00447     }
00448     Out << '}';
00449     return;
00450   }
00451   case APValue::Struct: {
00452     Out << '{';
00453     const RecordDecl *RD = Ty->getAs<RecordType>()->getDecl();
00454     bool First = true;
00455     if (unsigned N = getStructNumBases()) {
00456       const CXXRecordDecl *CD = cast<CXXRecordDecl>(RD);
00457       CXXRecordDecl::base_class_const_iterator BI = CD->bases_begin();
00458       for (unsigned I = 0; I != N; ++I, ++BI) {
00459         assert(BI != CD->bases_end());
00460         if (!First)
00461           Out << ", ";
00462         getStructBase(I).printPretty(Out, Ctx, BI->getType());
00463         First = false;
00464       }
00465     }
00466     for (RecordDecl::field_iterator FI = RD->field_begin();
00467          FI != RD->field_end(); ++FI) {
00468       if (!First)
00469         Out << ", ";
00470       if (FI->isUnnamedBitfield()) continue;
00471       getStructField(FI->getFieldIndex()).
00472         printPretty(Out, Ctx, FI->getType());
00473       First = false;
00474     }
00475     Out << '}';
00476     return;
00477   }
00478   case APValue::Union:
00479     Out << '{';
00480     if (const FieldDecl *FD = getUnionField()) {
00481       Out << "." << *FD << " = ";
00482       getUnionValue().printPretty(Out, Ctx, FD->getType());
00483     }
00484     Out << '}';
00485     return;
00486   case APValue::MemberPointer:
00487     // FIXME: This is not enough to unambiguously identify the member in a
00488     // multiple-inheritance scenario.
00489     if (const ValueDecl *VD = getMemberPointerDecl()) {
00490       Out << '&' << *cast<CXXRecordDecl>(VD->getDeclContext()) << "::" << *VD;
00491       return;
00492     }
00493     Out << "0";
00494     return;
00495   case APValue::AddrLabelDiff:
00496     Out << "&&" << getAddrLabelDiffLHS()->getLabel()->getName();
00497     Out << " - ";
00498     Out << "&&" << getAddrLabelDiffRHS()->getLabel()->getName();
00499     return;
00500   }
00501   llvm_unreachable("Unknown APValue kind!");
00502 }
00503 
00504 std::string APValue::getAsString(ASTContext &Ctx, QualType Ty) const {
00505   std::string Result;
00506   llvm::raw_string_ostream Out(Result);
00507   printPretty(Out, Ctx, Ty);
00508   Out.flush();
00509   return Result;
00510 }
00511 
00512 const APValue::LValueBase APValue::getLValueBase() const {
00513   assert(isLValue() && "Invalid accessor");
00514   return ((const LV*)(const void*)Data)->BaseAndIsOnePastTheEnd.getPointer();
00515 }
00516 
00517 bool APValue::isLValueOnePastTheEnd() const {
00518   assert(isLValue() && "Invalid accessor");
00519   return ((const LV*)(const void*)Data)->BaseAndIsOnePastTheEnd.getInt();
00520 }
00521 
00522 CharUnits &APValue::getLValueOffset() {
00523   assert(isLValue() && "Invalid accessor");
00524   return ((LV*)(void*)Data)->Offset;
00525 }
00526 
00527 bool APValue::hasLValuePath() const {
00528   assert(isLValue() && "Invalid accessor");
00529   return ((const LV*)(const char*)Data)->hasPath();
00530 }
00531 
00532 ArrayRef<APValue::LValuePathEntry> APValue::getLValuePath() const {
00533   assert(isLValue() && hasLValuePath() && "Invalid accessor");
00534   const LV &LVal = *((const LV*)(const char*)Data);
00535   return ArrayRef<LValuePathEntry>(LVal.getPath(), LVal.PathLength);
00536 }
00537 
00538 unsigned APValue::getLValueCallIndex() const {
00539   assert(isLValue() && "Invalid accessor");
00540   return ((const LV*)(const char*)Data)->CallIndex;
00541 }
00542 
00543 void APValue::setLValue(LValueBase B, const CharUnits &O, NoLValuePath,
00544                         unsigned CallIndex) {
00545   assert(isLValue() && "Invalid accessor");
00546   LV &LVal = *((LV*)(char*)Data);
00547   LVal.BaseAndIsOnePastTheEnd.setPointer(B);
00548   LVal.BaseAndIsOnePastTheEnd.setInt(false);
00549   LVal.Offset = O;
00550   LVal.CallIndex = CallIndex;
00551   LVal.resizePath((unsigned)-1);
00552 }
00553 
00554 void APValue::setLValue(LValueBase B, const CharUnits &O,
00555                         ArrayRef<LValuePathEntry> Path, bool IsOnePastTheEnd,
00556                         unsigned CallIndex) {
00557   assert(isLValue() && "Invalid accessor");
00558   LV &LVal = *((LV*)(char*)Data);
00559   LVal.BaseAndIsOnePastTheEnd.setPointer(B);
00560   LVal.BaseAndIsOnePastTheEnd.setInt(IsOnePastTheEnd);
00561   LVal.Offset = O;
00562   LVal.CallIndex = CallIndex;
00563   LVal.resizePath(Path.size());
00564   memcpy(LVal.getPath(), Path.data(), Path.size() * sizeof(LValuePathEntry));
00565 }
00566 
00567 const ValueDecl *APValue::getMemberPointerDecl() const {
00568   assert(isMemberPointer() && "Invalid accessor");
00569   const MemberPointerData &MPD = *((const MemberPointerData*)(const char*)Data);
00570   return MPD.MemberAndIsDerivedMember.getPointer();
00571 }
00572 
00573 bool APValue::isMemberPointerToDerivedMember() const {
00574   assert(isMemberPointer() && "Invalid accessor");
00575   const MemberPointerData &MPD = *((const MemberPointerData*)(const char*)Data);
00576   return MPD.MemberAndIsDerivedMember.getInt();
00577 }
00578 
00579 ArrayRef<const CXXRecordDecl*> APValue::getMemberPointerPath() const {
00580   assert(isMemberPointer() && "Invalid accessor");
00581   const MemberPointerData &MPD = *((const MemberPointerData*)(const char*)Data);
00582   return ArrayRef<const CXXRecordDecl*>(MPD.getPath(), MPD.PathLength);
00583 }
00584 
00585 void APValue::MakeLValue() {
00586   assert(isUninit() && "Bad state change");
00587   assert(sizeof(LV) <= MaxSize && "LV too big");
00588   new ((void*)(char*)Data) LV();
00589   Kind = LValue;
00590 }
00591 
00592 void APValue::MakeArray(unsigned InitElts, unsigned Size) {
00593   assert(isUninit() && "Bad state change");
00594   new ((void*)(char*)Data) Arr(InitElts, Size);
00595   Kind = Array;
00596 }
00597 
00598 void APValue::MakeMemberPointer(const ValueDecl *Member, bool IsDerivedMember,
00599                                 ArrayRef<const CXXRecordDecl*> Path) {
00600   assert(isUninit() && "Bad state change");
00601   MemberPointerData *MPD = new ((void*)(char*)Data) MemberPointerData;
00602   Kind = MemberPointer;
00603   MPD->MemberAndIsDerivedMember.setPointer(Member);
00604   MPD->MemberAndIsDerivedMember.setInt(IsDerivedMember);
00605   MPD->resizePath(Path.size());
00606   memcpy(MPD->getPath(), Path.data(), Path.size()*sizeof(const CXXRecordDecl*));
00607 }