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

Ronan Keryell via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 16 14:14:30 PDT 2024


================
@@ -1,12 +1,21 @@
-// Show that llvm-cxxfilt --quote can emit quoted demangled symbols but not
-// without double-quoting in the case they are already quoted
+// 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
----------------
keryell wrote:

Interesting!

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


More information about the llvm-commits mailing list