clang  14.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 <vector>
Include dependency graph for ComparisonCategories.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

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

Namespaces

 llvm
 
 clang
 

Enumerations

enum  clang::ComparisonCategoryType : unsigned char {
  clang::ComparisonCategoryType::PartialOrdering, clang::ComparisonCategoryType::WeakOrdering, clang::ComparisonCategoryType::StrongOrdering, clang::ComparisonCategoryType::First = PartialOrdering,
  clang::ComparisonCategoryType::Last = StrongOrdering
}
 An enumeration representing the different comparison categories types. More...
 
enum  clang::ComparisonCategoryResult : unsigned char {
  clang::ComparisonCategoryResult::Equal, clang::ComparisonCategoryResult::Equivalent, clang::ComparisonCategoryResult::Less, clang::ComparisonCategoryResult::Greater,
  clang::ComparisonCategoryResult::Unordered, clang::ComparisonCategoryResult::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. More...
 
Optional< ComparisonCategoryTypeclang::getComparisonCategoryForBuiltinCmp (QualType T)
 Get the comparison category that should be used when comparing values of type T. More...