clang 20.0.0git
|
#include "clang/AST/ComparisonCategories.h"
Public Member Functions | |
const ComparisonCategoryInfo & | getInfo (ComparisonCategoryType Kind) const |
Return the comparison category information for the category specified by 'Kind'. | |
const ComparisonCategoryInfo & | getInfoForType (QualType Ty) const |
Return the comparison category information as specified by getCategoryForType(Ty) . | |
const ComparisonCategoryInfo * | lookupInfo (ComparisonCategoryType Kind) const |
Return the cached comparison category information for the specified 'Kind'. | |
ComparisonCategoryInfo * | lookupInfo (ComparisonCategoryType Kind) |
const ComparisonCategoryInfo * | lookupInfoForType (QualType Ty) const |
Static Public Member Functions | |
static StringRef | getCategoryString (ComparisonCategoryType Kind) |
static StringRef | getResultString (ComparisonCategoryResult Kind) |
static std::vector< ComparisonCategoryResult > | getPossibleResultsForType (ComparisonCategoryType Type) |
Return the list of results which are valid for the specified comparison category type. | |
Friends | |
class | ASTContext |
Definition at line 174 of file ComparisonCategories.h.
|
static |
Definition at line 172 of file ComparisonCategories.cpp.
References clang::ComparisonCategoryInfo::Kind.
Referenced by clang::Sema::CheckComparisonCategoryType(), and lookupCXXRecordDecl().
|
inline |
Return the comparison category information for the category specified by 'Kind'.
Definition at line 186 of file ComparisonCategories.h.
References Kind, lookupInfo(), and clang::Result.
const ComparisonCategoryInfo & ComparisonCategories::getInfoForType | ( | QualType | Ty | ) | const |
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.
Definition at line 161 of file ComparisonCategories.cpp.
|
static |
Return the list of results which are valid for the specified comparison category type.
Definition at line 203 of file ComparisonCategories.cpp.
Referenced by clang::Sema::CheckComparisonCategoryType().
|
static |
Definition at line 185 of file ComparisonCategories.cpp.
References clang::ComparisonCategoryInfo::Kind.
Referenced by clang::Sema::CheckComparisonCategoryType().
|
inline |
Definition at line 207 of file ComparisonCategories.h.
References Kind.
const ComparisonCategoryInfo * ComparisonCategories::lookupInfo | ( | ComparisonCategoryType | Kind | ) | const |
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
Definition at line 113 of file ComparisonCategories.cpp.
References clang::Data, clang::ComparisonCategoryInfo::Kind, lookupCXXRecordDecl(), and lookupStdNamespace().
Referenced by clang::Sema::CheckComparisonCategoryType(), and getInfo().
const ComparisonCategoryInfo * ComparisonCategories::lookupInfoForType | ( | QualType | Ty | ) | const |
Definition at line 126 of file ComparisonCategories.cpp.
References clang::Data, clang::Type::getAsCXXRecordDecl(), clang::CXXRecordDecl::getCanonicalDecl(), clang::QualType::isNull(), clang::ComparisonCategoryInfo::Kind, and clang::ComparisonCategoryInfo::Record.
Referenced by clang::Sema::BuildSynthesizedThreeWayComparison().
|
friend |
Definition at line 215 of file ComparisonCategories.h.