Lines Matching refs:VariantValue
1 //===--- VariantValue.cpp - Polymorphic value type -*- C++ -*-===/
15 #include "clang/ASTMatchers/Dynamic/VariantValue.h"
155 VariantValue::VariantValue(const VariantValue &Other) : Type(VT_Nothing) {
159 VariantValue::VariantValue(unsigned Unsigned) : Type(VT_Nothing) {
163 VariantValue::VariantValue(const std::string &String) : Type(VT_Nothing) {
167 VariantValue::VariantValue(const VariantMatcher &Matcher) : Type(VT_Nothing) {
171 VariantValue::~VariantValue() { reset(); }
173 VariantValue &VariantValue::operator=(const VariantValue &Other) {
193 void VariantValue::reset() {
209 bool VariantValue::isUnsigned() const {
213 unsigned VariantValue::getUnsigned() const {
218 void VariantValue::setUnsigned(unsigned NewValue) {
224 bool VariantValue::isString() const {
228 const std::string &VariantValue::getString() const {
233 void VariantValue::setString(const std::string &NewValue) {
239 bool VariantValue::isMatcher() const {
243 const VariantMatcher &VariantValue::getMatcher() const {
248 void VariantValue::setMatcher(const VariantMatcher &NewValue) {
254 std::string VariantValue::getTypeAsString() const {