aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/Support/ProgramTest.cpp
diff options
context:
space:
mode:
authorSam McCall <sam.mccall@gmail.com>2022-02-23 16:59:19 +0100
committerSam McCall <sam.mccall@gmail.com>2022-02-26 21:28:09 +0100
commit257559ed9ab74c2dd3882075c45b4ae002256425 (patch)
tree2aaf8de0d8e4819d1c53c7cd5a3b1043e62a84f8 /llvm/unittests/Support/ProgramTest.cpp
parenta74ff3ac2edcb631ef78d41c12da7c2641ff2e15 (diff)
downloadllvm-257559ed9ab74c2dd3882075c45b4ae002256425.zip
llvm-257559ed9ab74c2dd3882075c45b4ae002256425.tar.gz
llvm-257559ed9ab74c2dd3882075c45b4ae002256425.tar.bz2
[clangd] Function return type hints: support lambdas, don't duplicate "->"
While here, fix an ugliness: auto foo()->auto { return 42; } This (silly) code gains a "-> int" hint. While correct and useful, it renders as auto foo()->int->auto { return 42; } which is confusing enough to do more harm than good I think. Differential Revision: https://reviews.llvm.org/D120416
Diffstat (limited to 'llvm/unittests/Support/ProgramTest.cpp')
0 files changed, 0 insertions, 0 deletions