[llvm] [llvm-cxxfilt] Add --quote option to quote demangled function names (PR #111871)

James Henderson via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 11 00:52:15 PDT 2024


================
@@ -64,7 +66,15 @@ static void error(const Twine &Message) {
   exit(1);
 }
 
-static std::string demangle(const std::string &Mangled) {
+// Quote Undecorated with "" if asked for and not already followed by a '"'
+static std::string optionalQuote(std::string Undecorated,
----------------
jh7370 wrote:

Should `Undecorated` be a `const std::string &` or `StringRef`?

https://github.com/llvm/llvm-project/pull/111871


More information about the llvm-commits mailing list