clang: include/clang/StaticAnalyzer/Core/PathSensitive/DynamicCastInfo.h Source File (original) (raw)
1
2
3
4
5
6
7
8
9#ifndef LLVM_CLANG_STATICANALYZER_CORE_PATHSENSITIVE_DYNAMICCASTINFO_H
10#define LLVM_CLANG_STATICANALYZER_CORE_PATHSENSITIVE_DYNAMICCASTINFO_H
11
13
15namespace ento {
16
18public:
20
22 : From(from), To(to), ResultKind(resultKind) {}
23
26
28 return From == from && To == to;
29 }
30
33
35 return From == RHS.From && To == RHS.To;
36 }
38 return From < RHS.From && To < RHS.To;
39 }
40
41 void Profile(llvm::FoldingSetNodeID &ID) const {
42 ID.Add(From);
43 ID.Add(To);
44 ID.AddInteger(ResultKind);
45 }
46
47private:
50};
51
52}
53}
54
55#endif
C Language Family Type Representation.
A (possibly-)qualified type.
bool operator==(const DynamicCastInfo &RHS) const
bool equals(QualType from, QualType to) const
void Profile(llvm::FoldingSetNodeID &ID) const
DynamicCastInfo(QualType from, QualType to, CastResult resultKind)
bool operator<(const DynamicCastInfo &RHS) const
The JSON file list parser is used to communicate input to InstallAPI.