Skip to content

Autolinks to functions do not take effect in @name scope and file scope. #9587

Closed
@st-masa

Description

@st-masa

Describe the bug

From 1.9.5, some patterns of Links to functions are not linked.

  1. <functionName>"("<argument-list>")" -> not linked
  2. <functionName>"()" -> not linked
  3. "::"<functionName> -> not linked
  4. (<className>"::")n<functionName>"("<argument-list>")" -> linked
  5. (<className>"::")n<functionName>"("<argument-list>")"<modifiers> -> not checked... but maybe linked
  6. (<className>"::")n<functionName>"()" -> linked
  7. (<className>"::")n<functionName> -> linked

Expected behavior
All patterns of links are linked correctly.

Screenshots
MissingAutolinks

To Reproduce

Extract the attachment AutolinksToFunctionsSample.zip and execute doxygen with its DoxyFile.

    @details
    - Link to namespaceFunction(int arg1, int arg2) without reference cmd. 
    - Link to namespaceFunction() without reference cmd.
    - Link to ::namespaceFunction without reference cmd and brackets.
    - Link to namespaceFunction without reference cmd and brackets. (not autolinked by design.)
    - Link to @ref namespaceFunction(int arg1, int arg2) with reference cmd.
    - Link to @ref namespaceFunction() with reference cmd.
    - Link to @ref namespaceFunction with reference cmd but without brackets.
    - Link to sample::namespaceFunction(int arg1, int arg2) without reference cmd.
    - Link to sample::namespaceFunction() without reference cmd.
    - Link to sample::namespaceFunction without reference cmd and brackets.
    - Link to @ref sample::namespaceFunction(int arg1, int arg2) with reference cmd.
    - Link to @ref sample::namespaceFunction() with reference cmd.
    - Link to @ref sample::namespaceFunction with reference cmd but without brackets.

Version
1.9.5 on Windows 10 (64 bit) and MacOSX.
Maybe other OS should be the same.

Additional context

The refactored getDefsNew() in Refactoring: reimplement getDefs using symbol resolver seems to cause this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions