-
Notifications
You must be signed in to change notification settings - Fork 15.2k
[llvm-cxxfilt] Add --quote option to quote demangled function names #111871
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 5 commits
c2d7d4e
d3553f3
0ca7195
ecd1d77
2e070db
8867ce7
f4f4799
634979c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,24 @@ | ||||||
| // Show that llvm-cxxfilt --quote adds quotes around demangled symbols, unless the symbol is already quoted. | ||||||
|
||||||
|
|
||||||
| RUN: split-file %s %t | ||||||
|
|
||||||
| RUN: llvm-cxxfilt --quote < %t/symbols-in-file.test | FileCheck --match-full-lines --check-prefix=CHECK-FILE %s | ||||||
| CHECK-FILE: "bar()" "bar()" | ||||||
| CHECK-FILE-NEXT: "bar()" "bar()" | ||||||
| CHECK-FILE: log() | ||||||
| CHECK-FILE: "import thunk for std::future<void>" | ||||||
|
|
||||||
| // Check it works with CLI symbols too. Since a quoted mangled name is not a | ||||||
| // mangled name, it should be unchanged | ||||||
|
||||||
| // mangled name, it should be unchanged | |
| // mangled name, it should be unchanged. |
Nit.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not addressed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like I messed up in conflict resolution when I rebased my commit on top of the one I made on GitHub UI with your suggestions.
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also missing "." here and below - comments should always end with one, just like in regular code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: This should appear after
--no-strip-underscoreto maintain alphabetical order.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That makes sense.