summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeCompletion/lambdas.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [clangd] Show lambda signature for lambda autocompletionsKirill Bobyrev2019-11-221-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | The original bug report can be found [here](https://github.com/clangd/clangd/issues/85) Given the following code: ```c++ void function() { auto Lambda = [](int a, double &b) {return 1.f;}; La^ } ``` Triggering the completion at `^` would show `(lambda)` before this patch and would show signature `(int a, double &b) const`, build a snippet etc with this patch. Reviewers: sammccall Reviewed by: sammccall Differential revision: https://reviews.llvm.org/D70445
* [CodeComplete] Add whitespace around braces in lambda completionsIlya Biryukov2019-05-241-5/+5
| | | | | | | This produces nicer output. Trivial follow-up to r361461, so sending without review. llvm-svn: 361645
* [CodeComplete] Only show lambda completions if patterns are requestedIlya Biryukov2019-05-231-0/+9
| | | | | | This is a trivial follow-up to r361461, so sending without review. llvm-svn: 361510
* [CodeComplete] Complete a lambda when preferred type is a functionIlya Biryukov2019-05-231-0/+53
Summary: Uses a heuristic to detect std::function and friends. Reviewers: kadircet Reviewed By: kadircet Subscribers: cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D62238 llvm-svn: 361461
OpenPOWER on IntegriCloud