mirror of
https://github.com/PrimeDecomp/prime.git
synced 2025-12-16 00:57:00 +00:00
Enable clangd integration & revamp VS Code config
This commit is contained in:
@@ -136,11 +136,11 @@ public:
|
||||
return *this;
|
||||
}
|
||||
iterator operator--(int) { return iterator(this->curent->x0_prev); }
|
||||
T* get_pointer() const { return current->get_value(); }
|
||||
T& operator*() const { return *current->get_value(); }
|
||||
T* operator->() const { return current->get_value(); }
|
||||
bool operator==(const iterator& other) const { return current == other.current; }
|
||||
bool operator!=(const iterator& other) const { return current != other.current; }
|
||||
T* get_pointer() const { return this->current->get_value(); }
|
||||
T& operator*() const { return *this->current->get_value(); }
|
||||
T* operator->() const { return this->current->get_value(); }
|
||||
bool operator==(const iterator& other) const { return this->current == other.current; }
|
||||
bool operator!=(const iterator& other) const { return this->current != other.current; }
|
||||
};
|
||||
|
||||
private:
|
||||
|
||||
@@ -101,10 +101,10 @@ public:
|
||||
return *this;
|
||||
}
|
||||
pointer_iterator operator+(int v) const {
|
||||
return pointer_iterator(current + v);
|
||||
return pointer_iterator(this->current + v);
|
||||
}
|
||||
pointer_iterator operator-(int v) const {
|
||||
return pointer_iterator(current - v);
|
||||
return pointer_iterator(this->current - v);
|
||||
}
|
||||
// HACK: non-const operator- is required to match vector::insert
|
||||
difference_type operator-(const pointer_iterator& other) { return this->current - other.current; }
|
||||
|
||||
@@ -52,7 +52,7 @@ single_ptr< T >& single_ptr< T >::Set(T* ptr) {
|
||||
return *this = ptr;
|
||||
}
|
||||
|
||||
typedef single_ptr< void > unk_singleptr;
|
||||
typedef single_ptr< int > unk_singleptr;
|
||||
CHECK_SIZEOF(unk_singleptr, 0x4);
|
||||
} // namespace rstl
|
||||
|
||||
|
||||
@@ -233,7 +233,7 @@ typename vector< T, Alloc >::iterator vector< T, Alloc >::erase(iterator first,
|
||||
return first;
|
||||
}
|
||||
|
||||
typedef vector< void > unk_vector;
|
||||
typedef vector< int > unk_vector;
|
||||
CHECK_SIZEOF(unk_vector, 0x10)
|
||||
} // namespace rstl
|
||||
|
||||
|
||||
Reference in New Issue
Block a user