You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
add option to hide declarations in 'Outline' #12422
This is currently "by design", but we can treat this as a enhancement request. This occurs only if the declaration and definition are in the same file (a potential "workaround" would be to put the declarations in a header file). And the function declarations don't need to be declared if you're able to put the definitions used by later definitions before they're used if there's no mutual dependency.
If there are already so many options to hide different objects I would assume adding a new one would be max 3 lines of code, since object type already has a label "declaration"
My point is that in simple C I don't see much benefit listing any prototypes, thus it would always be noise.
As refecence, Eclipse IDE has an option to hide prototypes too.
About workaround, critical sw requires explicit prototypes before function definitions.
And most code base is already legacy code, so we cannot just freely move things around.
This feature request is being closed due to insufficient upvotes. Please leave a 👍-upvote or 👎-downvote reaction on the issue to help us prioritize it. When enough upvotes are received, this issue will be eligible for our backlog.
Reacted by pbatiot, minoru-nagasawa, Optimization10, Justin Gong, James Limbouris, Gutya, shaundawson789, mburch42, L-i-o and RT-TR
Activity
sean-mcmanus commentedon Jun 28, 2024
This is currently "by design", but we can treat this as a enhancement request. This occurs only if the declaration and definition are in the same file (a potential "workaround" would be to put the declarations in a header file). And the function declarations don't need to be declared if you're able to put the definitions used by later definitions before they're used if there's no mutual dependency.
mrx23dot commentedon Jun 29, 2024
If there are already so many options to hide different objects I would assume adding a new one would be max 3 lines of code, since object type already has a label "declaration"
My point is that in simple C I don't see much benefit listing any prototypes, thus it would always be noise.
As refecence, Eclipse IDE has an option to hide prototypes too.
About workaround, critical sw requires explicit prototypes before function definitions.
And most code base is already legacy code, so we cannot just freely move things around.
github-actions commentedon Aug 28, 2024
This feature request is being closed due to insufficient upvotes. Please leave a 👍-upvote or 👎-downvote reaction on the issue to help us prioritize it. When enough upvotes are received, this issue will be eligible for our backlog.
github-actions commentedon May 22, 2025
This feature request has received enough votes to be added to our backlog.