aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/Support/BinaryStreamTest.cpp
diff options
context:
space:
mode:
authorSam McCall <sam.mccall@gmail.com>2021-12-30 01:57:47 +0100
committerSam McCall <sam.mccall@gmail.com>2022-01-26 15:51:17 +0100
commit33c3ef2fbeec4ede5fc303b09cdca99ae2c0522a (patch)
treee5b2cf0e8f2eeba9ce6ff650981ff596d1470b9a /llvm/unittests/Support/BinaryStreamTest.cpp
parenta5e324e3e2edcc72d9e402b4d846cae615192ad8 (diff)
downloadllvm-33c3ef2fbeec4ede5fc303b09cdca99ae2c0522a.zip
llvm-33c3ef2fbeec4ede5fc303b09cdca99ae2c0522a.tar.gz
llvm-33c3ef2fbeec4ede5fc303b09cdca99ae2c0522a.tar.bz2
[CodeCompletion][clangd] Clean __uglified parameter names in completion & hover
Underscore-uglified identifiers are used in standard library implementations to guard against collisions with macros, and they hurt readability considerably. (Consider `push_back(Tp_ &&__value)` vs `push_back(Tp value)`. When we're describing an interface, the exact names of parameters are not critical so we can drop these prefixes. This patch adds a new PrintingPolicy flag that can applies this stripping when recursively printing pieces of AST. We set it in code completion/signature help, and in clangd's hover display. All three features also do a bit of manual poking at names, so fix up those too. Fixes https://github.com/clangd/clangd/issues/736 Differential Revision: https://reviews.llvm.org/D116387
Diffstat (limited to 'llvm/unittests/Support/BinaryStreamTest.cpp')
0 files changed, 0 insertions, 0 deletions