clang API Documentation
#include <APValue.h>

Classes | |
| struct | AddrLabelDiffData |
| struct | Arr |
| struct | ComplexAPFloat |
| struct | ComplexAPSInt |
| struct | LV |
| union | LValuePathEntry |
| struct | MemberPointerData |
| struct | NoLValuePath |
| struct | StructData |
| struct | UninitArray |
| struct | UninitStruct |
| struct | UnionData |
| struct | Vec |
Public Types | |
| enum | ValueKind { Uninitialized, Int, Float, ComplexInt, ComplexFloat, LValue, Vector, Array, Struct, Union, MemberPointer, AddrLabelDiff } |
| typedef llvm::PointerUnion < const ValueDecl *, const Expr * > | LValueBase |
| typedef llvm::PointerIntPair < const Decl *, 1, bool > | BaseOrMemberType |
Public Member Functions | |
| APValue () | |
| APValue (const APSInt &I) | |
| APValue (const APFloat &F) | |
| APValue (const APValue *E, unsigned N) | |
| APValue (const APSInt &R, const APSInt &I) | |
| APValue (const APFloat &R, const APFloat &I) | |
| APValue (const APValue &RHS) | |
| APValue (LValueBase B, const CharUnits &O, NoLValuePath N, unsigned CallIndex) | |
| APValue (LValueBase B, const CharUnits &O, ArrayRef< LValuePathEntry > Path, bool OnePastTheEnd, unsigned CallIndex) | |
| APValue (UninitArray, unsigned InitElts, unsigned Size) | |
| APValue (UninitStruct, unsigned B, unsigned M) | |
| APValue (const FieldDecl *D, const APValue &V=APValue()) | |
| APValue (const ValueDecl *Member, bool IsDerivedMember, ArrayRef< const CXXRecordDecl * > Path) | |
| APValue (const AddrLabelExpr *LHSExpr, const AddrLabelExpr *RHSExpr) | |
| ~APValue () | |
| void | swap (APValue &RHS) |
| Swaps the contents of this and the given APValue. | |
| ValueKind | getKind () const |
| bool | isUninit () const |
| bool | isInt () const |
| bool | isFloat () const |
| bool | isComplexInt () const |
| bool | isComplexFloat () const |
| bool | isLValue () const |
| bool | isVector () const |
| bool | isArray () const |
| bool | isStruct () const |
| bool | isUnion () const |
| bool | isMemberPointer () const |
| bool | isAddrLabelDiff () const |
| void | dump () const |
| void | dump (raw_ostream &OS) const |
| void | printPretty (raw_ostream &OS, ASTContext &Ctx, QualType Ty) const |
| std::string | getAsString (ASTContext &Ctx, QualType Ty) const |
| APSInt & | getInt () |
| const APSInt & | getInt () const |
| APFloat & | getFloat () |
| const APFloat & | getFloat () const |
| APSInt & | getComplexIntReal () |
| const APSInt & | getComplexIntReal () const |
| APSInt & | getComplexIntImag () |
| const APSInt & | getComplexIntImag () const |
| APFloat & | getComplexFloatReal () |
| const APFloat & | getComplexFloatReal () const |
| APFloat & | getComplexFloatImag () |
| const APFloat & | getComplexFloatImag () const |
| const LValueBase | getLValueBase () const |
| CharUnits & | getLValueOffset () |
| const CharUnits & | getLValueOffset () const |
| bool | isLValueOnePastTheEnd () const |
| bool | hasLValuePath () const |
| ArrayRef< LValuePathEntry > | getLValuePath () const |
| unsigned | getLValueCallIndex () const |
| APValue & | getVectorElt (unsigned I) |
| const APValue & | getVectorElt (unsigned I) const |
| unsigned | getVectorLength () const |
| APValue & | getArrayInitializedElt (unsigned I) |
| const APValue & | getArrayInitializedElt (unsigned I) const |
| bool | hasArrayFiller () const |
| APValue & | getArrayFiller () |
| const APValue & | getArrayFiller () const |
| unsigned | getArrayInitializedElts () const |
| unsigned | getArraySize () const |
| unsigned | getStructNumBases () const |
| unsigned | getStructNumFields () const |
| APValue & | getStructBase (unsigned i) |
| APValue & | getStructField (unsigned i) |
| const APValue & | getStructBase (unsigned i) const |
| const APValue & | getStructField (unsigned i) const |
| const FieldDecl * | getUnionField () const |
| APValue & | getUnionValue () |
| const APValue & | getUnionValue () const |
| const ValueDecl * | getMemberPointerDecl () const |
| bool | isMemberPointerToDerivedMember () const |
| ArrayRef< const CXXRecordDecl * > | getMemberPointerPath () const |
| const AddrLabelExpr * | getAddrLabelDiffLHS () const |
| const AddrLabelExpr * | getAddrLabelDiffRHS () const |
| void | setInt (const APSInt &I) |
| void | setFloat (const APFloat &F) |
| void | setVector (const APValue *E, unsigned N) |
| void | setComplexInt (const APSInt &R, const APSInt &I) |
| void | setComplexFloat (const APFloat &R, const APFloat &I) |
| void | setLValue (LValueBase B, const CharUnits &O, NoLValuePath, unsigned CallIndex) |
| void | setLValue (LValueBase B, const CharUnits &O, ArrayRef< LValuePathEntry > Path, bool OnePastTheEnd, unsigned CallIndex) |
| void | setUnion (const FieldDecl *Field, const APValue &Value) |
| void | setAddrLabelDiff (const AddrLabelExpr *LHSExpr, const AddrLabelExpr *RHSExpr) |
| APValue & | operator= (APValue RHS) |
| Assign by swapping from a copy of the RHS. | |
APValue - This class implements a discriminated union of [uninitialized] [APSInt] [APFloat], [Complex APSInt] [Complex APFloat], [Expr + Offset], [Vector: N * APValue], [Array: N * APValue]
| typedef llvm::PointerIntPair<const Decl *, 1, bool> clang::APValue::BaseOrMemberType |
| typedef llvm::PointerUnion<const ValueDecl *, const Expr *> clang::APValue::LValueBase |
| clang::APValue::APValue | ( | const APSInt & | I | ) | [inline, explicit] |
| clang::APValue::APValue | ( | const APFloat & | F | ) | [inline, explicit] |
Definition at line 126 of file APValue.h.
References setFloat().
| clang::APValue::APValue | ( | const APValue * | E, |
| unsigned | N | ||
| ) | [inline, explicit] |
Definition at line 129 of file APValue.h.
References setVector().
| clang::APValue::APValue | ( | const APSInt & | R, |
| const APSInt & | I | ||
| ) | [inline] |
Definition at line 132 of file APValue.h.
References setComplexInt().
| clang::APValue::APValue | ( | const APFloat & | R, |
| const APFloat & | I | ||
| ) | [inline] |
Definition at line 135 of file APValue.h.
References setComplexFloat().
| APValue::APValue | ( | const APValue & | RHS | ) |
Definition at line 125 of file APValue.cpp.
References AddrLabelDiff, Array, ComplexFloat, ComplexInt, Data, Float, getAddrLabelDiffLHS(), getAddrLabelDiffRHS(), getArrayFiller(), getArrayInitializedElt(), getArrayInitializedElts(), getArraySize(), getComplexFloatImag(), getComplexFloatReal(), getComplexIntImag(), getComplexIntReal(), getFloat(), getInt(), getKind(), getLValueBase(), getLValueCallIndex(), getLValueOffset(), getLValuePath(), getMemberPointerDecl(), getMemberPointerPath(), getStructBase(), getStructField(), getStructNumBases(), getStructNumFields(), getUnionField(), getUnionValue(), getVectorLength(), hasArrayFiller(), hasLValuePath(), Int, isLValueOnePastTheEnd(), isMemberPointerToDerivedMember(), LValue, MemberPointer, setAddrLabelDiff(), setComplexFloat(), setComplexInt(), setFloat(), setInt(), setLValue(), setUnion(), setVector(), Struct, Uninitialized, Union, and Vector.
| clang::APValue::APValue | ( | LValueBase | B, |
| const CharUnits & | O, | ||
| NoLValuePath | N, | ||
| unsigned | CallIndex | ||
| ) | [inline] |
Definition at line 139 of file APValue.h.
References setLValue().
| clang::APValue::APValue | ( | LValueBase | B, |
| const CharUnits & | O, | ||
| ArrayRef< LValuePathEntry > | Path, | ||
| bool | OnePastTheEnd, | ||
| unsigned | CallIndex | ||
| ) | [inline] |
Definition at line 143 of file APValue.h.
References setLValue().
| clang::APValue::APValue | ( | UninitArray | , |
| unsigned | InitElts, | ||
| unsigned | Size | ||
| ) | [inline] |
| clang::APValue::APValue | ( | UninitStruct | , |
| unsigned | B, | ||
| unsigned | M | ||
| ) | [inline] |
Definition at line 154 of file APValue.h.
References setUnion().
| clang::APValue::APValue | ( | const ValueDecl * | Member, |
| bool | IsDerivedMember, | ||
| ArrayRef< const CXXRecordDecl * > | Path | ||
| ) | [inline] |
| clang::APValue::APValue | ( | const AddrLabelExpr * | LHSExpr, |
| const AddrLabelExpr * | RHSExpr | ||
| ) | [inline] |
Definition at line 162 of file APValue.h.
References setAddrLabelDiff().
| void APValue::dump | ( | ) | const |
Definition at line 223 of file APValue.cpp.
Referenced by dump().
| void APValue::dump | ( | raw_ostream & | OS | ) | const |
Definition at line 236 of file APValue.cpp.
References AddrLabelDiff, Array, ComplexFloat, ComplexInt, dump(), Float, GetApproxValue(), getArrayFiller(), getArrayInitializedElt(), getArrayInitializedElts(), getArraySize(), getComplexFloatImag(), getComplexFloatReal(), getComplexIntImag(), getComplexIntReal(), getFloat(), getInt(), getKind(), getStructBase(), getStructField(), getStructNumBases(), getStructNumFields(), getUnionValue(), getVectorElt(), getVectorLength(), hasArrayFiller(), Int, LValue, MemberPointer, Struct, Uninitialized, Union, and Vector.
| const AddrLabelExpr* clang::APValue::getAddrLabelDiffLHS | ( | ) | const [inline] |
Definition at line 332 of file APValue.h.
References Data, and isAddrLabelDiff().
Referenced by APValue(), clang::CodeGen::CodeGenModule::EmitConstantValue(), and printPretty().
| const AddrLabelExpr* clang::APValue::getAddrLabelDiffRHS | ( | ) | const [inline] |
Definition at line 336 of file APValue.h.
References Data, and isAddrLabelDiff().
Referenced by APValue(), clang::CodeGen::CodeGenModule::EmitConstantValue(), and printPretty().
| APValue& clang::APValue::getArrayFiller | ( | ) | [inline] |
Definition at line 276 of file APValue.h.
References Data, getArrayInitializedElts(), hasArrayFiller(), and isArray().
Referenced by APValue(), CheckConstantExpression(), dump(), clang::CodeGen::CodeGenModule::EmitConstantValue(), ExtractSubobject(), and getArrayFiller().
| const APValue& clang::APValue::getArrayFiller | ( | ) | const [inline] |
Definition at line 281 of file APValue.h.
References getArrayFiller().
| APValue& clang::APValue::getArrayInitializedElt | ( | unsigned | I | ) | [inline] |
Definition at line 265 of file APValue.h.
References Data, getArrayInitializedElts(), and isArray().
Referenced by APValue(), CheckConstantExpression(), dump(), clang::CodeGen::CodeGenModule::EmitConstantValue(), ExtractSubobject(), getArrayInitializedElt(), and printPretty().
| const APValue& clang::APValue::getArrayInitializedElt | ( | unsigned | I | ) | const [inline] |
Definition at line 270 of file APValue.h.
References getArrayInitializedElt().
| unsigned clang::APValue::getArrayInitializedElts | ( | ) | const [inline] |
Definition at line 284 of file APValue.h.
References Data, and isArray().
Referenced by APValue(), CheckConstantExpression(), dump(), clang::CodeGen::CodeGenModule::EmitConstantValue(), ExtractSubobject(), getArrayFiller(), getArrayInitializedElt(), hasArrayFiller(), and printPretty().
| unsigned clang::APValue::getArraySize | ( | ) | const [inline] |
Definition at line 288 of file APValue.h.
References Data, and isArray().
Referenced by APValue(), dump(), clang::CodeGen::CodeGenModule::EmitConstantValue(), and hasArrayFiller().
| std::string APValue::getAsString | ( | ASTContext & | Ctx, |
| QualType | Ty | ||
| ) | const |
Definition at line 504 of file APValue.cpp.
References printPretty().
Referenced by clang::Sema::CheckConvertedConstantExpression(), and DiagnoseNarrowingInInitList().
| APFloat& clang::APValue::getComplexFloatImag | ( | ) | [inline] |
Definition at line 234 of file APValue.h.
References Data, and isComplexFloat().
Referenced by APValue(), dump(), clang::CodeGen::CodeGenModule::EmitConstantValue(), ExtractSubobject(), getComplexFloatImag(), HandleConversionToBool(), and printPretty().
| const APFloat& clang::APValue::getComplexFloatImag | ( | ) | const [inline] |
Definition at line 238 of file APValue.h.
References getComplexFloatImag().
| APFloat& clang::APValue::getComplexFloatReal | ( | ) | [inline] |
Definition at line 226 of file APValue.h.
References Data, and isComplexFloat().
Referenced by APValue(), dump(), clang::CodeGen::CodeGenModule::EmitConstantValue(), ExtractSubobject(), getComplexFloatReal(), HandleConversionToBool(), and printPretty().
| const APFloat& clang::APValue::getComplexFloatReal | ( | ) | const [inline] |
Definition at line 230 of file APValue.h.
References getComplexFloatReal().
| APSInt& clang::APValue::getComplexIntImag | ( | ) | [inline] |
Definition at line 218 of file APValue.h.
References Data, and isComplexInt().
Referenced by APValue(), dump(), clang::CodeGen::CodeGenModule::EmitConstantValue(), ExtractSubobject(), getComplexIntImag(), HandleConversionToBool(), and printPretty().
| const APSInt& clang::APValue::getComplexIntImag | ( | ) | const [inline] |
Definition at line 222 of file APValue.h.
References getComplexIntImag().
| APSInt& clang::APValue::getComplexIntReal | ( | ) | [inline] |
Definition at line 210 of file APValue.h.
References Data, and isComplexInt().
Referenced by APValue(), dump(), clang::CodeGen::CodeGenModule::EmitConstantValue(), ExtractSubobject(), getComplexIntReal(), HandleConversionToBool(), and printPretty().
| const APSInt& clang::APValue::getComplexIntReal | ( | ) | const [inline] |
Definition at line 214 of file APValue.h.
References getComplexIntReal().
| APFloat& clang::APValue::getFloat | ( | ) | [inline] |
Definition at line 202 of file APValue.h.
References Data, and isFloat().
Referenced by APValue(), dump(), clang::CodeGen::CodeGenFunction::EmitBuiltinExpr(), clang::CodeGen::CodeGenModule::EmitConstantValue(), EvalAndBitcastToAPInt(), getFloat(), clang::StandardConversionSequence::getNarrowingKind(), HandleConversionToBool(), and printPretty().
| const APFloat& clang::APValue::getFloat | ( | ) | const [inline] |
Definition at line 206 of file APValue.h.
References getFloat().
| APSInt& clang::APValue::getInt | ( | ) | [inline] |
Definition at line 194 of file APValue.h.
Referenced by APValue(), clang::Sema::CheckConvertedConstantExpression(), dump(), clang::CodeGen::CodeGenFunction::EmitBuiltinExpr(), clang::CodeGen::CodeGenModule::EmitConstantValue(), EvalAndBitcastToAPInt(), EvaluateCPlusPlus11IntegralConstantExpr(), EvaluateInteger(), getInt(), HandleConversionToBool(), printPretty(), and clang::Sema::VerifyIntegerConstantExpression().
| const APSInt& clang::APValue::getInt | ( | ) | const [inline] |
| ValueKind clang::APValue::getKind | ( | ) | const [inline] |
Definition at line 174 of file APValue.h.
Referenced by APValue(), dump(), clang::CodeGen::CodeGenModule::EmitConstantValue(), EvaluateBuiltinConstantP(), HandleConversionToBool(), and printPretty().
| const APValue::LValueBase APValue::getLValueBase | ( | ) | const |
Definition at line 512 of file APValue.cpp.
References Data, and isLValue().
Referenced by APValue(), clang::CodeGen::CodeGenModule::EmitConstantValue(), EvalPointerValueAsBool(), ExtractSubobject(), HandleLValueToRValueConversion(), isNullPointerValueTemplateArgument(), and printPretty().
| unsigned APValue::getLValueCallIndex | ( | ) | const |
Definition at line 538 of file APValue.cpp.
References Data, and isLValue().
Referenced by APValue(), and HandleLValueToRValueConversion().
| CharUnits & APValue::getLValueOffset | ( | ) |
Definition at line 522 of file APValue.cpp.
References Data, and isLValue().
Referenced by APValue(), clang::CodeGen::CodeGenModule::EmitConstantValue(), EvalPointerValueAsBool(), getLValueOffset(), HandleLValueToRValueConversion(), and printPretty().
| const CharUnits& clang::APValue::getLValueOffset | ( | ) | const [inline] |
Definition at line 244 of file APValue.h.
References getLValueOffset().
| ArrayRef< APValue::LValuePathEntry > APValue::getLValuePath | ( | ) | const |
Definition at line 532 of file APValue.cpp.
References Data, clang::APValue::LV::getPath(), hasLValuePath(), and isLValue().
Referenced by APValue(), ExtractSubobject(), and printPretty().
| const ValueDecl * APValue::getMemberPointerDecl | ( | ) | const |
Definition at line 567 of file APValue.cpp.
References Data, and isMemberPointer().
Referenced by APValue(), HandleConversionToBool(), isNullPointerValueTemplateArgument(), and printPretty().
| ArrayRef< const CXXRecordDecl * > APValue::getMemberPointerPath | ( | ) | const |
Definition at line 579 of file APValue.cpp.
References Data, clang::APValue::MemberPointerData::getPath(), and isMemberPointer().
Referenced by APValue().
| APValue& clang::APValue::getStructBase | ( | unsigned | i | ) | [inline] |
Definition at line 301 of file APValue.h.
References Data, and isStruct().
Referenced by APValue(), CheckConstantExpression(), dump(), ExtractSubobject(), getStructBase(), HandleConstructorCall(), and printPretty().
| const APValue& clang::APValue::getStructBase | ( | unsigned | i | ) | const [inline] |
Definition at line 309 of file APValue.h.
References getStructBase().
| APValue& clang::APValue::getStructField | ( | unsigned | i | ) | [inline] |
Definition at line 305 of file APValue.h.
References Data, getStructNumBases(), and isStruct().
Referenced by APValue(), CheckConstantExpression(), dump(), ExtractSubobject(), getStructField(), HandleConstructorCall(), and printPretty().
| const APValue& clang::APValue::getStructField | ( | unsigned | i | ) | const [inline] |
Definition at line 312 of file APValue.h.
References getStructField().
| unsigned clang::APValue::getStructNumBases | ( | ) | const [inline] |
Definition at line 293 of file APValue.h.
References Data, and isStruct().
Referenced by APValue(), dump(), getStructField(), and printPretty().
| unsigned clang::APValue::getStructNumFields | ( | ) | const [inline] |
| const FieldDecl* clang::APValue::getUnionField | ( | ) | const [inline] |
Definition at line 316 of file APValue.h.
References Data, and isUnion().
Referenced by APValue(), CheckConstantExpression(), ExtractSubobject(), HandleConstructorCall(), and printPretty().
| APValue& clang::APValue::getUnionValue | ( | ) | [inline] |
Definition at line 320 of file APValue.h.
References Data, and isUnion().
Referenced by APValue(), CheckConstantExpression(), dump(), ExtractSubobject(), getUnionValue(), HandleConstructorCall(), and printPretty().
| const APValue& clang::APValue::getUnionValue | ( | ) | const [inline] |
Definition at line 324 of file APValue.h.
References getUnionValue().
| APValue& clang::APValue::getVectorElt | ( | unsigned | I | ) | [inline] |
Definition at line 252 of file APValue.h.
References Data, getVectorLength(), and isVector().
Referenced by dump(), clang::CodeGen::CodeGenModule::EmitConstantValue(), EvalAndBitcastToAPInt(), getVectorElt(), and printPretty().
| const APValue& clang::APValue::getVectorElt | ( | unsigned | I | ) | const [inline] |
Definition at line 257 of file APValue.h.
References getVectorElt().
| unsigned clang::APValue::getVectorLength | ( | ) | const [inline] |
Definition at line 260 of file APValue.h.
References Data, and isVector().
Referenced by APValue(), dump(), clang::CodeGen::CodeGenModule::EmitConstantValue(), EvalAndBitcastToAPInt(), getVectorElt(), and printPretty().
| bool clang::APValue::hasArrayFiller | ( | ) | const [inline] |
Definition at line 273 of file APValue.h.
References getArrayInitializedElts(), and getArraySize().
Referenced by APValue(), CheckConstantExpression(), dump(), clang::CodeGen::CodeGenModule::EmitConstantValue(), and getArrayFiller().
| bool APValue::hasLValuePath | ( | ) | const |
Definition at line 527 of file APValue.cpp.
References Data, and isLValue().
Referenced by APValue(), ExtractSubobject(), getLValuePath(), and printPretty().
| bool clang::APValue::isAddrLabelDiff | ( | ) | const [inline] |
Definition at line 186 of file APValue.h.
References AddrLabelDiff.
Referenced by getAddrLabelDiffLHS(), and getAddrLabelDiffRHS().
| bool clang::APValue::isArray | ( | ) | const [inline] |
Definition at line 182 of file APValue.h.
References Array.
Referenced by CheckConstantExpression(), getArrayFiller(), getArrayInitializedElt(), getArrayInitializedElts(), and getArraySize().
| bool clang::APValue::isComplexFloat | ( | ) | const [inline] |
Definition at line 179 of file APValue.h.
References ComplexFloat.
Referenced by ExtractSubobject(), getComplexFloatImag(), getComplexFloatReal(), and setComplexFloat().
| bool clang::APValue::isComplexInt | ( | ) | const [inline] |
Definition at line 178 of file APValue.h.
References ComplexInt.
Referenced by ExtractSubobject(), getComplexIntImag(), getComplexIntReal(), and setComplexInt().
| bool clang::APValue::isFloat | ( | ) | const [inline] |
Definition at line 177 of file APValue.h.
References Float.
Referenced by clang::CodeGen::CodeGenFunction::EmitBuiltinExpr(), EvalAndBitcastToAPInt(), getFloat(), clang::StandardConversionSequence::getNarrowingKind(), and setFloat().
| bool clang::APValue::isInt | ( | ) | const [inline] |
Definition at line 176 of file APValue.h.
References Int.
Referenced by CheckEvalInICE(), clang::CodeGen::CodeGenFunction::EmitBuiltinExpr(), clang::CodeGen::CodeGenModule::EmitConstantValue(), EvalAndBitcastToAPInt(), EvaluateCPlusPlus11IntegralConstantExpr(), EvaluateInteger(), getInt(), setInt(), and clang::Sema::VerifyIntegerConstantExpression().
| bool clang::APValue::isLValue | ( | ) | const [inline] |
Definition at line 180 of file APValue.h.
References LValue.
Referenced by CheckConstantExpression(), ExtractSubobject(), getLValueBase(), getLValueCallIndex(), getLValueOffset(), getLValuePath(), hasLValuePath(), isLValueOnePastTheEnd(), isNullPointerValueTemplateArgument(), and setLValue().
| bool APValue::isLValueOnePastTheEnd | ( | ) | const |
Definition at line 517 of file APValue.cpp.
References Data, and isLValue().
Referenced by APValue(), and printPretty().
| bool clang::APValue::isMemberPointer | ( | ) | const [inline] |
Definition at line 185 of file APValue.h.
References MemberPointer.
Referenced by getMemberPointerDecl(), getMemberPointerPath(), isMemberPointerToDerivedMember(), and isNullPointerValueTemplateArgument().
| bool APValue::isMemberPointerToDerivedMember | ( | ) | const |
Definition at line 573 of file APValue.cpp.
References Data, and isMemberPointer().
Referenced by APValue().
| bool clang::APValue::isStruct | ( | ) | const [inline] |
Definition at line 183 of file APValue.h.
References Struct.
Referenced by CheckConstantExpression(), getStructBase(), getStructField(), getStructNumBases(), and getStructNumFields().
| bool clang::APValue::isUninit | ( | ) | const [inline] |
Definition at line 175 of file APValue.h.
References Uninitialized.
Referenced by clang::VarDecl::evaluateValue(), EvaluateVarDeclInit(), ExtractSubobject(), and HandleConstructorCall().
| bool clang::APValue::isUnion | ( | ) | const [inline] |
Definition at line 184 of file APValue.h.
References Union.
Referenced by CheckConstantExpression(), getUnionField(), getUnionValue(), HandleConstructorCall(), and setUnion().
| bool clang::APValue::isVector | ( | ) | const [inline] |
Definition at line 181 of file APValue.h.
References Vector.
Referenced by EvalAndBitcastToAPInt(), getVectorElt(), getVectorLength(), and setVector().
| void APValue::printPretty | ( | raw_ostream & | OS, |
| ASTContext & | Ctx, | ||
| QualType | Ty | ||
| ) | const |
Definition at line 309 of file APValue.cpp.
References AddrLabelDiff, Array, clang::CXXRecordDecl::bases_begin(), clang::CXXRecordDecl::bases_end(), ComplexFloat, ComplexInt, clang::RecordDecl::field_begin(), clang::RecordDecl::field_end(), Float, getAddrLabelDiffLHS(), getAddrLabelDiffRHS(), GetApproxValue(), getArrayInitializedElt(), getArrayInitializedElts(), clang::ASTContext::getAsArrayType(), getComplexFloatImag(), getComplexFloatReal(), getComplexIntImag(), getComplexIntReal(), clang::ArrayType::getElementType(), getElementType(), getFloat(), getInt(), getKind(), clang::AddrLabelExpr::getLabel(), getLValueBase(), getLValueOffset(), getLValuePath(), getMemberPointerDecl(), clang::NamedDecl::getName(), clang::QualType::getNonReferenceType(), clang::ASTContext::getPrintingPolicy(), clang::ASTContext::getRecordType(), getStructBase(), getStructField(), getStructNumBases(), clang::Expr::getType(), clang::ASTContext::getTypeSizeInChars(), getUnionField(), getUnionValue(), getVectorElt(), getVectorLength(), hasLValuePath(), Int, isLValueOnePastTheEnd(), clang::CharUnits::isZero(), LValue, MemberPointer, clang::CharUnits::One(), printPretty(), clang::Stmt::printPretty(), S, Struct, Uninitialized, Union, and Vector.
Referenced by describeCall(), getAsString(), and printPretty().
| void clang::APValue::setAddrLabelDiff | ( | const AddrLabelExpr * | LHSExpr, |
| const AddrLabelExpr * | RHSExpr | ||
| ) | [inline] |
| void clang::APValue::setComplexFloat | ( | const APFloat & | R, |
| const APFloat & | I | ||
| ) | [inline] |
Definition at line 363 of file APValue.h.
References Data, and isComplexFloat().
Referenced by APValue().
| void clang::APValue::setComplexInt | ( | const APSInt & | R, |
| const APSInt & | I | ||
| ) | [inline] |
Definition at line 356 of file APValue.h.
References Data, and isComplexInt().
Referenced by APValue().
| void clang::APValue::setFloat | ( | const APFloat & | F | ) | [inline] |
| void clang::APValue::setInt | ( | const APSInt & | I | ) | [inline] |
| void APValue::setLValue | ( | LValueBase | B, |
| const CharUnits & | O, | ||
| NoLValuePath | , | ||
| unsigned | CallIndex | ||
| ) |
Definition at line 543 of file APValue.cpp.
References Data, isLValue(), and clang::APValue::LV::resizePath().
Referenced by APValue().
| void APValue::setLValue | ( | LValueBase | B, |
| const CharUnits & | O, | ||
| ArrayRef< LValuePathEntry > | Path, | ||
| bool | OnePastTheEnd, | ||
| unsigned | CallIndex | ||
| ) |
Definition at line 554 of file APValue.cpp.
References Data, clang::APValue::LV::getPath(), isLValue(), and clang::APValue::LV::resizePath().
| void clang::APValue::setVector | ( | const APValue * | E, |
| unsigned | N | ||
| ) | [inline] |
| void APValue::swap | ( | APValue & | RHS | ) |
Swaps the contents of this and the given APValue.
Definition at line 215 of file APValue.cpp.
References Data.
Referenced by ExtractSubobject(), and operator=().
| void* clang::APValue::Aligner |
| char clang::APValue::Data[MaxSize] |
Definition at line 118 of file APValue.h.
Referenced by APValue(), getAddrLabelDiffLHS(), getAddrLabelDiffRHS(), getArrayFiller(), getArrayInitializedElt(), getArrayInitializedElts(), getArraySize(), getComplexFloatImag(), getComplexFloatReal(), getComplexIntImag(), getComplexIntReal(), getFloat(), getInt(), getLValueBase(), getLValueCallIndex(), getLValueOffset(), getLValuePath(), getMemberPointerDecl(), getMemberPointerPath(), getStructBase(), getStructField(), getStructNumBases(), getStructNumFields(), getUnionField(), getUnionValue(), getVectorElt(), getVectorLength(), hasLValuePath(), isLValueOnePastTheEnd(), isMemberPointerToDerivedMember(), setAddrLabelDiff(), setComplexFloat(), setComplexInt(), setFloat(), setInt(), setLValue(), setUnion(), setVector(), and swap().