class ComparisonCategories

Declaration

class ComparisonCategories { /* full declaration omitted */ };

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

Member Variables

private const clang::ASTContext& Ctx
private llvm::DenseMap<char, ComparisonCategoryInfo> Data
A map from the ComparisonCategoryType (represented as 'char') to the cached information for the specified category.
private clang::NamespaceDecl* StdNS = nullptr

Method Overview

  • private ComparisonCategories(const clang::ASTContext & Ctx)
  • public static llvm::StringRef getCategoryString(clang::ComparisonCategoryType Kind)
  • public const clang::ComparisonCategoryInfo & getInfo(clang::ComparisonCategoryType Kind) const
  • public const clang::ComparisonCategoryInfo & getInfoForType(clang::QualType Ty) const
  • public static std::vector<ComparisonCategoryResult> getPossibleResultsForType(clang::ComparisonCategoryType Type)
  • public static llvm::StringRef getResultString(clang::ComparisonCategoryResult Kind)
  • public const clang::ComparisonCategoryInfo * lookupInfo(clang::ComparisonCategoryType Kind) const
  • public clang::ComparisonCategoryInfo * lookupInfo(clang::ComparisonCategoryType Kind)
  • public const clang::ComparisonCategoryInfo * lookupInfoForType(clang::QualType Ty) const

Methods

ComparisonCategories(const clang::ASTContext& Ctx)

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

Parameters

const clang::ASTContext& Ctx

static llvm::StringRef getCategoryString(
    clang::ComparisonCategoryType Kind)

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

Parameters

clang::ComparisonCategoryType Kind

const clang::ComparisonCategoryInfo& getInfo(
    clang::ComparisonCategoryType Kind) const

Description

Return the comparison category information for the category specified by 'Kind'.

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

Parameters

clang::ComparisonCategoryType Kind

const clang::ComparisonCategoryInfo&
getInfoForType(clang::QualType Ty) const

Description

Return the comparison category information as specified by `getCategoryForType(Ty)`. If the information is not already cached, the declaration is looked up and a cache entry is created. NOTE: Lookup is expected to succeed. Use lookupInfo if failure is possible.

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

Parameters

clang::QualType Ty

static std::vector<ComparisonCategoryResult>
getPossibleResultsForType(
    clang::ComparisonCategoryType Type)

Description

Return the list of results which are valid for the specified comparison category type.

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

Parameters

clang::ComparisonCategoryType Type

static llvm::StringRef getResultString(
    clang::ComparisonCategoryResult Kind)

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

Parameters

clang::ComparisonCategoryResult Kind

const clang::ComparisonCategoryInfo* lookupInfo(
    clang::ComparisonCategoryType Kind) const

Description

Return the cached comparison category information for the specified 'Kind'. If no cache entry is present the comparison category type is looked up. If lookup fails nullptr is returned. Otherwise, a new cache entry is created and returned

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

Parameters

clang::ComparisonCategoryType Kind

clang::ComparisonCategoryInfo* lookupInfo(
    clang::ComparisonCategoryType Kind)

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

Parameters

clang::ComparisonCategoryType Kind

const clang::ComparisonCategoryInfo*
lookupInfoForType(clang::QualType Ty) const

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

Parameters

clang::QualType Ty