Skip to content

Function prototypes with trailing macros do not display doc comments #8176

Description

@nmggithub

Bug type: Language Service

Describe the bug

  • OS and Version: Arch Linux
  • VS Code Version: 1.60.0
  • C/C++ Extension Version: 1.6.0
  • The issue persists with no other extensions.

Steps to reproduce
(note: the examples below reference Linux header files)

  1. Open a C/C++ file
  2. Include unistd.h
  3. Try to use the fork function in the code
  4. Mouseover the function and observe there is no text describing the function
  5. Right-click the function and go to the definition
  6. See the comment is there
  7. Change __THROWNL to __THROW
  8. Go back to the code file and observe the comment now appears on mouseover

Expected behavior
The comment appears on mouseover even when __THROWNL is present.

Additional context
I am well aware this is likely an issue directly with my version of glibc, but I thought I'd bring the issue up here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Feature: Doc commentsAn issue related to code comments shown in hover, completion, and signature help.Language Servicebug

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions