Skip to content

Commit 8867ce7

Browse files
committed
[llvm-cxxfilt][NFC] More comment cleaning
Apply reviews from @jh7370.
1 parent 2e070db commit 8867ce7

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed
Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
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

34
RUN: split-file %s %t
45

@@ -9,7 +10,7 @@ CHECK-FILE: log()
910
CHECK-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.
1314
RUN: llvm-cxxfilt --quote _Z3firv '"_Z3barv"' 'saw()' | FileCheck --match-full-lines --check-prefix=CHECK-CLI %s
1415
CHECK-CLI: "fir()"
1516
CHECK-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.
2223
log()
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

llvm/tools/llvm-cxxfilt/llvm-cxxfilt.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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 '"'.
6969
static std::string optionalQuote(const std::string &Undecorated,
7070
StringRef Delimiters) {
7171
if (Quote && (Delimiters.empty() || Delimiters[0] != '"'))

0 commit comments

Comments
 (0)