[llvm] [mlir] [utils][TableGen] Unify converting names to upper-camel case (PR #141762)
Krzysztof Parzyszek via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 4 14:46:00 PDT 2025
================
@@ -113,14 +113,39 @@ class BaseRecord {
// Returns the name of the directive formatted for output. Whitespace are
// replaced with underscores.
- static std::string formatName(StringRef Name) {
+ static std::string getSnakeName(StringRef Name) {
std::string N = Name.str();
llvm::replace(N, ' ', '_');
return N;
}
+ static std::string getUpperCamelName(StringRef Name, StringRef Sep) {
----------------
kparzysz wrote:
Done
https://github.com/llvm/llvm-project/pull/141762
More information about the llvm-commits
mailing list