This is an archive of the discontinued LLVM Phabricator instance.

[clang-tidy] Rename the make-confusable-table executable
ClosedPublic

Authored by mstorsjo on Jul 14 2022, 1:26 PM.

Details

Summary

Rename it to clang-tidy-confusable-chars-gen, to make its role clearer in a wider context.

In cross builds, the caller might want to provide this tool externally (to avoid needing to rebuild it in the cross build). In such a case, having the tool properly namespaced makes its role clearer.

This matches how the clang-pseudo-gen tool was renamed in a43fef05d4fae32f02365c7b8fef2aa631d23628 / D126725.

Diff Detail

Event Timeline

mstorsjo created this revision.Jul 14 2022, 1:26 PM
mstorsjo requested review of this revision.Jul 14 2022, 1:26 PM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptJul 14 2022, 1:26 PM

LGTM, thanks for doing this.

This revision is now accepted and ready to land.Jul 18 2022, 12:10 AM
mstorsjo updated this revision to Diff 448162.Jul 27 2022, 2:27 PM

Updated with the new suggested executable name from https://reviews.llvm.org/D129799#3681524. Will push this change tomorrow if there's no further objections.

mstorsjo retitled this revision from [clang-tidy] Add a "clang-" namespace prefix to the make-confusable-target executable to [clang-tidy] Rename the make-confusable-table executable.Jul 27 2022, 2:29 PM
mstorsjo edited the summary of this revision. (Show Details)
sammccall accepted this revision.Jul 28 2022, 1:55 AM
sammccall added inline comments.Jul 28 2022, 1:57 AM
clang-tools-extra/clang-tidy/misc/CMakeLists.txt
10–11

(Should the variable names also be updated?

This revision was landed with ongoing or failed builds.Jul 28 2022, 2:01 AM
This revision was automatically updated to reflect the committed changes.
mstorsjo added inline comments.Jul 28 2022, 3:08 AM
clang-tools-extra/clang-tidy/misc/CMakeLists.txt
10–11

I guess I could do that for consistency too. (Sorry for not noticing your comment before pushing!)

thakis added a subscriber: thakis.Jul 28 2022, 4:16 AM
thakis added inline comments.
llvm/utils/gn/secondary/clang-tools-extra/clang-tidy/misc/ConfusableTable/BUILD.gn
1

Thanks for attempting to update the GN build, but if you don't test it it's less confusing to not touch it at all. I fixed it in dd428a571c69621d5b6eb2e0e3ce5497c304fb2c and I was confused for a bit since this file here was already updated.

(I suppose the GN build wouldn't have broken if you hadn't changed this file and I wouldn't have noticed and not renamed the executable there for a while…)

mstorsjo added inline comments.Jul 29 2022, 12:41 PM
llvm/utils/gn/secondary/clang-tools-extra/clang-tidy/misc/ConfusableTable/BUILD.gn
1

Oops, sorry about that! I'll keep my hands off of the GN parts in the future.