[clang-tools-extra] r324732 - [clangd] Fix crash when CompilerInvocation can't be created.

2018-02-09 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Fri Feb 9 05:51:57 2018 New Revision: 324732 URL: http://llvm.org/viewvc/llvm-project?rev=324732&view=rev Log: [clangd] Fix crash when CompilerInvocation can't be created. Summary: This can happen if the CompileCommand provided by compilation database is malformed. Revie

[clang-tools-extra] r324736 - [clangd] Fix crash in tests in debug mode.

2018-02-09 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Fri Feb 9 07:11:07 2018 New Revision: 324736 URL: http://llvm.org/viewvc/llvm-project?rev=324736&view=rev Log: [clangd] Fix crash in tests in debug mode. Caused by the lack of checking of an Expected value in the previous commit. Modified: clang-tools-extra/trunk/uni

[clang-tools-extra] r324883 - [clangd] Remove codeComplete that returns std::future<>

2018-02-12 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Mon Feb 12 03:37:28 2018 New Revision: 324883 URL: http://llvm.org/viewvc/llvm-project?rev=324883&view=rev Log: [clangd] Remove codeComplete that returns std::future<> Summary: It was deprecated and callback version and is used everywhere. Only changes to the testing code

[clang-tools-extra] r324888 - [clangd] Log all ignored diagnostics.

2018-02-12 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Mon Feb 12 04:48:51 2018 New Revision: 324888 URL: http://llvm.org/viewvc/llvm-project?rev=324888&view=rev Log: [clangd] Log all ignored diagnostics. Summary: To aid debugging failures and crashes. Only part of ignored diagnostics was logged before, now we log all of them.

[clang-tools-extra] r325021 - [clangd] Remove the RealFS layer from test VFS. NFC.

2018-02-13 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Tue Feb 13 09:08:13 2018 New Revision: 325021 URL: http://llvm.org/viewvc/llvm-project?rev=325021&view=rev Log: [clangd] Remove the RealFS layer from test VFS. NFC. It was required before because preambles could only be created on disk. All tests use in-memory preambles no

[clang-tools-extra] r325024 - [clangd] Log if CWD could not be changed. NFC.

2018-02-13 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Tue Feb 13 09:15:06 2018 New Revision: 325024 URL: http://llvm.org/viewvc/llvm-project?rev=325024&view=rev Log: [clangd] Log if CWD could not be changed. NFC. Modified: clang-tools-extra/trunk/clangd/ClangdUnit.cpp clang-tools-extra/trunk/clangd/CodeComplete.cpp M

[clang-tools-extra] r325029 - [clangd] Fixed findDefinitions to always return absolute paths.

2018-02-13 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Tue Feb 13 09:47:16 2018 New Revision: 325029 URL: http://llvm.org/viewvc/llvm-project?rev=325029&view=rev Log: [clangd] Fixed findDefinitions to always return absolute paths. Relative paths could be returned in some cases, e.g. when relative path is used in compilation ar

Re: [clang-tools-extra] r325097 - [clangd] Configure clangd tracing with CLANGD_TRACE env instead of -trace flag

2018-02-14 Thread Ilya Biryukov via cfe-commits
Personally, I'm not a big fan of environment variables. There are harder to discover than command-line flags and I still have to change editor config often to switch between different builds of clangd. I know it may sound weird, but maybe we could have both the flag and the environment variables? (

[clang-tools-extra] r325113 - [clangd] Explicitly initialize all primitive fields in Protocol.h

2018-02-14 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Wed Feb 14 02:52:04 2018 New Revision: 325113 URL: http://llvm.org/viewvc/llvm-project?rev=325113&view=rev Log: [clangd] Explicitly initialize all primitive fields in Protocol.h Summary: Some of the existing structs had primimtive fields that were not explicitly initialize

[clang-tools-extra] r325132 - [clangd] Fix data race in ClangdThreadingTest.StressTest

2018-02-14 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Wed Feb 14 07:19:20 2018 New Revision: 325132 URL: http://llvm.org/viewvc/llvm-project?rev=325132&view=rev Log: [clangd] Fix data race in ClangdThreadingTest.StressTest Prior to this patch, same instance of VFS was shared for concurrent processing of the files in ClangdThr

Re: [clang-tools-extra] r325097 - [clangd] Configure clangd tracing with CLANGD_TRACE env instead of -trace flag

2018-02-15 Thread Ilya Biryukov via cfe-commits
On Thu, Feb 15, 2018 at 8:29 AM Sam McCall wrote: > On Wed, Feb 14, 2018 at 10:45 AM Ilya Biryukov > wrote: > >> Personally, I'm not a big fan of environment variables. There are harder >> to discover than command-line flags and I still have to change editor >> config often to switch between dif

[clang-tools-extra] r325233 - [clangd] Make functions of ClangdServer callback-based

2018-02-15 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Thu Feb 15 05:15:47 2018 New Revision: 325233 URL: http://llvm.org/viewvc/llvm-project?rev=325233&view=rev Log: [clangd] Make functions of ClangdServer callback-based Summary: As a consequence, all LSP operations are now handled asynchronously, i.e. they never block the ma

[clang-tools-extra] r325242 - [clangd] Enable snippet completion based on client capabilities.

2018-02-15 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Thu Feb 15 06:32:57 2018 New Revision: 325242 URL: http://llvm.org/viewvc/llvm-project?rev=325242&view=rev Log: [clangd] Enable snippet completion based on client capabilities. Summary: And remove -enable-snippets flag. Reviewers: hokein, ioeric, sammccall Reviewed By: i

[clang-tools-extra] r325254 - [clangd] Fixed compilation with MVSC.

2018-02-15 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Thu Feb 15 07:41:49 2018 New Revision: 325254 URL: http://llvm.org/viewvc/llvm-project?rev=325254&view=rev Log: [clangd] Fixed compilation with MVSC. Modified: clang-tools-extra/trunk/unittests/clangd/SyncAPI.cpp Modified: clang-tools-extra/trunk/unittests/clangd/Sync

Re: [PATCH] D43227: [clangd] Make functions of ClangdServer callback-based

2018-02-15 Thread Ilya Biryukov via cfe-commits
Sorry about that, fixed in r325254. I keep hitting this MSVC compilation error all the time. On Thu, Feb 15, 2018 at 4:26 PM Carlos Alberto Enciso via Phabricator < revi...@reviews.llvm.org> wrote: > CarlosAlbertoEnciso added a comment. > > Hi, > > It seems that your submission broke the Windows

[clang-tools-extra] r325260 - [clangd] Create trace::Span when running ASTCallback

2018-02-15 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Thu Feb 15 08:24:34 2018 New Revision: 325260 URL: http://llvm.org/viewvc/llvm-project?rev=325260&view=rev Log: [clangd] Create trace::Span when running ASTCallback Modified: clang-tools-extra/trunk/clangd/ClangdUnit.cpp Modified: clang-tools-extra/trunk/clangd/Clangd

[clang-tools-extra] r325337 - [clangd] Assert path is absolute when assigning to URIForFile.

2018-02-16 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Fri Feb 16 04:20:47 2018 New Revision: 325337 URL: http://llvm.org/viewvc/llvm-project?rev=325337&view=rev Log: [clangd] Assert path is absolute when assigning to URIForFile. Summary: The assertion will point directly to misbehaving code, so that debugging related problems

[clang-tools-extra] r325486 - [clangd] Mark non-changing fields of CppFile as const. NFC

2018-02-19 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Mon Feb 19 03:15:33 2018 New Revision: 325486 URL: http://llvm.org/viewvc/llvm-project?rev=325486&view=rev Log: [clangd] Mark non-changing fields of CppFile as const. NFC Modified: clang-tools-extra/trunk/clangd/ClangdUnit.h Modified: clang-tools-extra/trunk/clangd/Cl

r325490 - [CodeComplete] Add a helper to print CodeCompletionContext::Kind

2018-02-19 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Mon Feb 19 04:35:33 2018 New Revision: 325490 URL: http://llvm.org/viewvc/llvm-project?rev=325490&view=rev Log: [CodeComplete] Add a helper to print CodeCompletionContext::Kind Summary: Will be used in clangd. See D43377. Reviewers: sammccall Reviewed By: sammccall Subs

[clang-tools-extra] r325491 - [clangd] Attach more information about Sema completion to traces

2018-02-19 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Mon Feb 19 04:35:57 2018 New Revision: 325491 URL: http://llvm.org/viewvc/llvm-project?rev=325491&view=rev Log: [clangd] Attach more information about Sema completion to traces Reviewers: hokein, ioeric, sammccall Reviewed By: sammccall Subscribers: klimek, cfe-commits,

r325496 - [CodeComplete] Avoid name clashes of 'Kind' inside CodeCompletionContext. NFC

2018-02-19 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Mon Feb 19 05:53:49 2018 New Revision: 325496 URL: http://llvm.org/viewvc/llvm-project?rev=325496&view=rev Log: [CodeComplete] Avoid name clashes of 'Kind' inside CodeCompletionContext. NFC CodeCompletionContext had declarations of field and enum inside, both named 'Kind'

[clang-tools-extra] r325522 - [clangd] Do not reuse preamble if compile args changed

2018-02-19 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Mon Feb 19 10:18:49 2018 New Revision: 325522 URL: http://llvm.org/viewvc/llvm-project?rev=325522&view=rev Log: [clangd] Do not reuse preamble if compile args changed Reviewers: hokein, ioeric, sammccall, simark Reviewed By: simark Subscribers: klimek, jkorous-apple, cfe

r326083 - Explicitly initialize ForceEnableInt128 to avoid UB

2018-02-26 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Mon Feb 26 04:06:05 2018 New Revision: 326083 URL: http://llvm.org/viewvc/llvm-project?rev=326083&view=rev Log: Explicitly initialize ForceEnableInt128 to avoid UB This fixes an uninitialized value read found by msan. Modified: cfe/trunk/include/clang/Basic/TargetOpti

Re: r303630 - Allow to use vfs::FileSystem for file accesses inside ASTUnit.

2017-05-24 Thread Ilya Biryukov via cfe-commits
a testcase? > > On Tue, May 23, 2017 at 4:37 AM, Ilya Biryukov via cfe-commits > wrote: > > Author: ibiryukov > > Date: Tue May 23 06:37:52 2017 > > New Revision: 303630 > > > > URL: http://llvm.org/viewvc/llvm-project?rev=303630&view=rev > > Lo

[clang-tools-extra] r303977 - [clangd] Allow to use vfs::FileSystem for file accesses.

2017-05-26 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Fri May 26 07:26:51 2017 New Revision: 303977 URL: http://llvm.org/viewvc/llvm-project?rev=303977&view=rev Log: [clangd] Allow to use vfs::FileSystem for file accesses. Summary: Custom vfs::FileSystem is currently used for unit tests. This revision depends on https://revie

[clang-tools-extra] r303993 - [clangd] Attempt to fix tests failing on Windows

2017-05-26 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Fri May 26 09:34:34 2017 New Revision: 303993 URL: http://llvm.org/viewvc/llvm-project?rev=303993&view=rev Log: [clangd] Attempt to fix tests failing on Windows Modified: clang-tools-extra/trunk/unittests/clangd/ClangdTests.cpp Modified: clang-tools-extra/trunk/unitte

[clang-tools-extra] r304214 - [clangd] Mark results of clangd requests with a tag provided by the FileSystemProvider.

2017-05-30 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Tue May 30 10:11:02 2017 New Revision: 304214 URL: http://llvm.org/viewvc/llvm-project?rev=304214&view=rev Log: [clangd] Mark results of clangd requests with a tag provided by the FileSystemProvider. Summary: This allows an implementation of FileSystemProvider that can tr

[clang-tools-extra] r305279 - [clangd] Use 'std::string' for VFSTag instead of 'int'

2017-06-13 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Tue Jun 13 03:24:48 2017 New Revision: 305279 URL: http://llvm.org/viewvc/llvm-project?rev=305279&view=rev Log: [clangd] Use 'std::string' for VFSTag instead of 'int' Reviewers: krasimir Reviewed By: krasimir Subscribers: klimek, cfe-commits Tags: #clang-tools-extra Di

[clang-tools-extra] r305280 - [clangd] Allow to override contents of the file during completion.

2017-06-13 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Tue Jun 13 03:32:27 2017 New Revision: 305280 URL: http://llvm.org/viewvc/llvm-project?rev=305280&view=rev Log: [clangd] Allow to override contents of the file during completion. Reviewers: krasimir Reviewed By: krasimir Subscribers: klimek, cfe-commits Differential Rev

[clang-tools-extra] r305283 - Revert "[clangd] Allow to override contents of the file during completion."

2017-06-13 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Tue Jun 13 05:01:11 2017 New Revision: 305283 URL: http://llvm.org/viewvc/llvm-project?rev=305283&view=rev Log: Revert "[clangd] Allow to override contents of the file during completion." This caused buildbots failures, reverting until we'll find out what's wrong. Modifie

[clang-tools-extra] r305291 - [clangd] Allow to override contents of the file during completion.

2017-06-13 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Tue Jun 13 09:15:56 2017 New Revision: 305291 URL: http://llvm.org/viewvc/llvm-project?rev=305291&view=rev Log: [clangd] Allow to override contents of the file during completion. Summary: This is a reapplied r305280 with a fix to the crash found by build bots (StringRef to

[clang-tools-extra] r305298 - [clangd] Store references instead of unique_ptrs in ClangdServer.

2017-06-13 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Tue Jun 13 10:59:43 2017 New Revision: 305298 URL: http://llvm.org/viewvc/llvm-project?rev=305298&view=rev Log: [clangd] Store references instead of unique_ptrs in ClangdServer. Summary: ClangdServer owned objects passed to it in constructor for no good reason. Lots of stu

[clang-tools-extra] r305299 - [clangd] A comment for ClangdServer's constructor. NFC.

2017-06-13 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Tue Jun 13 11:02:27 2017 New Revision: 305299 URL: http://llvm.org/viewvc/llvm-project?rev=305299&view=rev Log: [clangd] A comment for ClangdServer's constructor. NFC. Modified: clang-tools-extra/trunk/clangd/ClangdServer.h Modified: clang-tools-extra/trunk/clangd/Cla

[clang-tools-extra] r305376 - [clangd] Add a filename parameter to FileSystemProvider.

2017-06-14 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Wed Jun 14 04:46:44 2017 New Revision: 305376 URL: http://llvm.org/viewvc/llvm-project?rev=305376&view=rev Log: [clangd] Add a filename parameter to FileSystemProvider. Reviewers: krasimir Reviewed By: krasimir Subscribers: klimek, cfe-commits Tags: #clang-tools-extra

r305890 - Moved code hanlding precompiled preamble out of the ASTUnit.

2017-06-21 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Wed Jun 21 05:24:58 2017 New Revision: 305890 URL: http://llvm.org/viewvc/llvm-project?rev=305890&view=rev Log: Moved code hanlding precompiled preamble out of the ASTUnit. Reviewers: bkramer, krasimir, arphaman, akyrtzi, klimek Reviewed By: klimek Subscribers: mgorny, k

r305902 - Fixed compiler warnings after r305890.

2017-06-21 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Wed Jun 21 07:34:27 2017 New Revision: 305902 URL: http://llvm.org/viewvc/llvm-project?rev=305902&view=rev Log: Fixed compiler warnings after r305890. Should fix buildbots that pass -Werror. Modified: cfe/trunk/lib/Frontend/ASTUnit.cpp Modified: cfe/trunk/lib/Fronten

r320696 - [Frontend] Treat function with skipped body as definition

2017-12-14 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Thu Dec 14 05:00:33 2017 New Revision: 320696 URL: http://llvm.org/viewvc/llvm-project?rev=320696&view=rev Log: [Frontend] Treat function with skipped body as definition Summary: This fixes an invalid warning about missing definition of a function when parsing with SkipFun

r320702 - Renamed test file to use proper naming convention

2017-12-14 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Thu Dec 14 06:51:17 2017 New Revision: 320702 URL: http://llvm.org/viewvc/llvm-project?rev=320702&view=rev Log: Renamed test file to use proper naming convention Also changed the order of CHECK statements. CHEKC-NOT must come before CHECK in skipped-function-bodies.cpp Ad

[clang-tools-extra] r320706 - [clangd] Implemented tracing using Context

2017-12-14 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Thu Dec 14 07:04:59 2017 New Revision: 320706 URL: http://llvm.org/viewvc/llvm-project?rev=320706&view=rev Log: [clangd] Implemented tracing using Context Reviewers: sammccall, ioeric, hokein Reviewed By: sammccall Subscribers: klimek, luckygeck, cfe-commits Differentia

[clang-tools-extra] r320708 - [clangd] Changed tracing interfaces

2017-12-14 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Thu Dec 14 07:33:38 2017 New Revision: 320708 URL: http://llvm.org/viewvc/llvm-project?rev=320708&view=rev Log: [clangd] Changed tracing interfaces Summary: EventTracer interface now contains two methods: - spanEvent for events that have duration, - instant for events that

r320804 - [clang] Add PPCallbacks list to preprocessor when building a preacompiled preamble.

2017-12-15 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Fri Dec 15 03:27:51 2017 New Revision: 320804 URL: http://llvm.org/viewvc/llvm-project?rev=320804&view=rev Log: [clang] Add PPCallbacks list to preprocessor when building a preacompiled preamble. Summary: Revision D38639 needs this commit in order to properly make open de

Re: [clang-tools-extra] r320591 - [clangd] Fix bool conversion operator of UniqueFunction

2017-12-20 Thread Ilya Biryukov via cfe-commits
ther int types. > > On Wed, Dec 13, 2017 at 7:43 AM Ilya Biryukov via cfe-commits < > cfe-commits@lists.llvm.org> wrote: > >> Author: ibiryukov >> Date: Wed Dec 13 07:42:59 2017 >> New Revision: 320591 >> >> URL: http://llvm.org/viewvc/llvm-project?rev=32

[clang-tools-extra] r321173 - [clangd] Made UniqueFunction's bool conversion explicit

2017-12-20 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Wed Dec 20 06:06:05 2017 New Revision: 321173 URL: http://llvm.org/viewvc/llvm-project?rev=321173&view=rev Log: [clangd] Made UniqueFunction's bool conversion explicit Modified: clang-tools-extra/trunk/clangd/Function.h Modified: clang-tools-extra/trunk/clangd/Functio

r321174 - [Frontend] Handle skipped bodies in template instantiations

2017-12-20 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Wed Dec 20 06:32:38 2017 New Revision: 321174 URL: http://llvm.org/viewvc/llvm-project?rev=321174&view=rev Log: [Frontend] Handle skipped bodies in template instantiations Summary: - Fixed an assert in Sema::InstantiateFunctionDefinition and added support for instantiati

r321189 - [clang] Add BeforeExecute method to PrecompiledPreamble

2017-12-20 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Wed Dec 20 08:48:56 2017 New Revision: 321189 URL: http://llvm.org/viewvc/llvm-project?rev=321189&view=rev Log: [clang] Add BeforeExecute method to PrecompiledPreamble Summary: Adds BeforeExecute method to PrecompiledPreamble to be called before Execute(). This method can

r321266 - Added helper to get size of PrecompiledPreamble

2017-12-21 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Thu Dec 21 06:04:39 2017 New Revision: 321266 URL: http://llvm.org/viewvc/llvm-project?rev=321266&view=rev Log: Added helper to get size of PrecompiledPreamble Modified: cfe/trunk/include/clang/Frontend/PrecompiledPreamble.h cfe/trunk/lib/Frontend/PrecompiledPreamb

[clang-tools-extra] r321267 - [clangd] Log more info about preambles

2017-12-21 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Thu Dec 21 06:05:28 2017 New Revision: 321267 URL: http://llvm.org/viewvc/llvm-project?rev=321267&view=rev Log: [clangd] Log more info about preambles Modified: clang-tools-extra/trunk/clangd/ClangdUnit.cpp Modified: clang-tools-extra/trunk/clangd/ClangdUnit.cpp URL:

r321520 - [Frontend] Correctly handle instantiating ctors with skipped bodies

2017-12-28 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Thu Dec 28 05:05:46 2017 New Revision: 321520 URL: http://llvm.org/viewvc/llvm-project?rev=321520&view=rev Log: [Frontend] Correctly handle instantiating ctors with skipped bodies Summary: Previsouly clang tried instantiating member initializers even if ctor body was skipp

[clang-tools-extra] r321521 - [clangd] Skip function bodies when building the preamble

2017-12-28 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Thu Dec 28 05:10:15 2017 New Revision: 321521 URL: http://llvm.org/viewvc/llvm-project?rev=321521&view=rev Log: [clangd] Skip function bodies when building the preamble Summary: To make building preambles faster and keep them smaller. Reviewers: sammccall Reviewed By: sa

[clang-tools-extra] r321554 - [clangd] Properly set filterText for index-based completion items

2017-12-29 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Fri Dec 29 06:59:22 2017 New Revision: 321554 URL: http://llvm.org/viewvc/llvm-project?rev=321554&view=rev Log: [clangd] Properly set filterText for index-based completion items It was previously set to an identifier that the user typed, leading to surprising behavior in V

[clang-tools-extra] r321867 - [clangd] Fix memory leak in code completion

2018-01-05 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Fri Jan 5 05:36:55 2018 New Revision: 321867 URL: http://llvm.org/viewvc/llvm-project?rev=321867&view=rev Log: [clangd] Fix memory leak in code completion Modified: clang-tools-extra/trunk/clangd/CodeComplete.cpp Modified: clang-tools-extra/trunk/clangd/CodeComplete.

[clang-tools-extra] r322080 - [clangd] Fix a bug in asynchronous code completion

2018-01-09 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Tue Jan 9 06:39:27 2018 New Revision: 322080 URL: http://llvm.org/viewvc/llvm-project?rev=322080&view=rev Log: [clangd] Fix a bug in asynchronous code completion A StringRef that goes out of scope was copied and used in a handler running on a separate thread. We didn't ca

[clang-tools-extra] r322185 - [clangd] Remove duplicates from code completion

2018-01-10 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Wed Jan 10 05:51:09 2018 New Revision: 322185 URL: http://llvm.org/viewvc/llvm-project?rev=322185&view=rev Log: [clangd] Remove duplicates from code completion Summary: This patch removes hidden items from code completion. Items can be hidden, e.g., by other items in the c

[clang-tools-extra] r322199 - [clangd] Pass Context to onDiagnosticsReady callback

2018-01-10 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Wed Jan 10 09:59:27 2018 New Revision: 322199 URL: http://llvm.org/viewvc/llvm-project?rev=322199&view=rev Log: [clangd] Pass Context to onDiagnosticsReady callback Reviewers: sammccall Reviewed By: sammccall Subscribers: klimek, cfe-commits Differential Revision: https

r326432 - Revert "[analyzer] Support for naive cross translation unit analysis"

2018-03-01 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Thu Mar 1 04:43:39 2018 New Revision: 326432 URL: http://llvm.org/viewvc/llvm-project?rev=326432&view=rev Log: Revert "[analyzer] Support for naive cross translation unit analysis" Also revert "[analyzer] Fix a compiler warning" This reverts commits r326323 and r326324.

Re: [PATCH] D30691: [analyzer] Support for naive cross translational unit analysis

2018-03-01 Thread Ilya Biryukov via cfe-commits
I replied to a commit in the wrong thread (https://reviews.llvm.org/rL326323), sorry. Here are the important bits: This change introduced the following cyclic dependency in the build system: StaticAnalyzerCore -> CrossTU -> Frontend -> StaticAnalyzerCore. I'm sorry, but I had to revert the commit

Re: [PATCH] D30691: [analyzer] Support for naive cross translational unit analysis

2018-03-01 Thread Ilya Biryukov via cfe-commits
You're right. We have this extra dependency in our internal build files for some reason and I missed that. It's totally my fault. Should I resubmit the patch that I reverted or you would rather do it yourself? On Thu, Mar 1, 2018 at 3:07 PM Gábor Horváth wrote: > > > 2018. márc. 1. 14:58 ezt

r326439 - Resubmit [analyzer] Support for naive cross translation unit analysis

2018-03-01 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Thu Mar 1 06:54:16 2018 New Revision: 326439 URL: http://llvm.org/viewvc/llvm-project?rev=326439&view=rev Log: Resubmit [analyzer] Support for naive cross translation unit analysis Originally submitted as r326323 and r326324. Reverted in r326432. Reverting the commit was

Re: [PATCH] D30691: [analyzer] Support for naive cross translational unit analysis

2018-03-01 Thread Ilya Biryukov via cfe-commits
Resubmitted as r326439. Sorry for all the trouble. We need to hack around the Analyses.def being required by Frontend, but it would nice to remove this dependency upstream. On Thu, Mar 1, 2018 at 3:34 PM Benjamin Kramer wrote: > Frontend depends on StaticAnalyzerCore by > including "clang/Stat

[clang-tools-extra] r326569 - [clang] Fix use-after-free on code completion

2018-03-02 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Fri Mar 2 04:28:27 2018 New Revision: 326569 URL: http://llvm.org/viewvc/llvm-project?rev=326569&view=rev Log: [clang] Fix use-after-free on code completion Summary: Found by asan. Fiddling with code completion AST after FrontendAction::Exceute can lead to errors. Calling

[clang-tools-extra] r326598 - [clangd] Use higher timoout values in TUSchedulerTest::Debounce

2018-03-02 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Fri Mar 2 10:23:41 2018 New Revision: 326598 URL: http://llvm.org/viewvc/llvm-project?rev=326598&view=rev Log: [clangd] Use higher timoout values in TUSchedulerTest::Debounce Should unbreak windows buildbots. Modified: clang-tools-extra/trunk/unittests/clangd/TUSched

Re: [clang-tools-extra] r326546 - [clangd] Debounce streams of updates.

2018-03-02 Thread Ilya Biryukov via cfe-commits
The TUSchedulerTest::Debounce breaks on Windows buildbots. Probably because the timeouts of 50ms/10ms/40ms are too low to be scheduled properly. Increased the timeouts in r326598 to 1s/200ms/2s, hopefully that would unbreak the buildbots. We could tweak them back to lower values that work on Monda

[clang-tools-extra] r326809 - [clangd] Don't end completion item labels with '::'

2018-03-06 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Tue Mar 6 08:45:21 2018 New Revision: 326809 URL: http://llvm.org/viewvc/llvm-project?rev=326809&view=rev Log: [clangd] Don't end completion item labels with '::' Modified: clang-tools-extra/trunk/clangd/CodeComplete.cpp clang-tools-extra/trunk/test/clangd/protoco

r327134 - [SemaOverload] Fixed crash on code completion

2018-03-09 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Fri Mar 9 06:43:29 2018 New Revision: 327134 URL: http://llvm.org/viewvc/llvm-project?rev=327134&view=rev Log: [SemaOverload] Fixed crash on code completion Summary: The relevant failing assertion message is: ../tools/clang/lib/Sema/SemaInit.cpp:8411: PerformCopyInitializ

[clang-tools-extra] r327282 - [clangd] Revamp handling of diagnostics.

2018-03-12 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Mon Mar 12 08:28:22 2018 New Revision: 327282 URL: http://llvm.org/viewvc/llvm-project?rev=327282&view=rev Log: [clangd] Revamp handling of diagnostics. Summary: The new implementation attaches notes to diagnostic message and shows the original diagnostics in the message o

r327504 - [Sema] Pop function scope when instantiating a func with skipped body

2018-03-14 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Wed Mar 14 06:18:30 2018 New Revision: 327504 URL: http://llvm.org/viewvc/llvm-project?rev=327504&view=rev Log: [Sema] Pop function scope when instantiating a func with skipped body Summary: By calling ActOnFinishFunctionBody(). Previously we were only calling ActOnSkipped

[clang-tools-extra] r327532 - [clangd] Remove forceReparse, add a flag to addDocument instead

2018-03-14 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Wed Mar 14 10:08:41 2018 New Revision: 327532 URL: http://llvm.org/viewvc/llvm-project?rev=327532&view=rev Log: [clangd] Remove forceReparse, add a flag to addDocument instead Summary: To make the removal of DraftMgr from ClangdServer easier (D44408). Reviewers: sammccall

[clang-tools-extra] r327537 - [clangd] Don't expose vfs in TUScheduler::runWithPreamble.

2018-03-14 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Wed Mar 14 10:46:52 2018 New Revision: 327537 URL: http://llvm.org/viewvc/llvm-project?rev=327537&view=rev Log: [clangd] Don't expose vfs in TUScheduler::runWithPreamble. Summary: It was previously an easy way to concurrently access a mutable vfs, which is a recipe for dis

[clang-tools-extra] r327539 - [clangd] Fix indentation in the comment. NFC

2018-03-14 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Wed Mar 14 10:49:19 2018 New Revision: 327539 URL: http://llvm.org/viewvc/llvm-project?rev=327539&view=rev Log: [clangd] Fix indentation in the comment. NFC Modified: clang-tools-extra/trunk/clangd/TUScheduler.h Modified: clang-tools-extra/trunk/clangd/TUScheduler.h U

[clang-tools-extra] r327717 - [clangd] Handle multiple callbacks from Sema's completion

2018-03-16 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Fri Mar 16 08:23:44 2018 New Revision: 327717 URL: http://llvm.org/viewvc/llvm-project?rev=327717&view=rev Log: [clangd] Handle multiple callbacks from Sema's completion Summary: When parser backtracks, we might receive multiple code completion callbacks. Previously we had

r327852 - Updated a usage of createTemporaryFile that does not expect file to be created.

2018-03-19 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Mon Mar 19 07:20:25 2018 New Revision: 327852 URL: http://llvm.org/viewvc/llvm-project?rev=327852&view=rev Log: Updated a usage of createTemporaryFile that does not expect file to be created. Summary: This fixes a usage of createTemporaryFile in clang repo after a change i

r327984 - Backport changes from llvm/.clang_tidy to clang/.clang_tidy configs

2018-03-20 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Tue Mar 20 07:39:12 2018 New Revision: 327984 URL: http://llvm.org/viewvc/llvm-project?rev=327984&view=rev Log: Backport changes from llvm/.clang_tidy to clang/.clang_tidy configs Summary: LLVM .clang_tidy seems to be more up-to-date. Reviewers: alexfh, simark Reviewed B

[clang-tools-extra] r333528 - [clangd] Enable parsing of non-doxygen comments in global-symbol-builder

2018-05-30 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Wed May 30 03:43:00 2018 New Revision: 333528 URL: http://llvm.org/viewvc/llvm-project?rev=333528&view=rev Log: [clangd] Enable parsing of non-doxygen comments in global-symbol-builder Reviewers: ioeric, sammccall Reviewed By: ioeric Subscribers: klimek, MaskRay, jkorous

[clang-tools-extra] r333537 - [clangd] clang-format the source code. NFC

2018-05-30 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Wed May 30 05:41:19 2018 New Revision: 333537 URL: http://llvm.org/viewvc/llvm-project?rev=333537&view=rev Log: [clangd] clang-format the source code. NFC Modified: clang-tools-extra/trunk/clangd/AST.h clang-tools-extra/trunk/clangd/Quality.h clang-tools-extra/

r333538 - [Sema] Don't skip function bodies with 'auto' without trailing return type

2018-05-30 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Wed May 30 05:50:48 2018 New Revision: 333538 URL: http://llvm.org/viewvc/llvm-project?rev=333538&view=rev Log: [Sema] Don't skip function bodies with 'auto' without trailing return type Summary: Skipping them was clearly not intentional. It's impossible to guarantee corre

[clang-tools-extra] r333548 - [clangd] Add forgotten include guard to TestFS.h. NFC

2018-05-30 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Wed May 30 07:21:31 2018 New Revision: 333548 URL: http://llvm.org/viewvc/llvm-project?rev=333548&view=rev Log: [clangd] Add forgotten include guard to TestFS.h. NFC Modified: clang-tools-extra/trunk/unittests/clangd/TestFS.h Modified: clang-tools-extra/trunk/unittest

r333735 - [CodeComplete] Add a few extra tests for r333538. NFC

2018-06-01 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Fri Jun 1 02:49:53 2018 New Revision: 333735 URL: http://llvm.org/viewvc/llvm-project?rev=333735&view=rev Log: [CodeComplete] Add a few extra tests for r333538. NFC From a follow-up discussion in D44480. New tests check that function bodies are not skipped: - In presence

[clang-tools-extra] r333737 - [clangd] Keep only a limited number of idle ASTs in memory

2018-06-01 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Fri Jun 1 03:08:43 2018 New Revision: 333737 URL: http://llvm.org/viewvc/llvm-project?rev=333737&view=rev Log: [clangd] Keep only a limited number of idle ASTs in memory Summary: After this commit, clangd will only keep the last 3 accessed ASTs in memory. Preambles for ea

[clang-tools-extra] r333742 - [clangd] Attempt the fix the buildbots after r333737

2018-06-01 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Fri Jun 1 05:03:16 2018 New Revision: 333742 URL: http://llvm.org/viewvc/llvm-project?rev=333742&view=rev Log: [clangd] Attempt the fix the buildbots after r333737 Modified: clang-tools-extra/trunk/clangd/TUScheduler.cpp Modified: clang-tools-extra/trunk/clangd/TUSch

Re: [clang-tools-extra] r333737 - [clangd] Keep only a limited number of idle ASTs in memory

2018-06-01 Thread Ilya Biryukov via cfe-commits
This broke buildbots. Sorry about that. r333742 should fix them. On Fri, Jun 1, 2018 at 12:12 PM Ilya Biryukov via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Author: ibiryukov > Date: Fri Jun 1 03:08:43 2018 > New Revision: 333737 > > URL: http://llvm.org/viewvc/ll

[clang-tools-extra] r333758 - [clangd] Compute better estimates for memory usage of the AST

2018-06-01 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Fri Jun 1 07:44:57 2018 New Revision: 333758 URL: http://llvm.org/viewvc/llvm-project?rev=333758&view=rev Log: [clangd] Compute better estimates for memory usage of the AST Also fix the return value of IdleASTs::getUsedBytes(). It was 'bool' instead of 'size_t' *facepalm*

[clang-tools-extra] r333906 - [clangd] Boost scores for decls from current file in completion

2018-06-04 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Mon Jun 4 07:50:59 2018 New Revision: 333906 URL: http://llvm.org/viewvc/llvm-project?rev=333906&view=rev Log: [clangd] Boost scores for decls from current file in completion Summary: This should, arguably, give better ranking. Reviewers: ioeric, sammccall Reviewed By:

r334073 - Change test to output 'pcm' to the temp dir, not the source dir

2018-06-06 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Wed Jun 6 01:50:12 2018 New Revision: 334073 URL: http://llvm.org/viewvc/llvm-project?rev=334073&view=rev Log: Change test to output 'pcm' to the temp dir, not the source dir Modified: cfe/trunk/test/SemaCXX/anonymous-union-export.cpp Modified: cfe/trunk/test/SemaCXX

[clang-tools-extra] r334495 - [clangd] Trace time the operations wait on Semaphore.

2018-06-12 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Tue Jun 12 04:56:21 2018 New Revision: 334495 URL: http://llvm.org/viewvc/llvm-project?rev=334495&view=rev Log: [clangd] Trace time the operations wait on Semaphore. The Semaphore is currently used to limit the number of concurrently running tasks. Tracing the wait times w

[clang-tools-extra] r334585 - [clangd] Move caching of compile args out of ClangdServer.

2018-06-13 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Wed Jun 13 02:20:41 2018 New Revision: 334585 URL: http://llvm.org/viewvc/llvm-project?rev=334585&view=rev Log: [clangd] Move caching of compile args out of ClangdServer. Summary: Caching is now handled by ClangdLSPServer and hidden behind the GlobalCompilationDatabase int

[clang-tools-extra] r334807 - [clangd] Do not report comments that only have special chars.

2018-06-15 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Fri Jun 15 01:31:17 2018 New Revision: 334807 URL: http://llvm.org/viewvc/llvm-project?rev=334807&view=rev Log: [clangd] Do not report comments that only have special chars. Summary: Like the following: // --- // === // *** It does not cover all the case

r345122 - [Sema] Do not show unused parameter warnings when body is skipped

2018-10-24 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Wed Oct 24 01:29:24 2018 New Revision: 345122 URL: http://llvm.org/viewvc/llvm-project?rev=345122&view=rev Log: [Sema] Do not show unused parameter warnings when body is skipped Summary: Without the function body, we cannot determine is parameter was used. Reviewers: ioer

[clang-tools-extra] r345125 - [clangd] Fix a link in documentation. NFC

2018-10-24 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Wed Oct 24 02:00:30 2018 New Revision: 345125 URL: http://llvm.org/viewvc/llvm-project?rev=345125&view=rev Log: [clangd] Fix a link in documentation. NFC Modified: clang-tools-extra/trunk/docs/clangd.rst Modified: clang-tools-extra/trunk/docs/clangd.rst URL: http://l

[clang-tools-extra] r345126 - [clangd] Remove outdated comment-out code. NFC

2018-10-24 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Wed Oct 24 02:47:24 2018 New Revision: 345126 URL: http://llvm.org/viewvc/llvm-project?rev=345126&view=rev Log: [clangd] Remove outdated comment-out code. NFC Modified: clang-tools-extra/trunk/clangd/ClangdLSPServer.h Modified: clang-tools-extra/trunk/clangd/ClangdLSP

[clang-tools-extra] r345128 - [clangd] Simplify auto hover

2018-10-24 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Wed Oct 24 03:09:34 2018 New Revision: 345128 URL: http://llvm.org/viewvc/llvm-project?rev=345128&view=rev Log: [clangd] Simplify auto hover Summary: Use helper from clang. Also fixes some weird corner cases, e.g. auto (*foo)() = bar; Reviewers: kadircet, hokein Revi

r351334 - Set '-target' flag in the test checking the MacOS include dir

2019-01-16 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Wed Jan 16 05:18:59 2019 New Revision: 351334 URL: http://llvm.org/viewvc/llvm-project?rev=351334&view=rev Log: Set '-target' flag in the test checking the MacOS include dir To fix a buildbot failure on PS4, see http://lab.llvm.org:8011/builders/llvm-clang-lld-x86_64-scei-

[clang-tools-extra] r351563 - [clangd] Make background index less chatty

2019-01-18 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Fri Jan 18 09:04:26 2019 New Revision: 351563 URL: http://llvm.org/viewvc/llvm-project?rev=351563&view=rev Log: [clangd] Make background index less chatty Summary: It is producing too much input in non-verbose mode, i.e. a message per indexed file Reviewers: sammccall, ka

[clang-tools-extra] r351941 - [clangd] Fix crash due to ObjCPropertyDecl

2019-01-23 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Wed Jan 23 02:35:12 2019 New Revision: 351941 URL: http://llvm.org/viewvc/llvm-project?rev=351941&view=rev Log: [clangd] Fix crash due to ObjCPropertyDecl With ObjCPropertyDecl, ASTNode.OrigD can be a ObjCPropertyImplDecl which is not a NamedDecl, leading to a crash since

[clang-tools-extra] r351943 - [clangd] Workaround a test failure after r351941

2019-01-23 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Wed Jan 23 03:32:07 2019 New Revision: 351943 URL: http://llvm.org/viewvc/llvm-project?rev=351943&view=rev Log: [clangd] Workaround a test failure after r351941 This should fix failing buildbots. Modified: clang-tools-extra/trunk/unittests/clangd/SymbolCollectorTests.

[clang-tools-extra] r352040 - [CodeComplete] [clangd] Fix crash on ValueDecl with a null type

2019-01-24 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Thu Jan 24 02:41:43 2019 New Revision: 352040 URL: http://llvm.org/viewvc/llvm-project?rev=352040&view=rev Log: [CodeComplete] [clangd] Fix crash on ValueDecl with a null type Reviewers: kadircet Reviewed By: kadircet Subscribers: ioeric, MaskRay, jkorous, arphaman, cfe-

r352040 - [CodeComplete] [clangd] Fix crash on ValueDecl with a null type

2019-01-24 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Thu Jan 24 02:41:43 2019 New Revision: 352040 URL: http://llvm.org/viewvc/llvm-project?rev=352040&view=rev Log: [CodeComplete] [clangd] Fix crash on ValueDecl with a null type Reviewers: kadircet Reviewed By: kadircet Subscribers: ioeric, MaskRay, jkorous, arphaman, cfe-

Re: [clang-tools-extra] r352040 - [CodeComplete] [clangd] Fix crash on ValueDecl with a null type

2019-01-24 Thread Ilya Biryukov via cfe-commits
+Hans Wennborg , could you please merge this fix into the release branch? On Thu, Jan 24, 2019 at 1:41 PM Ilya Biryukov via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Author: ibiryukov > Date: Thu Jan 24 02:41:43 2019 > New Revision: 352040 > > URL: http://llvm.or

Re: r346652 - Make clang-based tools find libc++ on MacOS

2019-01-29 Thread Ilya Biryukov via cfe-commits
bc++ headers in -internal-isystem >>>>>> Release+Asserts/bin/include/c++/v1 , compared to -internal-isystem >>>>>> Release+Asserts/include/c++/v1. `make install` puts the libc++ headers in >>>>>> Release+Asserts/include, the ol

[clang-tools-extra] r352494 - [clangd] Interfaces for writing code tweaks

2019-01-29 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Tue Jan 29 06:17:36 2019 New Revision: 352494 URL: http://llvm.org/viewvc/llvm-project?rev=352494&view=rev Log: [clangd] Interfaces for writing code tweaks Summary: The code tweaks are an implementation of mini-refactorings exposed via the LSP code actions. They run in two

[clang-tools-extra] r352501 - [clangd] Unit test for sourceLocationInMainFile.

2019-01-29 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Tue Jan 29 06:31:19 2019 New Revision: 352501 URL: http://llvm.org/viewvc/llvm-project?rev=352501&view=rev Log: [clangd] Unit test for sourceLocationInMainFile. This should have been part of r352494, which added the corresponding function. The unit test ended up as a separ

<    1   2   3   4   5   6   7   8   9   10   >