summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/clangd/Function.h
Commit message (Collapse)AuthorAgeFilesLines
* [clangd] Remove Bind, use C++14 lambda captures instead. NFCIlya Biryukov2019-08-161-56/+0
| | | | llvm-svn: 369089
* [clangd] llvm::integer_sequence -> std::integer_sequence.Benjamin Kramer2019-08-151-1/+1
| | | | llvm-svn: 368991
* Replace llvm::integer_sequence and friends with the C++14 standard versionBenjamin Kramer2019-08-151-2/+2
| | | | | | The implementation in libc++ takes O(1) compile time, ours was O(n). llvm-svn: 368990
* Update the file headers across all of the LLVM projects in the monorepoChandler Carruth2019-01-191-4/+3
| | | | | | | | | | | | | | | | | to reflect the new license. We understand that people may be surprised that we're moving the header entirely to discuss the new license. We checked this carefully with the Foundation's lawyer and we believe this is the correct approach. Essentially, all code in the project is now made available by the LLVM project under our new license, so you will see that the license headers include that license only. Some of our contributors have contributed code under our old license, and accordingly, we have retained a copy of our old license notice in the top-level files in each project and repository. llvm-svn: 351636
* [clangd] Delete stray semicolon. NFCFangrui Song2018-12-241-1/+0
| | | | llvm-svn: 350040
* [clangd] Allow observation of changes to global CDBs.Sam McCall2018-11-201-0/+77
| | | | | | | | | | | | | | | | | | Summary: Currently, changes *within* CDBs are not tracked (CDB has no facility to do so). However, discovery of new CDBs are tracked (all files are marked as modified). Also, files whose compilation commands are explicitly set are marked modified. The intent is to use this for auto-index. Newly discovered files will be indexed with low priority. Reviewers: ilya-biryukov Subscribers: ioeric, MaskRay, jkorous, arphaman, kadircet, cfe-commits Differential Revision: https://reviews.llvm.org/D54475 llvm-svn: 347297
* [clangd] Replace UniqueFunction with llvm::unique_function.Benjamin Kramer2018-07-031-62/+4
| | | | | | One implementation of this ought to be enough for everyone. llvm-svn: 336228
* [clangd] Remove Tagged and some related APIs from ClangdServer.Sam McCall2018-03-121-0/+4
| | | | | | | | | | | | Context can do what Tagged was intended to support (snapshot filesystems), and less intrusively. getTaggedFileSystem() no longer needs a filename. Cleanups while here: - code-complete now returns errors as Expected, like other functions - added an alias Callback<T> for the usual callback function type llvm-svn: 327344
* [clangd] BindWithForward -> Bind. NFCSam McCall2018-02-231-2/+2
| | | | llvm-svn: 325868
* [clangd] Replace homegrown make_scope_exit with one from ADTSam McCall2018-01-251-34/+0
| | | | llvm-svn: 323443
* [clangd] Made UniqueFunction's bool conversion explicitIlya Biryukov2017-12-201-1/+1
| | | | llvm-svn: 321173
* [clangd] Fix bool conversion operator of UniqueFunctionIlya Biryukov2017-12-131-1/+1
| | | | | | | Usages of it were giving compiler errors because of the missing explicit conversion. llvm-svn: 320591
* [clangd] Implemented logging using ContextIlya Biryukov2017-12-131-1/+39
| | | | | | | | | | | | Reviewers: sammccall, ioeric, hokein Reviewed By: sammccall Subscribers: klimek, cfe-commits Differential Revision: https://reviews.llvm.org/D40486 llvm-svn: 320576
* [clangd] Added missing #includes to Function.hIlya Biryukov2017-10-101-0/+3
| | | | llvm-svn: 315324
* [clangd] Added forgotten return in UniqueFunction.Ilya Biryukov2017-10-101-1/+1
| | | | | | | This hasn't bitten us because we only used functions returning 'void'. llvm-svn: 315323
* [clangd] Fix compilation on gcc.Ilya Biryukov2017-10-101-2/+2
| | | | llvm-svn: 315284
* [clangd] Added move-only function helpers.Ilya Biryukov2017-10-091-0/+136
Summary: They are now used in ClangdScheduler instead of deferred std::async computations. The results of `std::async` are much less effective and do not provide a good abstraction for similar purposes, i.e. for storing additional callbacks to clangd async tasks. The actual callback API will follow a bit later. Reviewers: klimek, bkramer, sammccall, krasimir Reviewed By: sammccall Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D38627 llvm-svn: 315210
OpenPOWER on IntegriCloud