-
Notifications
You must be signed in to change notification settings - Fork 156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rewrite alias declarations from typedef
to using
#1747
Comments
bernhardmgruber
added a commit
to bernhardmgruber/cccl
that referenced
this issue
Jun 19, 2024
Using: * clang-tidy modernize-use-using * regex replace: "typedef ([\w<>,:\s*&+:\[\]\.]+)\s+([\w_]+);" by "using $2 = $1;" * manual search and edits Fixes: NVIDIA#1747
bernhardmgruber
added a commit
to bernhardmgruber/cccl
that referenced
this issue
Jun 19, 2024
Using: * clang-tidy modernize-use-using * regex replace: "typedef ([\w<>,:\s*&+:\[\]\.]+)\s+([\w_]+);" by "using $2 = $1;" * manual search and edits Fixes a part of: NVIDIA#1747
bernhardmgruber
added a commit
to bernhardmgruber/cccl
that referenced
this issue
Jun 19, 2024
Using: * clang-tidy modernize-use-using * regex replace: "typedef ([\w<>,:\s*&+:\[\]\.]+)\s+([\w_]+);" by "using $2 = $1;" * manual search and edits Fixes a part of: NVIDIA#1747
bernhardmgruber
added a commit
that referenced
this issue
Jun 24, 2024
Using: * clang-tidy modernize-use-using * regex replace: "typedef ([\w<>,:\s*&+:\[\]\.]+)\s+([\w_]+);" by "using $2 = $1;" * manual search and edits Fixes a part of: #1747
bernhardmgruber
added a commit
to bernhardmgruber/cccl
that referenced
this issue
Jun 24, 2024
Using: * clang-tidy modernize-use-using * regex replace: "typedef ([\w<>,:\s*&+:\[\]\.]+)\s+([\w_]+);" by "using $2 = $1;" * manual search and edits Fixes: NVIDIA#1747
bernhardmgruber
added a commit
to bernhardmgruber/cccl
that referenced
this issue
Jun 24, 2024
Using: * clang-tidy modernize-use-using * regex replace: "typedef ([\w<>,:\s*&+:\[\]\.]+)\s+([\w_]+);" by "using $2 = $1;" * manual search and edits Fixes: NVIDIA#1747
bernhardmgruber
added a commit
to bernhardmgruber/cccl
that referenced
this issue
Jun 24, 2024
Using: * clang-tidy modernize-use-using * regex replace: "typedef ([\w<>,:\s*&+:\[\]\.]+)\s+([\w_]+);" by "using $2 = $1;" * manual search and edits Fixes a part of: NVIDIA#1747
bernhardmgruber
added a commit
to bernhardmgruber/cccl
that referenced
this issue
Jul 1, 2024
Using: * clang-tidy modernize-use-using * regex replace: "typedef ([\w<>,:\s*&+:\[\]\.]+)\s+([\w_]+);" by "using $2 = $1;" * manual search and edits Fixes a part of: NVIDIA#1747
bernhardmgruber
added a commit
that referenced
this issue
Jul 1, 2024
Using: * clang-tidy modernize-use-using * regex replace: "typedef ([\w<>,:\s*&+:\[\]\.]+)\s+([\w_]+);" by "using $2 = $1;" * manual search and edits Fixes a part of: #1747
bernhardmgruber
added a commit
to bernhardmgruber/cccl
that referenced
this issue
Jul 1, 2024
Using: * clang-tidy modernize-use-using * regex replace: "typedef ([\w<>,:\s*&+:\[\]\.]+)\s+([\w_]+);" by "using $2 = $1;" * manual search and edits Fixes: NVIDIA#1747
bernhardmgruber
added a commit
to bernhardmgruber/cccl
that referenced
this issue
Jul 1, 2024
Using: * clang-tidy modernize-use-using * regex replace: "typedef ([\w<>,:\s*&+:\[\]\.]+)\s+([\w_]+);" by "using $2 = $1;" * manual search and edits Fixes: NVIDIA#1747
bernhardmgruber
added a commit
to bernhardmgruber/cccl
that referenced
this issue
Jul 17, 2024
Using: * clang-tidy modernize-use-using * regex replace: "typedef ([\w<>,:\s*&+:\[\]\.]+)\s+([\w_]+);" by "using $2 = $1;" * manual search and edits Fixes: NVIDIA#1747
bernhardmgruber
added a commit
to bernhardmgruber/cccl
that referenced
this issue
Jul 17, 2024
Using: * clang-tidy modernize-use-using * regex replace: "typedef ([\w<>,:\s*&+:\[\]\.]+)\s+([\w_]+);" by "using $2 = $1;" * manual search and edits Fixes: NVIDIA#1747
I have a branch with the changes for libcu++ as well: https://github.com/bernhardmgruber/cccl/tree/using_all. However, it touches a lot of files, especially tests. I wonder whether it could complicate merging changes from libc++. @miscco what do you think? Should we only apply a subset? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I got so used to alias declarations by now my parser hickups when encountering a
typedef
these days. Given the general better readability of the former, let's run the clang-tidy refactor on CCCL to rewrite the typedefs to using declarations.Originally posted by @bernhardmgruber in #1721 (comment)
The text was updated successfully, but these errors were encountered: