================ @@ -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) { ---------------- jurahul wrote:
Can you add a small comment describing what the function does and maybe a sample input/output? https://github.com/llvm/llvm-project/pull/141762 _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits