Like Go/Rust, why not to have "func" keyword before function declaration
Danni Coy via Digitalmars-d
digitalmars-d at puremagic.com
Wed Jan 21 19:55:45 PST 2015
regular expression search FunctionName.*\{ or FunctionName.*$\s*\{
depending on brace style
On Wed, Jan 21, 2015 at 4:37 AM, Joakim via Digitalmars-d
<digitalmars-d at puremagic.com> wrote:
> On Tuesday, 20 January 2015 at 00:13:37 UTC, Brian Schott wrote:
>>
>> On Monday, 19 January 2015 at 22:49:41 UTC, Ary Borenszweig wrote:
>>>
>>> So... how do you search for a function definition in D without an IDE?
>>
>>
>> Running `dscanner --help` prints this:
>>
>> --declaration | -d symbolName [sourceFiles sourceDirectories]
>> Find the location where symbolName is declared. This should be more
>> accurate than "grep". Searches the given files and directories, or the
>> current working directory if none are specified.
>
>
> ^^^^^
> THIS!
>
> I agree with Ary that grep hits a lot of false positives and all the
> formatting tricks don't work with other people's code, plus I've never liked
> IDES. Dscanner's D declaration finder has become indispensable in the short
> time I've been using it, to the point where I dread going back to searching
> for C declarations and getting stuck with grep again.
More information about the Digitalmars-d
mailing list