clang 19.0.0git
Classes | Namespaces | Enumerations | Functions
ComparisonCategories.h File Reference
#include "clang/Basic/LLVM.h"
#include "llvm/ADT/APSInt.h"
#include "llvm/ADT/DenseMap.h"
#include <array>
#include <cassert>
#include <optional>
#include <vector>

Go to the source code of this file.

Classes

class  clang::ComparisonCategoryInfo
 
struct  clang::ComparisonCategoryInfo::ValueInfo
 
class  clang::ComparisonCategories
 

Namespaces

namespace  llvm
 YAML serialization mapping.
 
namespace  clang
 The JSON file list parser is used to communicate input to InstallAPI.
 

Enumerations

enum class  clang::ComparisonCategoryType : unsigned char {
  clang::PartialOrdering , clang::WeakOrdering , clang::StrongOrdering , clang::First = PartialOrdering ,
  clang::Last = StrongOrdering
}
 An enumeration representing the different comparison categories types. More...
 
enum class  clang::ComparisonCategoryResult : unsigned char {
  clang::Equal , clang::Equivalent , clang::Less , clang::Greater ,
  clang::Unordered , clang::Last = Unordered
}
 An enumeration representing the possible results of a three-way comparison. More...
 

Functions

ComparisonCategoryType clang::commonComparisonType (ComparisonCategoryType A, ComparisonCategoryType B)
 Determine the common comparison type, as defined in C++2a [class.spaceship]p4.
 
std::optional< ComparisonCategoryTypeclang::getComparisonCategoryForBuiltinCmp (QualType T)
 Get the comparison category that should be used when comparing values of type T.