AK: Prefer using instead of typedef

Problem:
- `typedef` is a keyword which comes from C and carries with it old
  syntax that is hard to read.
- Creating type aliases with the `using` keyword allows for easier
  future maintenance because it supports template syntax.
- There is inconsistent use of `typedef` vs `using`.

Solution:
- Use `clang-tidy`'s checker called `modernize-use-using` to update
  the syntax to use the newer syntax.
- Remove unused functions to make `clang-tidy` happy.
- This results in consistency within the codebase.
This commit is contained in:
Lenny Maiorani 2020-11-11 15:21:01 -07:00 committed by Andreas Kling
commit f5ced347e6
Notes: sideshowbarker 2024-07-19 01:25:47 +09:00
12 changed files with 83 additions and 93 deletions

View file

@ -61,7 +61,7 @@ private:
class Utf8View {
public:
typedef Utf8CodepointIterator Iterator;
using Iterator = Utf8CodepointIterator;
Utf8View() { }
explicit Utf8View(const String&);