Tom Praschan
a45df47375
[clangd] forward clang-tidy's readability-identifier-naming fix to textDocument/rename ( #78454 )
...
Co-authored-by: Nathan Ridge <zeratul976@hotmail.com>
2024-02-20 08:35:20 +01:00
Kadir Cetinkaya
8c21544286
[clangd] Bump timeouts for LSPServerTests
...
We seem to be hitting limits in some windows build bots, see
https://github.com/clangd/clangd/issues/1712#issuecomment-1686478931 .
So bumping the timeouts to 60 seconds and completely dropping them for sync
requests. As mentioned in the comment above, this should improve things,
considering even the tests that don't touch any complicated scheduler is
failing.
Differential Revision: https://reviews.llvm.org/D158426
2023-08-22 16:20:15 +02:00
Kazu Hirata
f71ffd3b73
[clang-tools-extra] Use std::optional instead of llvm::Optional (NFC)
...
This patch replaces (llvm::|)Optional< with std::optional<. I'll post
a separate patch to clean up the "using" declarations, #include
"llvm/ADT/Optional.h", etc.
This is part of an effort to migrate from llvm::Optional to
std::optional:
https://discourse.llvm.org/t/deprecating-llvm-optional-x-hasvalue-getvalue-getvalueor/63716
2023-01-07 20:19:42 -08:00
Kazu Hirata
71f557355d
[clang-tools-extra] Add #include <optional> (NFC)
...
This patch adds #include <optional> to those files containing
llvm::Optional<...> or Optional<...>.
I'll post a separate patch to actually replace llvm::Optional with
std::optional.
This is part of an effort to migrate from llvm::Optional to
std::optional:
https://discourse.llvm.org/t/deprecating-llvm-optional-x-hasvalue-getvalue-getvalueor/63716
2023-01-07 20:02:20 -08:00
Kazu Hirata
b8df4093e4
[clang, clang-tools-extra] Don't use Optional::{hasValue,getValue} (NFC)
2022-06-25 11:55:33 -07:00
Sam McCall
4d006520b8
[clangd] Clean up unused includes. NFCI
...
Add includes where needed to fix build.
Haven't systematically added used headers, so there is still accidental
dependency on transitive includes.
2022-02-26 12:00:16 +01:00
Kadir Cetinkaya
e64f99c51a
[clangd] Metric tracking through Tracer
...
Summary: Introduces an endpoint to Tracer for tracking metrics on
internal events.
Reviewers: sammccall
Subscribers: ilya-biryukov, javed.absar, MaskRay, jkorous, arphaman, usaxena95, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D78429
2020-05-03 10:50:32 +02:00
Sam McCall
ad97ccf6b2
[clangd] Move non-clang base pieces into separate support/ lib. NFCI
...
Summary:
This enforces layering, reduces a sprawling clangd/ directory, and makes life
easier for embedders.
Reviewers: kbobyrev
Subscribers: mgorny, ilya-biryukov, javed.absar, MaskRay, jkorous, arphaman, jfb, kadircet, usaxena95, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D79014
2020-04-29 15:57:12 +02:00
Sam McCall
1229245df7
[clangd] Set up machinery for gtests of ClangdLSPServer.
...
Summary:
This is going to be needed to test e.g. diagnostics regeneration on
didSave where files changed on disk. Coordinating such changes is too
hard in lit tests.
Reviewers: kadircet
Subscribers: mgorny, ilya-biryukov, MaskRay, jkorous, arphaman, usaxena95, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D77766
2020-04-10 02:50:57 +02:00