Lines Matching defs:APValue
14 #include "clang/AST/APValue.h"
585 /// True if the \p APValue \p Value can be folded onto the current line.
586 static bool isSimpleAPValue(const APValue &Value) {
588 case APValue::None:
589 case APValue::Indeterminate:
590 case APValue::Int:
591 case APValue::Float:
592 case APValue::FixedPoint:
593 case APValue::ComplexInt:
594 case APValue::ComplexFloat:
595 case APValue::LValue:
596 case APValue::MemberPointer:
597 case APValue::AddrLabelDiff:
599 case APValue::Vector:
600 case APValue::Array:
601 case APValue::Struct:
603 case APValue::Union:
606 llvm_unreachable("unexpected APValue kind!");
609 /// Dump the children of the \p APValue \p Value.
611 /// \param[in] Value The \p APValue to visit
614 /// \param[in] IdxToChildFun A function mapping an \p APValue and an index
615 /// to one of the child of the \p APValue
623 const APValue &Value, QualType Ty,
624 const APValue &(*IdxToChildFun)(const APValue &, unsigned),
655 void TextNodeDumper::Visit(const APValue &Value, QualType Ty) {
658 case APValue::None:
661 case APValue::Indeterminate:
664 case APValue::Int:
671 case APValue::Float:
678 case APValue::FixedPoint:
685 case APValue::Vector: {
691 [](const APValue &Value, unsigned Index) -> const APValue & {
697 case APValue::ComplexInt:
705 case APValue::ComplexFloat:
713 case APValue::LValue: {
716 APValue::LValueBase B = Value.getLValueBase();
743 case APValue::Array: {
750 [](const APValue &Value, unsigned Index) -> const APValue & {
767 case APValue::Struct: {
772 [](const APValue &Value, unsigned Index) -> const APValue & {
779 [](const APValue &Value, unsigned Index) -> const APValue & {
786 case APValue::Union: {
795 const APValue &UnionValue = Value.getUnionValue();
805 case APValue::MemberPointer:
808 case APValue::AddrLabelDiff:
812 llvm_unreachable("Unknown APValue kind!");
2382 const APValue *Value = D->evaluateValue();