This is similar to the LLVM_TABLEGEN, CLANG_TABLEGEN and CLANG_PSEUDO_GEN settings.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
As the name of the tool becomes somewhat public and stable at this point, feel free to suggest shorter/neater names in D129798 too.
Ping @serge-sans-paille @sammccall - does this seem reasonable, and would you like to tweak the name of the tool before cementing it into a public cmake option (that at least I would be setting while cross compiling)?
Mechanics definitely seem reasonable.
I don't have a strong opinion about the name. I don't find it very clear, the missing info being that it's part of clang-tidy and it relates to confusable unicode characters, but clang-tidy-make-confusable-characters-table is probably too much of a mouthful.
I'd be tempted by clang-tidy-confusable-chars-gen or so but I'm really just painting the bikeshed at this point - up to you.
That sounds like a clearer name to me, thanks! I’ll update D129798 and this patch with that name, run some test builds with it, push them, and then file backport requests for them, as they missed the branch.
clang-tools-extra/clang-tidy/misc/CMakeLists.txt | ||
---|---|---|
13 | Should make_confusable_table and make_confusable_table_target also be renamed? |
Hi i have a question. Does llvm provide a general toggle to set all those things with a directory? It becomes unmanagable since the end of llvm 15 for Canadian compilation.
like LLVM_NATIVE_TOOL_DIR some thing like that?
BTW how to force LLVM to install all of them. It is just ridiculous why llvm does not install them by default. I need Canadian compilation all the time.
Not that I know of, but that would indeed be quite convenient - sounds like a good idea to me.
Should make_confusable_table and make_confusable_table_target also be renamed?