Revision tags: llvmorg-21-init, llvmorg-19.1.7, llvmorg-19.1.6 |
|
#
61fe67a4 |
| 05-Dec-2024 |
Nathan Ridge <zeratul976@hotmail.com> |
[clangd] support outgoing calls in call hierarchy (#117673)
This reverts commit ce0f11325e0c62c5b81391589e9b93b412a85bc1.
|
#
ce0f1132 |
| 04-Dec-2024 |
Augie Fackler <augie@google.com> |
Revert "[clangd] Re-land "support outgoing calls in call hierarchy" (#117673)"
This reverts commit 7be3326200ef382705d8e6b2d7dc5378af96b34a.
Per https://protobuf.dev/programming-guides/dos-donts/#a
Revert "[clangd] Re-land "support outgoing calls in call hierarchy" (#117673)"
This reverts commit 7be3326200ef382705d8e6b2d7dc5378af96b34a.
Per https://protobuf.dev/programming-guides/dos-donts/#add-required this will re-land tomorrow without the required fields.
show more ...
|
#
7be33262 |
| 04-Dec-2024 |
Nathan Ridge <zeratul976@hotmail.com> |
[clangd] Re-land "support outgoing calls in call hierarchy" (#117673)
Co-authored-by: Quentin Chateau <quentin.chateau@gmail.com>
|
Revision tags: llvmorg-19.1.5, llvmorg-19.1.4, llvmorg-19.1.3, llvmorg-19.1.2, llvmorg-19.1.1, llvmorg-19.1.0, llvmorg-19.1.0-rc4, llvmorg-19.1.0-rc3, llvmorg-19.1.0-rc2, llvmorg-19.1.0-rc1, llvmorg-20-init |
|
#
d8c07342 |
| 03-Jul-2024 |
Alexis Engelke <engelke@in.tum.de> |
[Support] Move raw_ostream::tie to raw_fd_ostream (#97396)
Originally, tie was introduced by D81156 to flush stdout before writing
to stderr. 030897523 reverted this due to race conditions. Nonethe
[Support] Move raw_ostream::tie to raw_fd_ostream (#97396)
Originally, tie was introduced by D81156 to flush stdout before writing
to stderr. 030897523 reverted this due to race conditions. Nonetheless,
it does cost performance, causing an extra check in the "cold" path,
which is actually the hot path for raw_svector_ostream. Given that this
feature is only used for errs(), move it to raw_fd_ostream so that it no
longer affects performance of other stream classes.
show more ...
|
Revision tags: llvmorg-18.1.8, llvmorg-18.1.7, llvmorg-18.1.6, llvmorg-18.1.5, llvmorg-18.1.4, llvmorg-18.1.3, llvmorg-18.1.2, llvmorg-18.1.1, llvmorg-18.1.0, llvmorg-18.1.0-rc4, llvmorg-18.1.0-rc3, llvmorg-18.1.0-rc2, llvmorg-18.1.0-rc1, llvmorg-19-init |
|
#
b8f89b84 |
| 16-Dec-2023 |
Kazu Hirata <kazu@google.com> |
Use StringRef::{starts,ends}_with (NFC)
This patch replaces uses of StringRef::{starts,ends}with with StringRef::{starts,ends}_with for consistency with std::{string,string_view}::{starts,ends}_with
Use StringRef::{starts,ends}_with (NFC)
This patch replaces uses of StringRef::{starts,ends}with with StringRef::{starts,ends}_with for consistency with std::{string,string_view}::{starts,ends}_with in C++20.
I'm planning to deprecate and eventually remove StringRef::{starts,ends}with.
show more ...
|
Revision tags: llvmorg-17.0.6, llvmorg-17.0.5, llvmorg-17.0.4, llvmorg-17.0.3, llvmorg-17.0.2, llvmorg-17.0.1, llvmorg-17.0.0, llvmorg-17.0.0-rc4, llvmorg-17.0.0-rc3, llvmorg-17.0.0-rc2, llvmorg-17.0.0-rc1, llvmorg-18-init, llvmorg-16.0.6, llvmorg-16.0.5, llvmorg-16.0.4, llvmorg-16.0.3, llvmorg-16.0.2, llvmorg-16.0.1, llvmorg-16.0.0, llvmorg-16.0.0-rc4, llvmorg-16.0.0-rc3, llvmorg-16.0.0-rc2, llvmorg-16.0.0-rc1, llvmorg-17-init, llvmorg-15.0.7 |
|
#
f71ffd3b |
| 08-Jan-2023 |
Kazu Hirata <kazu@google.com> |
[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, #i
[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
show more ...
|
#
71f55735 |
| 08-Jan-2023 |
Kazu Hirata <kazu@google.com> |
[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
[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
show more ...
|
#
76fcfea2 |
| 07-Dec-2022 |
Kazu Hirata <kazu@google.com> |
[clang-tools-extra] Don't including None.h (NFC)
These source files no longer use None, so they do not need to include None.h.
This is part of an effort to migrate from llvm::Optional to std::optio
[clang-tools-extra] Don't including None.h (NFC)
These source files no longer use None, so they do not need to include None.h.
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
show more ...
|
#
2402c46b |
| 06-Dec-2022 |
Kazu Hirata <kazu@google.com> |
[clang-tools-extra] Use std::nullopt instead of llvm::None (NFC)
This is part of an effort to migrate from llvm::Optional to std::optional:
https://discourse.llvm.org/t/deprecating-llvm-optional-x-
[clang-tools-extra] Use std::nullopt instead of llvm::None (NFC)
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
show more ...
|
Revision tags: llvmorg-15.0.6, llvmorg-15.0.5, llvmorg-15.0.4, llvmorg-15.0.3, working, llvmorg-15.0.2, llvmorg-15.0.1, llvmorg-15.0.0, llvmorg-15.0.0-rc3, llvmorg-15.0.0-rc2, llvmorg-15.0.0-rc1, llvmorg-16-init, llvmorg-14.0.6, llvmorg-14.0.5, llvmorg-14.0.4, llvmorg-14.0.3, llvmorg-14.0.2, llvmorg-14.0.1, llvmorg-14.0.0, llvmorg-14.0.0-rc4, llvmorg-14.0.0-rc3, llvmorg-14.0.0-rc2, llvmorg-14.0.0-rc1, llvmorg-15-init, llvmorg-13.0.1, llvmorg-13.0.1-rc3 |
|
#
a9bf3276 |
| 13-Jan-2022 |
Kirill Bobyrev <kbobyrev@google.com> |
[clangd] Fix build after D115243
The api for loadIndex changed but was not updated everywhere due to differences in the build configuration.
|
Revision tags: llvmorg-13.0.1-rc2 |
|
#
9c9119ab |
| 07-Dec-2021 |
Sam McCall <sam.mccall@gmail.com> |
[clangd] Extend SymbolOrigin, stop serializing it
New values: - Split Dynamic into Open/Preamble - Add Background (previously was just Unknown) - Soon: stdlib index
This requires extending to 16 bi
[clangd] Extend SymbolOrigin, stop serializing it
New values: - Split Dynamic into Open/Preamble - Add Background (previously was just Unknown) - Soon: stdlib index
This requires extending to 16 bits, which fits within the padding of Symbol. Unfortunately we're also *serializing* SymbolOrigin as a fixed 8 bits.
Stop serializing SymbolOrigin: - conceptually, the source is whoever indexes or *deserializes* a symbol - deserialization takes SymbolOrigin as a parameter and stamps it on each sym - this is a breaking format change
Differential Revision: https://reviews.llvm.org/D115243
show more ...
|
Revision tags: llvmorg-13.0.1-rc1, llvmorg-13.0.0, llvmorg-13.0.0-rc4, llvmorg-13.0.0-rc3, llvmorg-13.0.0-rc2 |
|
#
4ad9ec8a |
| 05-Aug-2021 |
Sam McCall <sam.mccall@gmail.com> |
[clangd] Rename Features.h -> Feature.h to avoid confilct with libstdc++
Fixes https://github.com/clangd/clangd/issues/835
Differential Revision: https://reviews.llvm.org/D107624
|
Revision tags: llvmorg-13.0.0-rc1, llvmorg-14-init, llvmorg-12.0.1, llvmorg-12.0.1-rc4, llvmorg-12.0.1-rc3, llvmorg-12.0.1-rc2, llvmorg-12.0.1-rc1 |
|
#
0c96a92d |
| 15-Apr-2021 |
Sam McCall <sam.mccall@gmail.com> |
[clangd] Log feature configuration (linux+asan+grpc) of the clangd build
Included in logs, --version, remote index queries, and LSP serverInfo.
Differential Revision: https://reviews.llvm.org/D1005
[clangd] Log feature configuration (linux+asan+grpc) of the clangd build
Included in logs, --version, remote index queries, and LSP serverInfo.
Differential Revision: https://reviews.llvm.org/D100553
show more ...
|
#
8f2bf93b |
| 24-Jun-2021 |
Kadir Cetinkaya <kadircet@google.com> |
[clangd] Introduce a log-prefix flag to remote-index-server
Differential Revision: https://reviews.llvm.org/D104843
|
#
3aa6ca8d |
| 24-Jun-2021 |
Kadir Cetinkaya <kadircet@google.com> |
[clangd] Call malloc_trim in clangd-index-server periodically
Differential Revision: https://reviews.llvm.org/D104841
|
#
daf3cb3b |
| 05-May-2021 |
Kadir Cetinkaya <kadircet@google.com> |
[clangd][index-sever] Limit results in repsonse
This is to prevent server from being DOS'd by possible malicious parties issuing requests that can yield huge responses.
One possible drawback is on
[clangd][index-sever] Limit results in repsonse
This is to prevent server from being DOS'd by possible malicious parties issuing requests that can yield huge responses.
One possible drawback is on rename workflow. As it really requests all occurences, but it has an internal limit on 50 files currently. We are putting the limit on 10000 elements per response So for rename to regress one should have 10k refs to a symbol in less than 50 files. This seems unlikely and we fix it if there are complaints by giving up on the response based on the number of files covered instead.
Differential Revision: https://reviews.llvm.org/D101914
show more ...
|
Revision tags: llvmorg-12.0.0, llvmorg-12.0.0-rc5, llvmorg-12.0.0-rc4 |
|
#
524fe515 |
| 16-Mar-2021 |
Kirill Bobyrev <kbobyrev@google.com> |
[clangd] Add basic monitoring info request for remote index server
This allows requesting information about the server uptime and start time. This is the first patch in a series of monitoring change
[clangd] Add basic monitoring info request for remote index server
This allows requesting information about the server uptime and start time. This is the first patch in a series of monitoring changes, hence it's not immediately useful. Next step is propagating the index freshness information and then probably loading metadata into the index server.
The way to test new behaviour through command line:
``` $ grpc_cli call localhost:50051 Monitor/MonitoringInfo '' connecting to localhost:50051 uptime_seconds: 42 index_age_seconds: 609568 Rpc succeeded with OK status ```
Reviewed By: kadircet
Differential Revision: https://reviews.llvm.org/D98246
show more ...
|
#
9bcf0eff |
| 15-Mar-2021 |
Kirill Bobyrev <kbobyrev@google.com> |
[clangd] Optionally add reflection for clangd-index-server
This was originally landed without the optional part and reverted later:
https://github.com/llvm/llvm-project/commit/8080ea4c4b8c456c72c61
[clangd] Optionally add reflection for clangd-index-server
This was originally landed without the optional part and reverted later:
https://github.com/llvm/llvm-project/commit/8080ea4c4b8c456c72c617587cc32f174b3105c1
Reviewed By: kadircet
Differential Revision: https://reviews.llvm.org/D98404
show more ...
|
#
99b01cf2 |
| 10-Mar-2021 |
Kadir Cetinkaya <kadircet@google.com> |
Revert "[clangd] Enable reflection for clangd-index-server"
This reverts commit 8080ea4c4b8c456c72c617587cc32f174b3105c1.
As discussed offline we should only do that for debug builds.
|
#
8080ea4c |
| 10-Mar-2021 |
Kirill Bobyrev <kbobyrev@google.com> |
[clangd] Enable reflection for clangd-index-server
This allows sending requests through CLI and more debugging opportunities. Example:
```bash $ grpc_cli ls localhost:50051 clang.clangd.remote.v1.S
[clangd] Enable reflection for clangd-index-server
This allows sending requests through CLI and more debugging opportunities. Example:
```bash $ grpc_cli ls localhost:50051 clang.clangd.remote.v1.SymbolIndex grpc.reflection.v1alpha.ServerReflection grpc.health.v1.Health ```
show more ...
|
Revision tags: llvmorg-12.0.0-rc3, llvmorg-12.0.0-rc2 |
|
#
1a5dfb7d |
| 22-Feb-2021 |
Kadir Cetinkaya <kadircet@google.com> |
[clangd][remote] Add flag to set idletimeout
By default gRPC has no idletimeout and some firewalls might drop idle connections after a certain period. This results in idle clients shouting into void
[clangd][remote] Add flag to set idletimeout
By default gRPC has no idletimeout and some firewalls might drop idle connections after a certain period. This results in idle clients shouting into void until server resets the connection.
Differential Revision: https://reviews.llvm.org/D97536
show more ...
|
Revision tags: llvmorg-11.1.0, llvmorg-11.1.0-rc3, llvmorg-12.0.0-rc1, llvmorg-13-init, llvmorg-11.1.0-rc2, llvmorg-11.1.0-rc1, llvmorg-11.0.1, llvmorg-11.0.1-rc2, llvmorg-11.0.1-rc1 |
|
#
686d8a09 |
| 02-Nov-2020 |
Sam McCall <sam.mccall@gmail.com> |
[clangd] Add index server request logging
- Add verbose logging of payloads - Add public logging of request summaries - fix non-logging of messages in request scopes (oops!) - add test for public/no
[clangd] Add index server request logging
- Add verbose logging of payloads - Add public logging of request summaries - fix non-logging of messages in request scopes (oops!) - add test for public/non-public logging, extending pipeline_helper a bit.
We've accumulated quite a lot of duplication in the request handlers by now. I should factor that out, but not in this patch...
Differential Revision: https://reviews.llvm.org/D90654
show more ...
|
#
1bbf87e2 |
| 09-Nov-2020 |
Aleksandr Platonov <platonov.aleksandr@huawei.com> |
[clangd][remote] Check an index file correctly
There is not reason to check `std::make_unique<...>(..)` return value, but `clangd::clang::loadIndex()` returns `nullptr` if an index file could not be
[clangd][remote] Check an index file correctly
There is not reason to check `std::make_unique<...>(..)` return value, but `clangd::clang::loadIndex()` returns `nullptr` if an index file could not be loaded (e.g. incorrect version).
Reviewed By: kadircet
Differential Revision: https://reviews.llvm.org/D91049
show more ...
|
#
65eaec9b |
| 31-Oct-2020 |
Sam McCall <sam.mccall@gmail.com> |
[clangd] Add -log=public to redact all request info from index server logs
The index server has access to potentially-sensitive information, e.g. a sequence of fuzzyFind requests reveals details abo
[clangd] Add -log=public to redact all request info from index server logs
The index server has access to potentially-sensitive information, e.g. a sequence of fuzzyFind requests reveals details about code completions in the editor which in turn reveals details about the code being edited. This information is necessary to provide the service, and our intention[1] is it should never be retained beyond the scope of the request (e.g. not logged).
At the same time, some log messages should be exposed: - server startup/index reloads etc that don't pertain to a user request - basic request logs (method, latency, #results, error code) for monitoring - errors while handling requests, without request-specific data The -log=public design accommodates these by allowing three types of logs: - those not associated with any user RPC request (via context-propagation) - those explicitly tagged as [public] in the log line - logging of format strings only, with no interpolated data (error level only)
[1] Specifically: Google is likely to run public instances of this server for LLVM and potentially other projects, they will run in this configuration. The details agreed in a Google-internal privacy review. As clangd developers, we'd encourage others to use this configuration for public instances too.
Differential Revision: https://reviews.llvm.org/D90526
show more ...
|
#
76a168bc |
| 02-Nov-2020 |
Kirill Bobyrev <kbobyrev@google.com> |
[clangd] Add lit tests for remote index
Reviewed By: kadircet
Differential Revision: https://reviews.llvm.org/D90291
|