[clang-tools-extra] r314309 - [clangd] Handle InitializeParams and store rootUri

2017-09-27 Thread Marc-Andre Laperle via cfe-commits
Author: malaperle Date: Wed Sep 27 08:31:17 2017 New Revision: 314309 URL: http://llvm.org/viewvc/llvm-project?rev=314309&view=rev Log: [clangd] Handle InitializeParams and store rootUri Summary: The root Uri is the workspace location and will be useful in the context of indexing. We could also a

[clang-tools-extra] r314377 - [clangd] LSP extension to switch between source/header file

2017-09-27 Thread Marc-Andre Laperle via cfe-commits
Author: malaperle Date: Wed Sep 27 20:14:40 2017 New Revision: 314377 URL: http://llvm.org/viewvc/llvm-project?rev=314377&view=rev Log: [clangd] LSP extension to switch between source/header file Summary: Small extension to LSP to allow clients to use clangd to switch between C header files and

[clang-tools-extra] r314693 - [clangd] Handle workspace/didChangeWatchedFiles

2017-10-02 Thread Marc-Andre Laperle via cfe-commits
Author: malaperle Date: Mon Oct 2 11:00:37 2017 New Revision: 314693 URL: http://llvm.org/viewvc/llvm-project?rev=314693&view=rev Log: [clangd] Handle workspace/didChangeWatchedFiles Summary: The client can send notifications when it detects watched files have changed. This patch adds the protoc

[clang-tools-extra] r325395 - [clangd] Implement textDocument/hover

2018-02-16 Thread Marc-Andre Laperle via cfe-commits
Author: malaperle Date: Fri Feb 16 13:38:15 2018 New Revision: 325395 URL: http://llvm.org/viewvc/llvm-project?rev=325395&view=rev Log: [clangd] Implement textDocument/hover Summary: Implemention of textDocument/hover as described in LSP definition. This patch adds a basic Hover implementation.

[clang-tools-extra] r325409 - [clangd] Rename some protocol field to lower case

2018-02-16 Thread Marc-Andre Laperle via cfe-commits
Author: malaperle Date: Fri Feb 16 15:12:26 2018 New Revision: 325409 URL: http://llvm.org/viewvc/llvm-project?rev=325409&view=rev Log: [clangd] Rename some protocol field to lower case Summary: Also fixes a GCC compilation error. Signed-off-by: Marc-Andre Laperle Subscribers: klimek, ilya-bir

[clang-tools-extra] r325662 - [clangd] #include statements support for Open definition

2018-02-20 Thread Marc-Andre Laperle via cfe-commits
Author: malaperle Date: Tue Feb 20 18:39:08 2018 New Revision: 325662 URL: http://llvm.org/viewvc/llvm-project?rev=325662&view=rev Log: [clangd] #include statements support for Open definition Summary: ctrl-clicking on #include statements now opens the file being pointed by that statement. Revi

r305588 - [index] Fix typo: inferface -> interface

2017-06-16 Thread Marc-Andre Laperle via cfe-commits
Author: malaperle Date: Fri Jun 16 15:58:26 2017 New Revision: 305588 URL: http://llvm.org/viewvc/llvm-project?rev=305588&view=rev Log: [index] Fix typo: inferface -> interface Reviewers: arphaman Reviewed By: arphaman Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D3

[clang-tools-extra] r320988 - [clangd] Update documentation page with new features, instructions

2017-12-18 Thread Marc-Andre Laperle via cfe-commits
Author: malaperle Date: Mon Dec 18 06:59:01 2017 New Revision: 320988 URL: http://llvm.org/viewvc/llvm-project?rev=320988&view=rev Log: [clangd] Update documentation page with new features, instructions Summary: - Some features were implemented so mark them as such. - Add installation instruction

[clang-tools-extra] r334017 - [clangd] Add "member" symbols to the index

2018-06-05 Thread Marc-Andre Laperle via cfe-commits
Author: malaperle Date: Tue Jun 5 07:01:40 2018 New Revision: 334017 URL: http://llvm.org/viewvc/llvm-project?rev=334017&view=rev Log: [clangd] Add "member" symbols to the index Summary: This adds more symbols to the index: - member variables and functions - enum constants in scoped enums The c

[clang-tools-extra] r334018 - [clangd] Remove unused variables

2018-06-05 Thread Marc-Andre Laperle via cfe-commits
Author: malaperle Date: Tue Jun 5 07:07:45 2018 New Revision: 334018 URL: http://llvm.org/viewvc/llvm-project?rev=334018&view=rev Log: [clangd] Remove unused variables Summary: Signed-off-by: Marc-Andre Laperle Subscribers: klimek, ilya-biryukov, ioeric, MaskRay, jkorous, cfe-commits Differen

[clang-tools-extra] r347119 - [clangd] Fix crash hovering on non-decltype trailing return

2018-11-16 Thread Marc-Andre Laperle via cfe-commits
Author: malaperle Date: Fri Nov 16 16:41:14 2018 New Revision: 347119 URL: http://llvm.org/viewvc/llvm-project?rev=347119&view=rev Log: [clangd] Fix crash hovering on non-decltype trailing return Summary: More specifically, hovering on "auto" in auto main() -> int { return 0; } Signed-off-by

[clang-tools-extra] r347509 - [clangd] Add 'Switch header/source' command in clangd-vscode

2018-11-23 Thread Marc-Andre Laperle via cfe-commits
Author: malaperle Date: Fri Nov 23 18:53:17 2018 New Revision: 347509 URL: http://llvm.org/viewvc/llvm-project?rev=347509&view=rev Log: [clangd] Add 'Switch header/source' command in clangd-vscode Summary: Alt+o is used on Windows/Linux and Option+Cmd+o on macOS. Signed-off-by: Marc-Andre Laperl

[clang-tools-extra] r354761 - [clangd] Enhance macro hover to see full definition

2019-02-24 Thread Marc-Andre Laperle via cfe-commits
Author: malaperle Date: Sun Feb 24 15:47:03 2019 New Revision: 354761 URL: http://llvm.org/viewvc/llvm-project?rev=354761&view=rev Log: [clangd] Enhance macro hover to see full definition Summary: Signed-off-by: Marc-Andre Laperle Reviewers: simark, ilya-biryukov, sammccall, ioeric, hokein Rev

[clang-tools-extra] r313536 - [clangd] Fix codeAction not decoded properly when sent from some clients

2017-09-18 Thread Marc-Andre Laperle via cfe-commits
Author: malaperle Date: Mon Sep 18 08:02:59 2017 New Revision: 313536 URL: http://llvm.org/viewvc/llvm-project?rev=313536&view=rev Log: [clangd] Fix codeAction not decoded properly when sent from some clients Summary: Fix for bug https://bugs.llvm.org/show_bug.cgi?id=34559 Also log unknown fields

[clang-tools-extra] r330637 - [clangd] Implementation of workspace/symbol request

2018-04-23 Thread Marc-Andre Laperle via cfe-commits
Author: malaperle Date: Mon Apr 23 13:00:52 2018 New Revision: 330637 URL: http://llvm.org/viewvc/llvm-project?rev=330637&view=rev Log: [clangd] Implementation of workspace/symbol request Summary: This is a basic implementation of the "workspace/symbol" request which is used to find symbols by a

[clang-tools-extra] r335624 - [clangd] Simplify matches in FindSymbols tests

2018-06-26 Thread Marc-Andre Laperle via cfe-commits
Author: malaperle Date: Tue Jun 26 09:57:44 2018 New Revision: 335624 URL: http://llvm.org/viewvc/llvm-project?rev=335624&view=rev Log: [clangd] Simplify matches in FindSymbols tests Summary: Instead of checking symbol name and container (scope) separately, check the qualified name instead. This

[clang-tools-extra] r336119 - [clangd] Implement hover for "auto" and "decltype"

2018-07-02 Thread Marc-Andre Laperle via cfe-commits
Author: malaperle Date: Mon Jul 2 09:28:34 2018 New Revision: 336119 URL: http://llvm.org/viewvc/llvm-project?rev=336119&view=rev Log: [clangd] Implement hover for "auto" and "decltype" Summary: This allows hovering on keywords that refer to deduced types. This should cover most useful cases. No

[clang-tools-extra] r336386 - [clangd] Implementation of textDocument/documentSymbol

2018-07-05 Thread Marc-Andre Laperle via cfe-commits
Author: malaperle Date: Thu Jul 5 12:35:01 2018 New Revision: 336386 URL: http://llvm.org/viewvc/llvm-project?rev=336386&view=rev Log: [clangd] Implementation of textDocument/documentSymbol Summary: An AST-based approach is used to retrieve the document symbols rather than an in-memory index que

[clang-tools-extra] r336550 - [clangd] Mark "Document Symbols" as implemented in the docs

2018-07-09 Thread Marc-Andre Laperle via cfe-commits
Author: malaperle Date: Mon Jul 9 07:34:07 2018 New Revision: 336550 URL: http://llvm.org/viewvc/llvm-project?rev=336550&view=rev Log: [clangd] Mark "Document Symbols" as implemented in the docs Summary: Signed-off-by: Marc-Andre Laperle Subscribers: ilya-biryukov, ioeric, MaskRay, jkorous, cf

[clang-tools-extra] r328792 - [clangd] Mark "Source Hover" as implemented in the docs

2018-03-29 Thread Marc-Andre Laperle via cfe-commits
Author: malaperle Date: Thu Mar 29 07:49:21 2018 New Revision: 328792 URL: http://llvm.org/viewvc/llvm-project?rev=328792&view=rev Log: [clangd] Mark "Source Hover" as implemented in the docs Summary: Signed-off-by: Marc-Andre Laperle Reviewers: simark Reviewed By: simark Subscribers: klimek,

[clang-tools-extra] r329574 - [clangd-vscode] Update VScode dependencies

2018-04-09 Thread Marc-Andre Laperle via cfe-commits
Author: malaperle Date: Mon Apr 9 07:32:12 2018 New Revision: 329574 URL: http://llvm.org/viewvc/llvm-project?rev=329574&view=rev Log: [clangd-vscode] Update VScode dependencies Summary: This allows the extension to work with LSP 3.0 and is useful for testing. Signed-off-by: Marc-Andre Laperle

[clang-tools-extra] r329725 - [clangd] Use operator<< to prevent printers issues in Gtest

2018-04-10 Thread Marc-Andre Laperle via cfe-commits
Author: malaperle Date: Tue Apr 10 10:34:46 2018 New Revision: 329725 URL: http://llvm.org/viewvc/llvm-project?rev=329725&view=rev Log: [clangd] Use operator<< to prevent printers issues in Gtest Summary: It is possible that there will be two different instantiations of the printer template for a

[clang-tools-extra] r317322 - [clangd] Handle clangd.applyFix server-side

2017-11-03 Thread Marc-Andre Laperle via cfe-commits
Author: malaperle Date: Fri Nov 3 06:39:15 2017 New Revision: 317322 URL: http://llvm.org/viewvc/llvm-project?rev=317322&view=rev Log: [clangd] Handle clangd.applyFix server-side Summary: When the user selects a fix-it (or any code action with commands), it is possible to let the client forward

[clang-tools-extra] r317585 - [clangd] Fix opening declarations located in non-preamble inclusion

2017-11-07 Thread Marc-Andre Laperle via cfe-commits
Author: malaperle Date: Tue Nov 7 08:16:45 2017 New Revision: 317585 URL: http://llvm.org/viewvc/llvm-project?rev=317585&view=rev Log: [clangd] Fix opening declarations located in non-preamble inclusion Summary: When an inclusion is not processed as part of the preamble, its path is not made int

[clang-tools-extra] r306558 - [clangd] Add "Go to Declaration" functionality

2017-06-28 Thread Marc-Andre Laperle via cfe-commits
Author: malaperle Date: Wed Jun 28 09:12:10 2017 New Revision: 306558 URL: http://llvm.org/viewvc/llvm-project?rev=306558&view=rev Log: [clangd] Add "Go to Declaration" functionality Summary: This change allows to navigate to most identifiers' declarations in code. This is a first step towards i

[clang-tools-extra] r307715 - [clangd] Fix Go to Definition not working in VSCode extension

2017-07-11 Thread Marc-Andre Laperle via cfe-commits
Author: malaperle Date: Tue Jul 11 14:26:18 2017 New Revision: 307715 URL: http://llvm.org/viewvc/llvm-project?rev=307715&view=rev Log: [clangd] Fix Go to Definition not working in VSCode extension Summary: The URI conversion logic was returning 'undefined' when going from server to VSCode which

[clang-tools-extra] r302191 - [clangd] Add documentation page

2017-05-04 Thread Marc-Andre Laperle via cfe-commits
Author: malaperle Date: Thu May 4 14:57:53 2017 New Revision: 302191 URL: http://llvm.org/viewvc/llvm-project?rev=302191&view=rev Log: [clangd] Add documentation page Summary: Add a simple documentation page for Clangd. This will be useful for interested users and contributors to get basic info