File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 1- // Show that llvm-cxxfilt --quote adds quotes around demangled symbols, unless the symbol is already quoted.
1+ // Show that llvm-cxxfilt --quote adds quotes around demangled symbols, unless
2+ // the symbol is already quoted.
23
34RUN: split-file %s %t
45
@@ -9,7 +10,7 @@ CHECK-FILE: log()
910CHECK-FILE: "import thunk for std::future<void>"
1011
1112// Check it works with CLI symbols too. Since a quoted mangled name is not a
12- // mangled name, it should be unchanged
13+ // mangled name, it should be unchanged.
1314RUN: llvm-cxxfilt --quote _Z3firv '"_Z3barv"' 'saw()' | FileCheck --match-full-lines --check-prefix=CHECK-CLI %s
1415CHECK-CLI: "fir()"
1516CHECK-CLI-NEXT: "_Z3barv"
@@ -18,7 +19,8 @@ CHECK-CLI-NEXT: saw()
1819//--- symbols-in-file.test
1920_Z3barv "_Z3barv"
2021"_Z3barv" _Z3barv
21- // This is not mangled, thus it should not be quoted
22+ // This is not mangled, thus it should not be quoted.
2223log()
23- // Check that an "import thunk for" prefix can be quoted along the demangled name
24+ // Check that an "import thunk for" prefix can be quoted along the demangled
25+ // name.
2426__imp__ZSt6futureIvE
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ static void error(const Twine &Message) {
6565 exit (1 );
6666}
6767
68- // Quote Undecorated with "" if asked for and not already followed by a '"'
68+ // Quote Undecorated with "" if asked for and not already followed by a '"'.
6969static std::string optionalQuote (const std::string &Undecorated,
7070 StringRef Delimiters) {
7171 if (Quote && (Delimiters.empty () || Delimiters[0 ] != ' "' ))
You can’t perform that action at this time.
0 commit comments