Re: [clang-tools-extra] r342227 - [clangd] NFC: Fix IndexBenchmark CLI arguments handling

2018-09-18 Thread Kirill Bobyrev via cfe-commits
Thanks for the explanation! I didn’t know that benchmark’s Initialize does that, that was probably the source of my confusion. The suggestion looks reasonable, I should try this approach, it looks to be cleaner. -Kirill > On 18 Sep 2018, at 21:16, Roman Lebedev wrote: > > On Tue, Sep 18, 2018

Re: [clang-tools-extra] r342227 - [clangd] NFC: Fix IndexBenchmark CLI arguments handling

2018-09-18 Thread Roman Lebedev via cfe-commits
On Tue, Sep 18, 2018 at 10:09 PM, Kirill Bobyrev wrote: > Hi Roman, > > Is there any benefit of doing so? Also, I’m not sure whether I understood you > correctly. Consuming benchmark options *before* trimming would probably not > be the desired behaviour since the first two arguments arguments a

Re: [clang-tools-extra] r342227 - [clangd] NFC: Fix IndexBenchmark CLI arguments handling

2018-09-18 Thread Kirill Bobyrev via cfe-commits
Hi Roman, Is there any benefit of doing so? Also, I’m not sure whether I understood you correctly. Consuming benchmark options *before* trimming would probably not be the desired behaviour since the first two arguments arguments are passed directly to the tool driver. I might have misunderstoo

Re: [clang-tools-extra] r342227 - [clangd] NFC: Fix IndexBenchmark CLI arguments handling

2018-09-14 Thread Roman Lebedev via cfe-commits
On Fri, Sep 14, 2018 at 3:21 PM, Kirill Bobyrev via cfe-commits wrote: > Author: omtcyfz > Date: Fri Sep 14 05:21:09 2018 > New Revision: 342227 > > URL: http://llvm.org/viewvc/llvm-project?rev=342227&view=rev > Log: > [clangd] NFC: Fix IndexBenchmark CLI arguments handling > > Modified: > cla

[clang-tools-extra] r342227 - [clangd] NFC: Fix IndexBenchmark CLI arguments handling

2018-09-14 Thread Kirill Bobyrev via cfe-commits
Author: omtcyfz Date: Fri Sep 14 05:21:09 2018 New Revision: 342227 URL: http://llvm.org/viewvc/llvm-project?rev=342227&view=rev Log: [clangd] NFC: Fix IndexBenchmark CLI arguments handling Modified: clang-tools-extra/trunk/clangd/benchmarks/IndexBenchmark.cpp Modified: clang-tools-extra/tru