Lines Matching defs:APValue
14 #include "clang/AST/APValue.h"
551 /// True if the \p APValue \p Value can be folded onto the current line.
552 static bool isSimpleAPValue(const APValue &Value) {
554 case APValue::None:
555 case APValue::Indeterminate:
556 case APValue::Int:
557 case APValue::Float:
558 case APValue::FixedPoint:
559 case APValue::ComplexInt:
560 case APValue::ComplexFloat:
561 case APValue::LValue:
562 case APValue::MemberPointer:
563 case APValue::AddrLabelDiff:
565 case APValue::Vector:
566 case APValue::Array:
567 case APValue::Struct:
569 case APValue::Union:
572 llvm_unreachable("unexpected APValue kind!");
575 /// Dump the children of the \p APValue \p Value.
577 /// \param[in] Value The \p APValue to visit
580 /// \param[in] IdxToChildFun A function mapping an \p APValue and an index
581 /// to one of the child of the \p APValue
589 const APValue &Value, QualType Ty,
590 const APValue &(*IdxToChildFun)(const APValue &, unsigned),
621 void TextNodeDumper::Visit(const APValue &Value, QualType Ty) {
624 case APValue::None:
627 case APValue::Indeterminate:
630 case APValue::Int:
637 case APValue::Float:
644 case APValue::FixedPoint:
651 case APValue::Vector: {
657 [](const APValue &Value, unsigned Index) -> const APValue & {
663 case APValue::ComplexInt:
671 case APValue::ComplexFloat:
679 case APValue::LValue:
683 case APValue::Array: {
690 [](const APValue &Value, unsigned Index) -> const APValue & {
707 case APValue::Struct: {
712 [](const APValue &Value, unsigned Index) -> const APValue & {
719 [](const APValue &Value, unsigned Index) -> const APValue & {
726 case APValue::Union: {
735 const APValue &UnionValue = Value.getUnionValue();
745 case APValue::MemberPointer:
748 case APValue::AddrLabelDiff:
752 llvm_unreachable("Unknown APValue kind!");
2273 const APValue *Value = D->evaluateValue();