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

2019-01-29 Thread Ilya Biryukov via cfe-commits
.llvm.org/D56446 should fix this. >>>>>> >>>>>> On Tue, Jan 8, 2019 at 5:12 PM Nico Weber >>>>>> wrote: >>>>>> >>>>>>> It looks like clang now looks for libc++ headers >>>>>>> in -

[clang-tools-extra] r352509 - [clangd] Make -clang-tidy-checks a non-hidden command-line arg

2019-01-29 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Tue Jan 29 07:52:05 2019 New Revision: 352509 URL: http://llvm.org/viewvc/llvm-project?rev=352509&view=rev Log: [clangd] Make -clang-tidy-checks a non-hidden command-line arg Summary: This looks like a useful user-facing configuration parameter, which should be discoverabl

[clang-tools-extra] r352510 - [clangd] Attempt to fix failing buildbots after r352494

2019-01-29 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Tue Jan 29 07:57:14 2019 New Revision: 352510 URL: http://llvm.org/viewvc/llvm-project?rev=352510&view=rev Log: [clangd] Attempt to fix failing buildbots after r352494 For failures see: http://lab.llvm.org:8011/builders/clang-x86_64-linux-abi-test/builds/38501/steps/build-

[clang-tools-extra] r352511 - [clangd] Remove extra '; ' to fix -Wpedantic warning. NFC

2019-01-29 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Tue Jan 29 08:04:39 2019 New Revision: 352511 URL: http://llvm.org/viewvc/llvm-project?rev=352511&view=rev Log: [clangd] Remove extra ';' to fix -Wpedantic warning. NFC Modified: clang-tools-extra/trunk/clangd/refactor/Tweak.cpp Modified: clang-tools-extra/trunk/clang

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

2019-01-30 Thread Ilya Biryukov via cfe-commits
d is identical. > > Attaching logs with gcc and clang. > > Any idea what the problem is? > > Regards, > Mikael > > On 1/29/19 3:17 PM, Ilya Biryukov via cfe-commits wrote: > > Author: ibiryukov > > Date: Tue Jan 29 06:17:36 2019 > > New Revision: 352494 &

[clang-tools-extra] r352612 - [clangd] Fix a use after move

2019-01-30 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Wed Jan 30 01:39:01 2019 New Revision: 352612 URL: http://llvm.org/viewvc/llvm-project?rev=352612&view=rev Log: [clangd] Fix a use after move Introduced in r352494. Modified: clang-tools-extra/trunk/clangd/ClangdLSPServer.cpp Modified: clang-tools-extra/trunk/clangd/

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

2019-01-30 Thread Ilya Biryukov via cfe-commits
fore this patch the output from gcc and clang built clangd is identical. >> >> Attaching logs with gcc and clang. >> >> Any idea what the problem is? >> >> Regards, >> Mikael >> >> On 1/29/19 3:17 PM, Ilya Biryukov via cfe-commits wrote: >> >

[clang-tools-extra] r352624 - [clangd] Drop fixes if replying with tweaks resulted in an error

2019-01-30 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Wed Jan 30 06:24:17 2019 New Revision: 352624 URL: http://llvm.org/viewvc/llvm-project?rev=352624&view=rev Log: [clangd] Drop fixes if replying with tweaks resulted in an error This should not happen in normal operation, as it implies that the diagnostics with some availab

r352788 - [CodeComplete] Propagate preferred types through parser in more cases

2019-01-31 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Thu Jan 31 12:20:32 2019 New Revision: 352788 URL: http://llvm.org/viewvc/llvm-project?rev=352788&view=rev Log: [CodeComplete] Propagate preferred types through parser in more cases Preferred types are used by code completion for ranking. This commit considerably increases

[clang-tools-extra] r352796 - [clangd] A code action to swap branches of an if statement

2019-01-31 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Thu Jan 31 13:30:05 2019 New Revision: 352796 URL: http://llvm.org/viewvc/llvm-project?rev=352796&view=rev Log: [clangd] A code action to swap branches of an if statement Reviewers: sammccall Reviewed By: sammccall Subscribers: llvm-commits, mgorny, ioeric, MaskRay, jkor

r345963 - Revert "Fix regression in behavior of clang -x c++-header -fmodule-name=XXX"

2018-11-02 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Fri Nov 2 03:50:26 2018 New Revision: 345963 URL: http://llvm.org/viewvc/llvm-project?rev=345963&view=rev Log: Revert "Fix regression in behavior of clang -x c++-header -fmodule-name=XXX" This reverts commit r345803 and r345915 (a follow-up fix to r345803). Reason: r3458

Re: r345989 - [analyzer] New flag to print all -analyzer-config options

2018-11-05 Thread Ilya Biryukov via cfe-commits
Should be fixed in r346123. +Kadir Çetinkaya who authored the fix. On Fri, Nov 2, 2018 at 7:38 PM Galina Kistanova via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Also one of your resent commits added another broken test to the builder: > > http://lab.llvm.org:8011/builders/llvm-clang-x86

r346301 - [CodeComplete] Do not complete self-initializations

2018-11-07 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Wed Nov 7 02:02:31 2018 New Revision: 346301 URL: http://llvm.org/viewvc/llvm-project?rev=346301&view=rev Log: [CodeComplete] Do not complete self-initializations Summary: Removes references to initialized variable from the following completions: int x = ^; Handles

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

2018-11-12 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Mon Nov 12 05:55:55 2018 New Revision: 346652 URL: http://llvm.org/viewvc/llvm-project?rev=346652&view=rev Log: Make clang-based tools find libc++ on MacOS Summary: When they read compiler args from compile_commands.json. This change allows to run clang-based tools, like c

[clang-tools-extra] r346653 - Add a test checking clang-tidy can find libc++ on Mac

2018-11-12 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Mon Nov 12 05:56:09 2018 New Revision: 346653 URL: http://llvm.org/viewvc/llvm-project?rev=346653&view=rev Log: Add a test checking clang-tidy can find libc++ on Mac Reviewers: sammccall, arphaman, EricWF Reviewed By: sammccall Subscribers: christof, cfe-commits Differe

Re: [PATCH] D54310: Make clang-based tools find libc++ on MacOS

2018-11-12 Thread Ilya Biryukov via cfe-commits
Will take a look, thanks for the revert. On Mon, Nov 12, 2018 at 6:13 PM Jonas Devlieghere via Phabricator < revi...@reviews.llvm.org> wrote: > JDevlieghere added a comment. > > I reverted this because it broke the LLDB bots on GreenDragon: > http://green.lab.llvm.org/green/view/LLDB/ > > > Repos

[clang-tools-extra] r347468 - [clangd] Cleanup: make diagnostics callbacks from TUScheduler non-racy

2018-11-22 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Thu Nov 22 07:39:54 2018 New Revision: 347468 URL: http://llvm.org/viewvc/llvm-project?rev=347468&view=rev Log: [clangd] Cleanup: make diagnostics callbacks from TUScheduler non-racy Summary: Previously, removeDoc followed by an addDoc to TUScheduler resulted in racy diagn

[clang-tools-extra] r347472 - [clangd] Cleanup error consumption code. NFC

2018-11-22 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Thu Nov 22 08:20:12 2018 New Revision: 347472 URL: http://llvm.org/viewvc/llvm-project?rev=347472&view=rev Log: [clangd] Cleanup error consumption code. NFC - Remove reimplementations of llvm::consumeError. - Simplify test code by using EXPECT_ERROR where it fits. Modifie

[clang-tools-extra] r347474 - [clangd] Cleanup: make the diags callback global in TUScheduler

2018-11-22 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Thu Nov 22 09:27:08 2018 New Revision: 347474 URL: http://llvm.org/viewvc/llvm-project?rev=347474&view=rev Log: [clangd] Cleanup: make the diags callback global in TUScheduler Reviewers: sammccall Reviewed By: sammccall Subscribers: javed.absar, ioeric, MaskRay, jkorous,

[clang-tools-extra] r347498 - [clangd] Add support for hierarchical documentSymbol

2018-11-23 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Fri Nov 23 07:21:19 2018 New Revision: 347498 URL: http://llvm.org/viewvc/llvm-project?rev=347498&view=rev Log: [clangd] Add support for hierarchical documentSymbol Reviewers: ioeric, sammccall, simark Reviewed By: sammccall Subscribers: MaskRay, jkorous, arphaman, kadir

[clang-tools-extra] r347539 - [clangd] Cleanup after landing documentSymbol. NFC

2018-11-26 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Mon Nov 26 01:57:41 2018 New Revision: 347539 URL: http://llvm.org/viewvc/llvm-project?rev=347539&view=rev Log: [clangd] Cleanup after landing documentSymbol. NFC - fix compile error on older gcc in Protocol.cpp, - remove redundant 'llvm::' qualifiers from Protocol.cpp, -

Re: [clang-tools-extra] r347498 - [clangd] Add support for hierarchical documentSymbol

2018-11-26 Thread Ilya Biryukov via cfe-commits
/ninja/1.8.2/SLED11-64/bin/ninja -j1 -C > build-all all) failed: child exited with value 1 > > > A couple of the build bots fail the same way, see e.g: > > > > http://lab.llvm.org:8011/builders/clang-cmake-armv7-quick/builds/5512/steps/build%20stage%201/logs/stdio >

r347558 - [Index] Expose USR generation for types

2018-11-26 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Mon Nov 26 07:24:48 2018 New Revision: 347558 URL: http://llvm.org/viewvc/llvm-project?rev=347558&view=rev Log: [Index] Expose USR generation for types Summary: Used in clangd. Reviewers: sammccall, ioeric Reviewed By: sammccall Subscribers: kadircet, cfe-commits Diffe

[clang-tools-extra] r347559 - [clangd] Initial implementation of expected types

2018-11-26 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Mon Nov 26 07:25:20 2018 New Revision: 347559 URL: http://llvm.org/viewvc/llvm-project?rev=347559&view=rev Log: [clangd] Initial implementation of expected types Summary: Provides facilities to model the C++ conversion rules without the AST. The introduced representation c

[clang-tools-extra] r347560 - [clangd] Collect and store expected types in the index

2018-11-26 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Mon Nov 26 07:29:14 2018 New Revision: 347560 URL: http://llvm.org/viewvc/llvm-project?rev=347560&view=rev Log: [clangd] Collect and store expected types in the index Summary: And add a hidden option to control whether the types are collected. For experiments, will be remo

[clang-tools-extra] r347562 - [clangd] Add type boosting in code completion

2018-11-26 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Mon Nov 26 07:38:01 2018 New Revision: 347562 URL: http://llvm.org/viewvc/llvm-project?rev=347562&view=rev Log: [clangd] Add type boosting in code completion Reviewers: sammccall, ioeric Reviewed By: sammccall Subscribers: MaskRay, jkorous, arphaman, kadircet, cfe-commit

[clang-tools-extra] r347563 - [clangd] Fix use-after-free with expected types in indexing

2018-11-26 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Mon Nov 26 07:52:16 2018 New Revision: 347563 URL: http://llvm.org/viewvc/llvm-project?rev=347563&view=rev Log: [clangd] Fix use-after-free with expected types in indexing Modified: clang-tools-extra/trunk/clangd/index/SymbolCollector.cpp Modified: clang-tools-extra/t

[clang-tools-extra] r347566 - [clangd] Fix compilation of IndexBenchmark

2018-11-26 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Mon Nov 26 07:58:29 2018 New Revision: 347566 URL: http://llvm.org/viewvc/llvm-project?rev=347566&view=rev Log: [clangd] Fix compilation of IndexBenchmark Modified: clang-tools-extra/trunk/clangd/benchmarks/IndexBenchmark.cpp Modified: clang-tools-extra/trunk/clangd/b

[clang-tools-extra] r347574 - [clangd] Do not drop diagnostics from macros

2018-11-26 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Mon Nov 26 09:05:13 2018 New Revision: 347574 URL: http://llvm.org/viewvc/llvm-project?rev=347574&view=rev Log: [clangd] Do not drop diagnostics from macros if they still end up being in the main file. Modified: clang-tools-extra/trunk/clangd/Diagnostics.cpp clang

[clang-tools-extra] r347760 - [clang-tidy] Added a test -export-fixes with relative paths.

2018-11-28 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Wed Nov 28 06:43:26 2018 New Revision: 347760 URL: http://llvm.org/viewvc/llvm-project?rev=347760&view=rev Log: [clang-tidy] Added a test -export-fixes with relative paths. Summary: A test for D51864. Reviewers: ioeric, steveire Reviewed By: steveire Subscribers: xazax.

Re: [PATCH] D54995: [MemoryBuffer] By default assume that all files are volatile to prevent unintended file locks

2018-11-28 Thread Ilya Biryukov via cfe-commits
I don't have a Windows machine, but I tried it on the VM and couldn't come up with a combination of flags that breaks it. Which is weird because the linked stackoverflow question mentions Windows locks all files on mmap, but that's not what I was seeing. I'll repeat the experiment. On Wed, Nov 2

Re: [PATCH] D54995: [MemoryBuffer] By default assume that all files are volatile to prevent unintended file locks

2018-11-30 Thread Ilya Biryukov via cfe-commits
On Thu, Nov 29, 2018 at 4:06 PM Zachary Turner wrote: > If this is to go in (which I think is still not clear), it definitely > should be limited to clangd. Not using mapped files is an order of > magnitude performance regression for many use cases. > Absolutely, we have to make sure this does no

r348123 - [clang] Do not read from 'test/SemaCXX/Inputs' inside 'test/AST'

2018-12-03 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Mon Dec 3 03:26:35 2018 New Revision: 348123 URL: http://llvm.org/viewvc/llvm-project?rev=348123&view=rev Log: [clang] Do not read from 'test/SemaCXX/Inputs' inside 'test/AST' Our integrate relies on test inputs being taken from the same diretory as the test itself. Adde

r348124 - [Analysis] Properly prepare test env in test/Analysis/undef-call.c

2018-12-03 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Mon Dec 3 03:28:17 2018 New Revision: 348124 URL: http://llvm.org/viewvc/llvm-project?rev=348124&view=rev Log: [Analysis] Properly prepare test env in test/Analysis/undef-call.c The test expectes the '%T/ctudir' to be present, but does not create it. Modified: cfe/tr

r348125 - [Analyzer] Actually check for -model-path being a directory

2018-12-03 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Mon Dec 3 03:34:08 2018 New Revision: 348125 URL: http://llvm.org/viewvc/llvm-project?rev=348125&view=rev Log: [Analyzer] Actually check for -model-path being a directory The original patch (r348038) clearly contained a typo and checked for '-ctu-dir' twice. Modified:

Re: r348038 - [analyzer] Emit an error for invalid -analyzer-config inputs

2018-12-03 Thread Ilya Biryukov via cfe-commits
Hi Kristóf, There is clearly a typo in checking for -ctu-dir and -model-path being a directory. Instead of checking -model-path, the code was checking for -ctu-dir twice. Landed a fix in r348125. On Fri, Nov 30, 2018 at 10:27 PM Kristof Umann via cfe-commits < cfe-commits@lists.llvm.org> wrote:

r348135 - [CodeComplete] Cleanup access checking in code completion

2018-12-03 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Mon Dec 3 05:29:17 2018 New Revision: 348135 URL: http://llvm.org/viewvc/llvm-project?rev=348135&view=rev Log: [CodeComplete] Cleanup access checking in code completion Summary: Also fixes a crash (see the added 'accessibility-crash.cpp' test). Reviewers: ioeric, kadirce

[clang-tools-extra] r348147 - [clangd] Avoid memory-mapping files on Windows

2018-12-03 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Mon Dec 3 07:21:49 2018 New Revision: 348147 URL: http://llvm.org/viewvc/llvm-project?rev=348147&view=rev Log: [clangd] Avoid memory-mapping files on Windows Summary: Memory-mapping files on Windows leads to them being locked and prevents editors from saving changes to th

Re: r348123 - [clang] Do not read from 'test/SemaCXX/Inputs' inside 'test/AST'

2018-12-03 Thread Ilya Biryukov via cfe-commits
No worries, this was easy to fix. It's impossible to catch those in advance, we miss things like that all the time. On Mon, Dec 3, 2018 at 1:19 PM Aaron Ballman wrote: > On Mon, Dec 3, 2018 at 6:29 AM Ilya Biryukov via cfe-commits > wrote: > > > > Author: ibiryukov >

r348280 - Revert "Avoid emitting redundant or unusable directories in DIFile metadata entries."

2018-12-04 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Tue Dec 4 08:30:45 2018 New Revision: 348280 URL: http://llvm.org/viewvc/llvm-project?rev=348280&view=rev Log: Revert "Avoid emitting redundant or unusable directories in DIFile metadata entries." This reverts commit r348154 and follow-up commits r348211 and r3248213. Re

Re: r348154 - Avoid emitting redundant or unusable directories in DIFile metadata entries.

2018-12-04 Thread Ilya Biryukov via cfe-commits
Hi! I had to revert the fix (r348203) in r348280 as this broke our integrate. Also reverted the original change to avoid having compiler-rt in a broken state. Sorry for the inconvenience, see the r348203 thread for more details. On Tue, Dec 4, 2018 at 12:14 AM Adrian Prantl via cfe-commits < cfe-

r348365 - Move detection of libc++ include dirs to Driver on MacOS

2018-12-05 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Wed Dec 5 06:24:14 2018 New Revision: 348365 URL: http://llvm.org/viewvc/llvm-project?rev=348365&view=rev Log: Move detection of libc++ include dirs to Driver on MacOS Summary: The intention is to make the tools replaying compilations from 'compile_commands.json' (clang-

[clang-tools-extra] r348365 - Move detection of libc++ include dirs to Driver on MacOS

2018-12-05 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Wed Dec 5 06:24:14 2018 New Revision: 348365 URL: http://llvm.org/viewvc/llvm-project?rev=348365&view=rev Log: Move detection of libc++ include dirs to Driver on MacOS Summary: The intention is to make the tools replaying compilations from 'compile_commands.json' (clang-

r348387 - [CodeComplete] Fix a crash in access checks of inner classes

2018-12-05 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Wed Dec 5 09:38:39 2018 New Revision: 348387 URL: http://llvm.org/viewvc/llvm-project?rev=348387&view=rev Log: [CodeComplete] Fix a crash in access checks of inner classes Summary: The crash was introduced in r348135. Reviewers: kadircet Reviewed By: kadircet Subscribe

Re: [clang-tools-extra] r348176 - Fix compilation failure on Windows.

2018-12-05 Thread Ilya Biryukov via cfe-commits
Just noticed this. Really sorry that I submitted the broken version (made the rename at the last minute) and many thanks for fixing this! On Mon, Dec 3, 2018 at 9:01 PM Zachary Turner via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Author: zturner > Date: Mon Dec 3 11:59:00 2018 > New Rev

r348394 - Mention changes to libc++ include dir lookup in release notes.

2018-12-05 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Wed Dec 5 10:32:05 2018 New Revision: 348394 URL: http://llvm.org/viewvc/llvm-project?rev=348394&view=rev Log: Mention changes to libc++ include dir lookup in release notes. Summary: The change itself landed as r348365, see the comment for more details. Reviewers: arpham

[clang-tools-extra] r348490 - [clangd] Remove the test that sometimes deadlocks

2018-12-06 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Thu Dec 6 07:14:11 2018 New Revision: 348490 URL: http://llvm.org/viewvc/llvm-project?rev=348490&view=rev Log: [clangd] Remove the test that sometimes deadlocks Will figure out how to properly rewrite it and recommit. Modified: clang-tools-extra/trunk/unittests/clang

r348590 - [CodeComplete] Fix assertion failure

2018-12-07 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Fri Dec 7 05:17:52 2018 New Revision: 348590 URL: http://llvm.org/viewvc/llvm-project?rev=348590&view=rev Log: [CodeComplete] Fix assertion failure Summary: ...that fires when running completion inside an argument of UnresolvedMemberExpr (see the added test). The asserti

Re: [PATCH] D58448: [clangd] Improve global code completion when scope specifier is unresolved.

2019-02-26 Thread Ilya Biryukov via cfe-commits
Slightly offtopic. It would be nice to add a way to collect quality during actual completion sessions, rather than simulated ones. I'm thinking about clients sending a message to the server mentioning the completion item user ended up selecting in a completion list (would require an LSP extension)

r354864 - [CodeComplete] Propagate preferred type for function arguments in more cases

2019-02-26 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Tue Feb 26 03:01:50 2019 New Revision: 354864 URL: http://llvm.org/viewvc/llvm-project?rev=354864&view=rev Log: [CodeComplete] Propagate preferred type for function arguments in more cases Summary: See the added test for some new cases. This change also removes special cod

[clang-tools-extra] r354957 - [clangd] Set thread priority on Windows

2019-02-27 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Wed Feb 27 02:16:03 2019 New Revision: 354957 URL: http://llvm.org/viewvc/llvm-project?rev=354957&view=rev Log: [clangd] Set thread priority on Windows Reviewers: kadircet, gribozavr Reviewed By: kadircet, gribozavr Subscribers: ioeric, MaskRay, jkorous, arphaman, cfe-co

[clang-tools-extra] r356261 - [clangd] Tune the fuzzy-matching algorithm

2019-03-15 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Fri Mar 15 07:00:49 2019 New Revision: 356261 URL: http://llvm.org/viewvc/llvm-project?rev=356261&view=rev Log: [clangd] Tune the fuzzy-matching algorithm Summary: To reduce the gap between prefix and initialism matches. The motivation is producing better scoring in one p

[clang-tools-extra] r356264 - [clangd] Remove includes of "gmock-matchers.h". NFC

2019-03-15 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Fri Mar 15 07:30:07 2019 New Revision: 356264 URL: http://llvm.org/viewvc/llvm-project?rev=356264&view=rev Log: [clangd] Remove includes of "gmock-matchers.h". NFC For consistency with most of the test code. Modified: clang-tools-extra/trunk/unittests/clangd/ExpectedT

r356743 - [Tooling] Avoid working-dir races in AllTUsToolExecutor

2019-03-22 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Fri Mar 22 04:01:13 2019 New Revision: 356743 URL: http://llvm.org/viewvc/llvm-project?rev=356743&view=rev Log: [Tooling] Avoid working-dir races in AllTUsToolExecutor Reviewers: ioeric Reviewed By: ioeric Subscribers: jdoerfert, cfe-commits Tags: #clang Differential R

[clang-tools-extra] r356880 - [clangd] Send empty diagnostics when a file is closed

2019-03-25 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Mon Mar 25 03:15:11 2019 New Revision: 356880 URL: http://llvm.org/viewvc/llvm-project?rev=356880&view=rev Log: [clangd] Send empty diagnostics when a file is closed Summary: The LSP clients cannot know clangd will not send diagnostic updates for closed files, so we send t

[clang-tools-extra] r356916 - [clangd] Add .cu files to VSCode extension

2019-03-25 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Mon Mar 25 09:18:56 2019 New Revision: 356916 URL: http://llvm.org/viewvc/llvm-project?rev=356916&view=rev Log: [clangd] Add .cu files to VSCode extension Summary: clangd should be able to handle those with a proper compilation database. However, users using 'nvcc' might s

Re: [clang-tools-extra] r357429 - Fix clangd unittest _WIN32 ifdef

2019-04-02 Thread Ilya Biryukov via cfe-commits
Thanks for fixing this! On Mon, Apr 1, 2019 at 11:14 PM Reid Kleckner via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Author: rnk > Date: Mon Apr 1 14:16:17 2019 > New Revision: 357429 > > URL: http://llvm.org/viewvc/llvm-project?rev=357429&view=rev > Log: > Fix clangd unittest _WIN32 ifd

[clang-tools-extra] r357454 - [clangd] Use capacity() instead of size() in RefSlab::bytes()

2019-04-02 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Tue Apr 2 01:24:37 2019 New Revision: 357454 URL: http://llvm.org/viewvc/llvm-project?rev=357454&view=rev Log: [clangd] Use capacity() instead of size() in RefSlab::bytes() Patch by Nathan Ridge. Reviewers: gribozavr Reviewed By: gribozavr Subscribers: ilya-biryukov, i

[clang-tools-extra] r357561 - [clangd] Return clangd::TextEdit in ClangdServer::rename. NFC

2019-04-03 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Wed Apr 3 00:18:43 2019 New Revision: 357561 URL: http://llvm.org/viewvc/llvm-project?rev=357561&view=rev Log: [clangd] Return clangd::TextEdit in ClangdServer::rename. NFC Summary: Instead of tooling::Replacement. To avoid the need to have contents of the file at the cal

Re: [PATCH] D59605: [clangd] Introduce background-indexer

2019-04-12 Thread Ilya Biryukov via cfe-commits
Replies inline. On Thu, Apr 11, 2019 at 7:59 PM Sam McCall wrote: > Thanks - I think there's quite a lot of background missing here: > Indeed, here are clarifications. > what/who is this for, > Building the index for clangd without actually running clangd it seems useful, e.g. for cases when yo

r358414 - Revert r358337: "[CommandLineParser] Add DefaultOption flag"

2019-04-15 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Mon Apr 15 07:43:50 2019 New Revision: 358414 URL: http://llvm.org/viewvc/llvm-project?rev=358414&view=rev Log: Revert r358337: "[CommandLineParser] Add DefaultOption flag" The change causes test failures under asan. Reverting to unbreak our integrate. Modified: cfe/t

Re: r359048 - C++ DR2387: a variable template declared wtih (or instantiated with) a

2019-04-24 Thread Ilya Biryukov via cfe-commits
Hi Richard, This seems to break libc++, found while doing an integrate. The errors are: In file included from valarray:4: .../include/c++/v1/valarray:1062:60: error: explicit instantiation declaration of 'valarray<_Tp>' with internal linkage _LIBCPP_EXTERN_TEMPLATE(_LIBCPP_FUNC_VIS valarray::vala

r359076 - Revert r359048: C++ DR2387: a variable template declared wthi

2019-04-24 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Wed Apr 24 01:50:24 2019 New Revision: 359076 URL: http://llvm.org/viewvc/llvm-project?rev=359076&view=rev Log: Revert r359048: C++ DR2387: a variable template declared wthi The change breaks libc++ with the follwing error: In file included from valarray:4: .../include/c+

Re: r359048 - C++ DR2387: a variable template declared wtih (or instantiated with) a

2019-04-24 Thread Ilya Biryukov via cfe-commits
Reverted in r359076. On Wed, Apr 24, 2019 at 10:28 AM Ilya Biryukov wrote: > Hi Richard, > > This seems to break libc++, found while doing an integrate. The errors are: > > In file included from valarray:4: > .../include/c++/v1/valarray:1062:60: error: explicit instantiation > declaration of 'va

[clang-tools-extra] r359179 - [Testing] Move clangd::Annotations to llvm testing support

2019-04-25 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Thu Apr 25 03:08:31 2019 New Revision: 359179 URL: http://llvm.org/viewvc/llvm-project?rev=359179&view=rev Log: [Testing] Move clangd::Annotations to llvm testing support Summary: Annotations allow writing nice-looking unit test code when one needs access to locations from

r359179 - [Testing] Move clangd::Annotations to llvm testing support

2019-04-25 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Thu Apr 25 03:08:31 2019 New Revision: 359179 URL: http://llvm.org/viewvc/llvm-project?rev=359179&view=rev Log: [Testing] Move clangd::Annotations to llvm testing support Summary: Annotations allow writing nice-looking unit test code when one needs access to locations from

[clang-tools-extra] r359291 - [clangd] Remove unused ClangdServer::dynamicIndex(). NFC

2019-04-26 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Fri Apr 26 02:36:22 2019 New Revision: 359291 URL: http://llvm.org/viewvc/llvm-project?rev=359291&view=rev Log: [clangd] Remove unused ClangdServer::dynamicIndex(). NFC Modified: clang-tools-extra/trunk/clangd/ClangdServer.h Modified: clang-tools-extra/trunk/clangd/Cl

[clang-tools-extra] r359866 - [clangd] Minor code style cleanups in Protocol.h. NFC

2019-05-03 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Fri May 3 01:03:21 2019 New Revision: 359866 URL: http://llvm.org/viewvc/llvm-project?rev=359866&view=rev Log: [clangd] Minor code style cleanups in Protocol.h. NFC - Remove a parameter name that was misspelled (OS used for non-stream parameter) - Declare operator == (T

[clang-tools-extra] r360026 - [clangd] Qualify uses of ::testing everywhere. NFC

2019-05-06 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Mon May 6 03:08:47 2019 New Revision: 360026 URL: http://llvm.org/viewvc/llvm-project?rev=360026&view=rev Log: [clangd] Qualify uses of ::testing everywhere. NFC Add an initial '::' qualifier to all usages of 'testing' namespace that did not have one. The goal is to make

r360042 - [CodeComplete] Add a trailing semicolons to some pattern completions

2019-05-06 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Mon May 6 06:18:00 2019 New Revision: 360042 URL: http://llvm.org/viewvc/llvm-project?rev=360042&view=rev Log: [CodeComplete] Add a trailing semicolons to some pattern completions Summary: Where semicolon is required in any case. Here's a list of completions that now have

r360048 - [CodeComplete] Update python tests after r360042

2019-05-06 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Mon May 6 07:56:24 2019 New Revision: 360048 URL: http://llvm.org/viewvc/llvm-project?rev=360048&view=rev Log: [CodeComplete] Update python tests after r360042 Modified: cfe/trunk/bindings/python/tests/cindex/test_code_completion.py Modified: cfe/trunk/bindings/pytho

[clang-tools-extra] r360151 - [clangd] Introduce intermediate representation of formatted text

2019-05-07 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Tue May 7 07:18:18 2019 New Revision: 360151 URL: http://llvm.org/viewvc/llvm-project?rev=360151&view=rev Log: [clangd] Introduce intermediate representation of formatted text Summary: That can render to markdown or plain text. Used for findHover requests. Reviewers: mal

[clang-tools-extra] r360231 - [clang-tidy] Do not show incorrect fix in modernize-make-unique

2019-05-08 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Wed May 8 01:52:18 2019 New Revision: 360231 URL: http://llvm.org/viewvc/llvm-project?rev=360231&view=rev Log: [clang-tidy] Do not show incorrect fix in modernize-make-unique Summary: The case when initialize_list hides behind an implicit case was not handled before. Rev

[clang-tools-extra] r360332 - [clangd] Use AsyncTaskRunner in BackgroundIndex instead of std::thread

2019-05-09 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Thu May 9 05:04:07 2019 New Revision: 360332 URL: http://llvm.org/viewvc/llvm-project?rev=360332&view=rev Log: [clangd] Use AsyncTaskRunner in BackgroundIndex instead of std::thread Summary: To unify the way we create threads in clangd. This should simplify landing D50993

[clang-tools-extra] r360336 - [clangd] Fix a TSAN warning in TUSchedulerTests

2019-05-09 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Thu May 9 05:21:28 2019 New Revision: 360336 URL: http://llvm.org/viewvc/llvm-project?rev=360336&view=rev Log: [clangd] Fix a TSAN warning in TUSchedulerTests Modified: clang-tools-extra/trunk/clangd/unittests/TUSchedulerTests.cpp Modified: clang-tools-extra/trunk/cl

r342363 - [clang-Format] Fix indentation of member call after block

2018-09-17 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Mon Sep 17 00:46:20 2018 New Revision: 342363 URL: http://llvm.org/viewvc/llvm-project?rev=342363&view=rev Log: [clang-Format] Fix indentation of member call after block Summary: before patch: > echo "test() {([]() -> {int b = 32;return 3;}).as("");});" | clang-format > -

Re: [clang-tools-extra] r342730 - [clangd] Remember to serialize symbol origin in YAML.

2018-09-24 Thread Ilya Biryukov via cfe-commits
Why would we want to serialize the origin? We only serialize and deserialize for the static index, it does not seem to be useful to serialize origin in that scenario. Am I missing something? On Fri, Sep 21, 2018 at 3:06 PM Eric Liu via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Author: i

Re: [clang-tools-extra] r342730 - [clangd] Remember to serialize symbol origin in YAML.

2018-09-25 Thread Ilya Biryukov via cfe-commits
Eric Liu schrieb am Di., 25. Sep. 2018, 01:22: > On Tue, Sep 25, 2018 at 6:34 AM Ilya Biryukov > wrote: > >> Why would we want to serialize the origin? >> > We only serialize and deserialize for the static index, it does not seem >> to be useful to serialize origin in that scenario. >> > We seri

[clang-tools-extra] r343066 - [clangd] Handle template args for disabled function arg snippets

2018-09-25 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Tue Sep 25 22:45:31 2018 New Revision: 343066 URL: http://llvm.org/viewvc/llvm-project?rev=343066&view=rev Log: [clangd] Handle template args for disabled function arg snippets Reviewers: kadircet, ioeric, sammccall Reviewed By: kadircet Subscribers: MaskRay, jkorous, ar

[clang-tools-extra] r343067 - [clangd] Fix crash if pending computations were active on exit

2018-09-25 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Tue Sep 25 22:48:29 2018 New Revision: 343067 URL: http://llvm.org/viewvc/llvm-project?rev=343067&view=rev Log: [clangd] Fix crash if pending computations were active on exit Summary: Make sure JSONRPCDispatcher outlives the worker threads, they access its fields to remove

Re: [clang-tools-extra] r342730 - [clangd] Remember to serialize symbol origin in YAML.

2018-09-26 Thread Ilya Biryukov via cfe-commits
> The downside is probably that all symbols in yaml would have the same origin, which is a bit redundant but doesn't seem to matter much. All my comments boil down to this one, but the argument is not only redundant - it does not make sense design-wise to store an origin in the serialized static in

r352862 - Disable tidy checks with too many hits

2019-02-01 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Fri Feb 1 03:20:13 2019 New Revision: 352862 URL: http://llvm.org/viewvc/llvm-project?rev=352862&view=rev Log: Disable tidy checks with too many hits Summary: Some tidy checks have too many hits in the codebase, making it hard to spot other results from clang-tidy, theref

[clang-tools-extra] r353295 - [clangd] Enable clangd on Objective-C in VSCode

2019-02-06 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Wed Feb 6 05:47:49 2019 New Revision: 353295 URL: http://llvm.org/viewvc/llvm-project?rev=353295&view=rev Log: [clangd] Enable clangd on Objective-C in VSCode Summary: Thanks to Andreas Ostermeyer for raising this on the mailing list. Reviewers: hokein Reviewed By: hoke

[clang-tools-extra] r353296 - [clangd] Update dev dependencies of clangd-vscode

2019-02-06 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Wed Feb 6 05:53:24 2019 New Revision: 353296 URL: http://llvm.org/viewvc/llvm-project?rev=353296&view=rev Log: [clangd] Update dev dependencies of clangd-vscode Summary: The version bumps are a result of running `npm audit`, which found 3 security issues in previous versi

r353840 - [Sema] Fix a crash in access checking for deduction guides

2019-02-12 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Tue Feb 12 06:21:44 2019 New Revision: 353840 URL: http://llvm.org/viewvc/llvm-project?rev=353840&view=rev Log: [Sema] Fix a crash in access checking for deduction guides Summary: See the added test for a repro. Reviewers: sammccall Reviewed By: sammccall Subscribers: c

[clang-tools-extra] r354349 - [clangd] Add an option in the code to not display number of fixes

2019-02-19 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Tue Feb 19 08:50:37 2019 New Revision: 354349 URL: http://llvm.org/viewvc/llvm-project?rev=354349&view=rev Log: [clangd] Add an option in the code to not display number of fixes Summary: Only to the APIs, which are used by our embedders. We do not plan to add a user-facing

[clang-tools-extra] r354456 - [clangd] Fix a typo. NFC

2019-02-20 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Wed Feb 20 04:31:44 2019 New Revision: 354456 URL: http://llvm.org/viewvc/llvm-project?rev=354456&view=rev Log: [clangd] Fix a typo. NFC The documentation for -index-file mentioned clang-index instead of clangd-indexer. Modified: clang-tools-extra/trunk/clangd/tool/Cl

[clang-tools-extra] r354505 - [clangd] Store index in '.clangd/index' instead of '.clangd-index'

2019-02-20 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Wed Feb 20 11:08:06 2019 New Revision: 354505 URL: http://llvm.org/viewvc/llvm-project?rev=354505&view=rev Log: [clangd] Store index in '.clangd/index' instead of '.clangd-index' Summary: To take up the .clangd folder for other potential uses in the future. Reviewers: kad

[clang-tools-extra] r354507 - [clangd] Fix a crash in Selection

2019-02-20 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Wed Feb 20 11:26:39 2019 New Revision: 354507 URL: http://llvm.org/viewvc/llvm-project?rev=354507&view=rev Log: [clangd] Fix a crash in Selection Summary: The assertion checking that a range of a node is a token range does not hold in case of "split" tokens, e.g. between t

[clang-tools-extra] r312483 - clangd: Tolerate additional headers

2017-09-04 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Mon Sep 4 05:28:15 2017 New Revision: 312483 URL: http://llvm.org/viewvc/llvm-project?rev=312483&view=rev Log: clangd: Tolerate additional headers Summary: The language server protocol specified 2 headers (Content-Length and Content-Type), but does not specify their sequ

r312788 - Fixed a crash in code completion.

2017-09-08 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Fri Sep 8 06:36:38 2017 New Revision: 312788 URL: http://llvm.org/viewvc/llvm-project?rev=312788&view=rev Log: Fixed a crash in code completion. Summary: The crash occured when FunctionDecl was parsed with an initializer. Reviewers: bkramer, klimek, francisco.lopes Revi

r313014 - Fix recording preamble's conditional stack in skipped PP branches.

2017-09-12 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Tue Sep 12 01:35:57 2017 New Revision: 313014 URL: http://llvm.org/viewvc/llvm-project?rev=313014&view=rev Log: Fix recording preamble's conditional stack in skipped PP branches. Summary: This fixes PR34547. `Lexer::LexEndOfFile` handles recording of ConditionalStack for p

[clang-tools-extra] r313029 - [clangd] Add support for snippet completions

2017-09-12 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Tue Sep 12 06:57:14 2017 New Revision: 313029 URL: http://llvm.org/viewvc/llvm-project?rev=313029&view=rev Log: [clangd] Add support for snippet completions Enhances CompletionItemsCollector in such a way that snippet completions can be presented to the client. Enable snip

[clang-tools-extra] r313730 - [clangd] Introduced Logger interface.

2017-09-20 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Wed Sep 20 00:24:15 2017 New Revision: 313730 URL: http://llvm.org/viewvc/llvm-project?rev=313730&view=rev Log: [clangd] Introduced Logger interface. Summary: This fixes a bunch of logging-related FIXMEs. Reviewers: bkramer, krasimir, malaperle Reviewed By: malaperle Su

[clang-tools-extra] r313749 - [clangd] Run clang-format on ClangdUnit.cpp. NFC.

2017-09-20 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Wed Sep 20 03:46:58 2017 New Revision: 313749 URL: http://llvm.org/viewvc/llvm-project?rev=313749&view=rev Log: [clangd] Run clang-format on ClangdUnit.cpp. NFC. Modified: clang-tools-extra/trunk/clangd/ClangdUnit.cpp Modified: clang-tools-extra/trunk/clangd/ClangdUni

[clang-tools-extra] r313754 - [clangd] Serialize onDiagnosticsReady callbacks for the same file.

2017-09-20 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Wed Sep 20 05:58:55 2017 New Revision: 313754 URL: http://llvm.org/viewvc/llvm-project?rev=313754&view=rev Log: [clangd] Serialize onDiagnosticsReady callbacks for the same file. Summary: Calls to onDiagnosticsReady were done concurrently before. This sometimes led to olde

[clang-tools-extra] r313759 - [clangd] Put inacessible items to the end of completion list.

2017-09-20 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Wed Sep 20 08:09:14 2017 New Revision: 313759 URL: http://llvm.org/viewvc/llvm-project?rev=313759&view=rev Log: [clangd] Put inacessible items to the end of completion list. Reviewers: bkramer, krasimir Reviewed By: krasimir Subscribers: klimek, cfe-commits Differential

Re: [clang-tools-extra] r313754 - [clangd] Serialize onDiagnosticsReady callbacks for the same file.

2017-09-20 Thread Ilya Biryukov via cfe-commits
like the sanitizers are > reporting anything suspicious. Do you by any chance know what went wrong? > If it will turn out to be a macOS only thing it might make sense to XFAIL > formatting.test until the issue is resolved. > > Thanks, > Alex > > On 20 September 2017 at 13:58,

[clang-tools-extra] r313801 - [clangd] Fixed crash on MacOS.

2017-09-20 Thread Ilya Biryukov via cfe-commits
Author: ibiryukov Date: Wed Sep 20 12:32:06 2017 New Revision: 313801 URL: http://llvm.org/viewvc/llvm-project?rev=313801&view=rev Log: [clangd] Fixed crash on MacOS. Caused by invalid order of members in ClangdServer. DiagnosticsMutex was used after destruction. Modified: clang-tools-extra/

Re: [clang-tools-extra] r313754 - [clangd] Serialize onDiagnosticsReady callbacks for the same file.

2017-09-20 Thread Ilya Biryukov via cfe-commits
be a macOS only thing it might make sense to XFAIL >> formatting.test until the issue is resolved. >> >> Thanks, >> Alex >> >> On 20 September 2017 at 13:58, Ilya Biryukov via cfe-commits < >> cfe-commits@lists.llvm.org> wrote: >> >>> Author

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