9 #ifndef LLVM_CLANG_STATICANALYZER_CORE_PATHSENSITIVE_DYNAMICCASTINFO_H 10 #define LLVM_CLANG_STATICANALYZER_CORE_PATHSENSITIVE_DYNAMICCASTINFO_H 22 : From(from), To(to), ResultKind(resultKind) {}
28 return From == from && To ==
to;
31 bool succeeds()
const {
return ResultKind == CastResult::Success; }
32 bool fails()
const {
return ResultKind == CastResult::Failure; }
35 return From == RHS.From && To == RHS.To;
38 return From < RHS.From && To < RHS.To;
44 ID.AddInteger(ResultKind);
55 #endif // LLVM_CLANG_STATICANALYZER_CORE_PATHSENSITIVE_DYNAMICCASTINFO_H
A (possibly-)qualified type.
C Language Family Type Representation.
bool operator==(const DynamicCastInfo &RHS) const
bool equals(QualType from, QualType to) const
DynamicCastInfo(QualType from, QualType to, CastResult resultKind)
Dataflow Directional Tag Classes.
bool operator<(const DynamicCastInfo &RHS) const
void Profile(llvm::FoldingSetNodeID &ID) const