struct ComparisonCategoryInfo::ValueInfo

Declaration

struct ComparisonCategoryInfo::ValueInfo { /* full declaration omitted */ };

Declared at: clang/include/clang/AST/ComparisonCategories.h:84

Member Variables

public clang::ComparisonCategoryResult Kind
public clang::VarDecl* VD

Method Overview

Methods

ValueInfo(clang::ComparisonCategoryResult Kind,
          clang::VarDecl* VD)

Declared at: clang/include/clang/AST/ComparisonCategories.h:88

Parameters

clang::ComparisonCategoryResult Kind
clang::VarDecl* VD

llvm::APSInt getIntValue() const

Description

Get the constant integer value used by this variable to represent the comparison category result type.

Declared at: clang/include/clang/AST/ComparisonCategories.h:97

bool hasValidIntValue() const

Description

True iff we've successfully evaluated the variable as a constant expression and extracted its integer value.

Declared at: clang/include/clang/AST/ComparisonCategories.h:93