[PATCH] D31887: [clangd] Add documentation page

2017-04-11 Thread Marc-Andre Laperle via Phabricator via cfe-commits
malaperle-ericsson added a comment. Sorry about all the typos. I have now installed a spell checked in VS Code :) https://reviews.llvm.org/D31887 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/

[PATCH] D31887: [clangd] Add documentation page

2017-04-12 Thread Marc-Andre Laperle via Phabricator via cfe-commits
malaperle-ericsson updated this revision to Diff 95078. malaperle-ericsson added a comment. Fix mention of "extra Clang tools" https://reviews.llvm.org/D31887 Files: docs/clangd.rst docs/index.rst Index: docs/index.rst === ---

[PATCH] D31992: [clangd] Escape only necessary characters in JSON output

2017-04-13 Thread Marc-Andre Laperle via Phabricator via cfe-commits
malaperle-ericsson added a comment. In https://reviews.llvm.org/D31992#725866, @krasimir wrote: > Seems that we're starting to hit some YAML/JSON mismatches, or is it that > your YAML string support is lacking? I don't think so. It seems like JSON and YAML are not completely aligned on escape

[PATCH] D31992: [clangd] Escape only necessary characters in JSON output

2017-04-13 Thread Marc-Andre Laperle via Phabricator via cfe-commits
malaperle-ericsson added a comment. In https://reviews.llvm.org/D31992#725913, @joerg wrote: > I'm strongly against this patch. Can you give an actual test case for the > problematic behavior? Sure I can add a test. If you meant more real work scenario, you can juste type "é" in VS Code and i

[PATCH] D31992: [clangd] Escape only necessary characters in JSON output

2017-04-16 Thread Marc-Andre Laperle via Phabricator via cfe-commits
malaperle-ericsson added a comment. In https://reviews.llvm.org/D31992#726447, @joerg wrote: > let's escape ... all the known ASCII control characters, Do you mean encode all of them with \u or keep the two characters representation for those that exist? I think \n is nicer than \u000A and i

[PATCH] D31992: [clangd] Escape only necessary characters in JSON output

2017-04-16 Thread Marc-Andre Laperle via Phabricator via cfe-commits
malaperle-ericsson updated this revision to Diff 95414. malaperle-ericsson added a comment. Handle other control characters and add test https://reviews.llvm.org/D31992 Files: clangd/ASTManager.cpp clangd/Protocol.cpp clangd/Protocol.h clangd/ProtocolHandlers.cpp test/clangd/encoding.

[PATCH] D31992: [clangd] Escape only necessary characters in JSON output

2017-04-16 Thread Marc-Andre Laperle via Phabricator via cfe-commits
malaperle-ericsson added a comment. Once the use of "two characters representation" is clarified, I will update the patch again. https://reviews.llvm.org/D31992 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/m

[PATCH] D31887: [clangd] Add documentation page

2017-04-16 Thread Marc-Andre Laperle via Phabricator via cfe-commits
malaperle-ericsson updated this revision to Diff 95416. malaperle-ericsson removed a subscriber: Sarcasm. malaperle-ericsson added a comment. Update with comments (extra backticks, etc) https://reviews.llvm.org/D31887 Files: docs/clangd.rst docs/index.rst Index: docs/index.rst

[PATCH] D31992: [clangd] Escape only necessary characters in JSON output

2017-04-16 Thread Marc-Andre Laperle via Phabricator via cfe-commits
malaperle-ericsson added a comment. In https://reviews.llvm.org/D31992#728036, @joerg wrote: > Just to avoid any confusion: this should be the generic YAML escape routine > in llvm/lib/Support, i.e. IMO we don't want to have separate YAML and JSON > escape routines. > Effective, change YAMLPar

[PATCH] D34269: [clangd] Add "Go to Declaration" functionality

2017-06-28 Thread Marc-Andre Laperle via Phabricator via cfe-commits
malaperle-ericsson updated this revision to Diff 104413. malaperle-ericsson added a comment. Remove use of unique_ptr https://reviews.llvm.org/D34269 Files: clangd/CMakeLists.txt clangd/ClangdLSPServer.cpp clangd/ClangdServer.cpp clangd/ClangdServer.h clangd/ClangdUnit.cpp clangd/Cl

[PATCH] D35215: [clangd] Fix Go to Definition not working in VSCode extension

2017-07-11 Thread Marc-Andre Laperle via Phabricator via cfe-commits
malaperle added a comment. In the other review: "The tool is fine with spaces encoded as %20 by the way." If that's true, wouldn't that mean the other review is the way to go? Repository: rL LLVM https://reviews.llvm.org/D35215 ___ cfe-commits m

[PATCH] D35406: [clangd] Replace ASTUnit with manual AST management.

2017-07-14 Thread Marc-Andre Laperle via Phabricator via cfe-commits
malaperle added a comment. Could you explain what the goal of this change is? It would help understand how it will impact the indexing work I am currently doing. https://reviews.llvm.org/D35406 ___ cfe-commits mailing list cfe-commits@lists.llvm.or

[PATCH] D35406: [clangd] Replace ASTUnit with manual AST management.

2017-07-14 Thread Marc-Andre Laperle via Phabricator via cfe-commits
malaperle added a comment. In https://reviews.llvm.org/D35406#809609, @ilya-biryukov wrote: > The idea is to allows us changing the way we manage/rebuild PCHs and ASTs. > ASTUnit is used for many things and has a fairly complicated and verbose > interface and does a lot of mutations all other t

[PATCH] D35894: Code hover for Clangd

2017-07-26 Thread Marc-Andre Laperle via Phabricator via cfe-commits
malaperle requested changes to this revision. malaperle added a comment. This revision now requires changes to proceed. Normally we put [clangd] in the title. Comment at: clangd/ClangdLSPServer.cpp:11 #include "ClangdLSPServer.h" +#include "clang/Basic/SourceManager.h" #inclu

[PATCH] D30476: [clangd] Add a toy Eclipse integration for development purposes

2017-03-01 Thread Marc-Andre Laperle via Phabricator via cfe-commits
malaperle-ericsson added a comment. To be honest, I don't think this needs to be merged but it makes sense to put it somewhere people can try it. Repository: rL LLVM https://reviews.llvm.org/D30476 ___ cfe-commits mailing list cfe-commits@lists.

[PATCH] D30476: [clangd] Add a toy Eclipse integration for development purposes

2017-03-06 Thread Marc-Andre Laperle via Phabricator via cfe-commits
malaperle-ericsson updated this revision to Diff 90774. malaperle-ericsson added a comment. [clangd] Fix not being able to attach a debugger on macOS Clangd is often waiting for input on getline as it awaits requests. If the getline is interrupted, it causes the system call (read) to fail and the

[PATCH] D30476: [clangd] Add a toy Eclipse integration for development purposes

2017-03-06 Thread Marc-Andre Laperle via Phabricator via cfe-commits
malaperle-ericsson added a comment. Please disregard the last diff, I misused arc. https://reviews.llvm.org/D30476 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D30476: [clangd] Add a toy Eclipse integration for development purposes

2017-03-06 Thread Marc-Andre Laperle via Phabricator via cfe-commits
malaperle-ericsson updated this revision to Diff 90776. https://reviews.llvm.org/D30476 Files: clangd/clients/lsp4e-cpp/.gitignore clangd/clients/lsp4e-cpp/.mvn/extensions.xml clangd/clients/lsp4e-cpp/.travis.yml clangd/clients/lsp4e-cpp/LICENSE clangd/clients/lsp4e-cpp/README.md clan

[PATCH] D30675: [clangd] Fix not being able to attach a debugger on macOS

2017-03-08 Thread Marc-Andre Laperle via Phabricator via cfe-commits
malaperle-ericsson added a comment. In https://reviews.llvm.org/D30675#695370, @bkramer wrote: > Generally makes sense. Is there any reason for the #ifdef? Windows has errno > and EINTR too. I have no reasonable expectation that getline will produce a EINTR on Windows. But perhaps there's no

[PATCH] D30675: [clangd] Fix not being able to attach a debugger on macOS

2017-03-09 Thread Marc-Andre Laperle via Phabricator via cfe-commits
malaperle-ericsson updated this revision to Diff 91246. malaperle-ericsson added a comment. Remove ifdexf https://reviews.llvm.org/D30675 Files: clangd/ClangDMain.cpp Index: clangd/ClangDMain.cpp === --- clangd/ClangDMain.cpp +

[PATCH] D30675: [clangd] Fix not being able to attach a debugger on macOS

2017-03-14 Thread Marc-Andre Laperle via Phabricator via cfe-commits
malaperle-ericsson added a comment. Ping :) https://reviews.llvm.org/D30675 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D32234: [Clangd] Support Authority-less URIs

2017-04-19 Thread Marc-Andre Laperle via Phabricator via cfe-commits
malaperle-ericsson updated this revision to Diff 95809. malaperle-ericsson added a comment. Add test https://reviews.llvm.org/D32234 Files: clangd/Protocol.cpp test/clangd/completion.test Index: test/clangd/completion.test ==

[PATCH] D32238: [Clangd] Failed to decode params using 1.x-compatible request message

2017-04-19 Thread Marc-Andre Laperle via Phabricator via cfe-commits
malaperle-ericsson updated this revision to Diff 95811. malaperle-ericsson added a comment. Add test https://reviews.llvm.org/D32238 Files: clangd/Protocol.cpp test/clangd/completion.test Index: test/clangd/completion.test ==

[PATCH] D32238: [Clangd] Failed to decode params using 1.x-compatible request message

2017-04-21 Thread Marc-Andre Laperle via Phabricator via cfe-commits
malaperle-ericsson added a comment. Could you commit it? I don't have commit access :) Thanks! https://reviews.llvm.org/D32238 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D32234: [Clangd] Support Authority-less URIs

2017-04-21 Thread Marc-Andre Laperle via Phabricator via cfe-commits
malaperle-ericsson added a comment. Benjamin, I added a test, do you still think it's OK? Thanks! https://reviews.llvm.org/D32234 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D32234: [Clangd] Support Authority-less URIs

2017-04-21 Thread Marc-Andre Laperle via Phabricator via cfe-commits
malaperle-ericsson added a comment. Thanks a lot! Repository: rL LLVM https://reviews.llvm.org/D32234 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D31887: [clangd] Add documentation page

2017-04-27 Thread Marc-Andre Laperle via Phabricator via cfe-commits
malaperle-ericsson added a comment. Ping. Any more objections? https://reviews.llvm.org/D31887 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D31887: [clangd] Add documentation page

2017-04-28 Thread Marc-Andre Laperle via Phabricator via cfe-commits
malaperle-ericsson added a comment. Would it be possible to commit this? I do not have commit rights. Thanks! https://reviews.llvm.org/D31887 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-

[PATCH] D31887: [clangd] Add documentation page

2017-04-28 Thread Marc-Andre Laperle via Phabricator via cfe-commits
malaperle-ericsson added a comment. In https://reviews.llvm.org/D31887#740747, @Prazek wrote: > In https://reviews.llvm.org/D31887#740727, @malaperle-ericsson wrote: > > > Would it be possible to commit this? I do not have commit rights. Thanks! > > > Why won't you get commit right? You will prob

<    1   2   3   4