@@ -14,22 +14,22 @@ namespace codeql {
1414
1515// the following is needed to avoid the problem of subclass pointers not necessarily coinciding
1616// 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) {
1818 return e;
1919}
20- inline const swift::Stmt* getCanonicalPtr (const swift::Stmt* e) {
20+ inline const swift::Stmt* getCanonicalPointer (const swift::Stmt* e) {
2121 return e;
2222}
23- inline const swift::Expr* getCanonicalPtr (const swift::Expr* e) {
23+ inline const swift::Expr* getCanonicalPointer (const swift::Expr* e) {
2424 return e;
2525}
26- inline const swift::Pattern* getCanonicalPtr (const swift::Pattern* e) {
26+ inline const swift::Pattern* getCanonicalPointer (const swift::Pattern* e) {
2727 return e;
2828}
29- inline const swift::TypeRepr* getCanonicalPtr (const swift::TypeRepr* e) {
29+ inline const swift::TypeRepr* getCanonicalPointer (const swift::TypeRepr* e) {
3030 return e;
3131}
32- inline const swift::TypeBase* getCanonicalPtr (const swift::TypeBase* e) {
32+ inline const swift::TypeBase* getCanonicalPointer (const swift::TypeBase* e) {
3333 return e;
3434}
3535
@@ -40,15 +40,15 @@ class TrapLabelStore {
4040 public:
4141 template <typename T>
4242 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 ()) {
4444 return TrapLabel<ToTag<T>>::unsafeCreateFromUntyped (found->second );
4545 }
4646 return std::nullopt ;
4747 }
4848
4949 template <typename T>
5050 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);
5252 assert (inserted && " already inserted" );
5353 }
5454
0 commit comments