[llvm] [llvm-cxxfilt] Add --quote option to quote demangled function names (PR #111871)
Ronan Keryell via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 17 11:45:25 PDT 2024
================
@@ -1,21 +1,24 @@
-// Show that llvm-cxxfilt --quote can emit quoted demangled symbols (even at the
-// end of a line) but not without double-quoting in the case they are already
-// quoted.
-RUN: echo _Z3barv '"_Z3barv"' > %t
-RUN: echo '"_Z3barv"' _Z3barv >> %t
-// This is not mangled, thus it should not be quoted
-RUN: echo 'log()' >> %t
-// Check that an "import thunk for" prefix can be quoted along the demangled name
-RUN: echo __imp__ZSt6futureIvE >> %t
-RUN: llvm-cxxfilt --quote < %t | FileCheck --match-full-lines --check-prefix=CHECK-FILE %s
+// Show that llvm-cxxfilt --quote adds quotes around demangled symbols, unless the symbol is already quoted.
----------------
keryell wrote:
This is my usual coding style actually, so I love this.
https://github.com/llvm/llvm-project/pull/111871
More information about the llvm-commits
mailing list