aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/Analysis/ValueTrackingTest.cpp
diff options
context:
space:
mode:
authorJens Massberg <massberg@google.com>2023-07-04 16:31:49 +0200
committerJens Massberg <massberg@google.com>2023-07-05 12:04:24 +0200
commit1af0e34477a3b4a28a1c251e527c9f75f5cf69e1 (patch)
treee8331c27474f404352ca8500bf57478c5fca548f /llvm/unittests/Analysis/ValueTrackingTest.cpp
parent7208fde09eafa165e1affcf8ebbd2cae2fcb2e8a (diff)
downloadllvm-1af0e34477a3b4a28a1c251e527c9f75f5cf69e1.zip
llvm-1af0e34477a3b4a28a1c251e527c9f75f5cf69e1.tar.gz
llvm-1af0e34477a3b4a28a1c251e527c9f75f5cf69e1.tar.bz2
[clangd][c++20] Drop first template argument in code completion in some contexts.
In case of a top level context the first template argument of a concept should be dropped. Currently the indexer doesn't support different signatures for different contexts (for an index entry always the default `Symbol` context is used). Thus we add a hack which checks if we are in a top level context and have a concept and in that case removes the first argment of the signature and snippet suffix. If there is only a single argument, the signature and snippet suffix are completly removed. The check for the first argument is done by simply looking for the first comma which should be sufficient in most cases. Additionally extend test environment to support adding artificial index entries with signature and completion snippet suffix. Differential Revision: https://reviews.llvm.org/D154450
Diffstat (limited to 'llvm/unittests/Analysis/ValueTrackingTest.cpp')
0 files changed, 0 insertions, 0 deletions