Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Thanks for this, Also how would you feel about adding a parameter to the script that could create alias definitions in much the same way?
Thanks for this, Also how would you feel about adding a parameter to the script that could create alias definitions in much the same way?
Do you have more details about your expectation? I could have a look but in a separate commit :)
An example says it best
py add_new_check.py awesome make-unique --alias modernize make-unqiue
Running that would create a new check in the Awesome module called make-unique that is just an alias for modernize-make-unique. doing the necessary things like updating the list.rst, creating a blank doc that just redirects to modernize-make-unique and adding the 'New Alias check' for the release notes
Awesome! Thanks for updating the script! A few nits, otherwise LG, if this works.
clang-tools-extra/clang-tidy/add_new_check.py | ||
---|---|---|
308 | nit: Space after the comma. | |
316 | nit: They are not completely stupid, they are just simple and naive ;) | |
328–329 | Trailing period. | |
350 | nit: The script uses a_different_naming_style. | |
353 | Trailing period. | |
372 | Is there a way to let sphinx find out column widths itself? |
clang-tools-extra/clang-tidy/add_new_check.py | ||
---|---|---|
372 | TIL, sphinx doesn't need this indeed! |
nit: Space after the comma.