Re: RFA: implement ambiguous linespec proposal

Doug Evans
2011-11-16T05:22:46Z

On Tue, Nov 15, 2011 at 8:57 PM, Doug Evans <dje@google.com> wrote:
> On Mon, Nov 14, 2011 at 1:10 PM, Tom Tromey <tromey@redhat.com> wrote:
>>>>>>> "Tom" == Tom Tromey <tromey@redhat.com> writes:
>>
>> Tom> Here is a refresh of this patch.  This fixes the regressions noted by
>> Tom> Jan, but also changes ovsrch.exp not to assume that namespace lookups
>> Tom> are done.
>>
>> Here is the final revision.

Another question while we're cleaning up linespecs, if I may.
The docs have this:

@item '@var{filename}'::@var{funcaddr}
Like @var{funcaddr} above, but also specifies the name of the source
file explicitly. This is useful if the name of the function does not
specify the function unambiguously, e.g., if there are several
functions with identical names in different source files.

Is the double colon, ::, a typo? I've only ever seen filename
delimited with a single colon.

I'm hoping we can trivially decide that a file name is present by
seeing a single colon.
[First trying "foo" in "foo::bar" as file, only afterwards to try it
as a class or a namespace if that fails is clumsy, and a perf issue.]