@@ -14,22 +14,22 @@ namespace codeql {
14
14
15
15
// the following is needed to avoid the problem of subclass pointers not necessarily coinciding
16
16
// with superclass ones in case of multiple inheritance
17
- inline const swift::Decl* getCanonicalPtr (const swift::Decl* e) {
17
+ inline const swift::Decl* getCanonicalPointer (const swift::Decl* e) {
18
18
return e;
19
19
}
20
- inline const swift::Stmt* getCanonicalPtr (const swift::Stmt* e) {
20
+ inline const swift::Stmt* getCanonicalPointer (const swift::Stmt* e) {
21
21
return e;
22
22
}
23
- inline const swift::Expr* getCanonicalPtr (const swift::Expr* e) {
23
+ inline const swift::Expr* getCanonicalPointer (const swift::Expr* e) {
24
24
return e;
25
25
}
26
- inline const swift::Pattern* getCanonicalPtr (const swift::Pattern* e) {
26
+ inline const swift::Pattern* getCanonicalPointer (const swift::Pattern* e) {
27
27
return e;
28
28
}
29
- inline const swift::TypeRepr* getCanonicalPtr (const swift::TypeRepr* e) {
29
+ inline const swift::TypeRepr* getCanonicalPointer (const swift::TypeRepr* e) {
30
30
return e;
31
31
}
32
- inline const swift::TypeBase* getCanonicalPtr (const swift::TypeBase* e) {
32
+ inline const swift::TypeBase* getCanonicalPointer (const swift::TypeBase* e) {
33
33
return e;
34
34
}
35
35
@@ -40,15 +40,15 @@ class TrapLabelStore {
40
40
public:
41
41
template <typename T>
42
42
std::optional<TrapLabel<ToTag<T>>> get (const T* e) {
43
- if (auto found = store_.find (getCanonicalPtr (e)); found != store_.end ()) {
43
+ if (auto found = store_.find (getCanonicalPointer (e)); found != store_.end ()) {
44
44
return TrapLabel<ToTag<T>>::unsafeCreateFromUntyped (found->second );
45
45
}
46
46
return std::nullopt;
47
47
}
48
48
49
49
template <typename T>
50
50
void insert (const T* e, TrapLabel<ToTag<T>> l) {
51
- auto [_, inserted] = store_.emplace (getCanonicalPtr (e), l);
51
+ auto [_, inserted] = store_.emplace (getCanonicalPointer (e), l);
52
52
assert (inserted && " already inserted" );
53
53
}
54
54
0 commit comments