Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IntelliSense does not recognize nested functions (GCC extension) #1035

Open
UR3IQO opened this issue Sep 14, 2017 · 16 comments
Open

IntelliSense does not recognize nested functions (GCC extension) #1035

UR3IQO opened this issue Sep 14, 2017 · 16 comments
Labels
Feature Request Language Service more votes needed Issues that have been postponed until more community members upvote it Visual Studio Inherited from Visual Studio
Milestone

Comments

@UR3IQO
Copy link

UR3IQO commented Sep 14, 2017

I use nested functions in C (GNU C extension https://gcc.gnu.org/onlinedocs/gcc-4.6.0/gcc/Nested-Functions.html ) and found it very helpful in some situation. Unfortunately IntelliSense does not support them. Are there any plans to add correct handling of this GNU C extension?

@bobbrow
Copy link
Member

bobbrow commented Sep 14, 2017

We can add it to the backlog, but this is not likely something we would address anytime soon.

@UR3IQO
Copy link
Author

UR3IQO commented Sep 14, 2017

Please add it.

@GabeAl
Copy link

GabeAl commented Sep 18, 2017

+1 I use these extensively. Very convenient sometimes to let the compiler figure out variable scope, etc instead of explicitly coding long extension lists. Also it's one of the few ways to grant a qsort comparator knowledge of the environment in which it is invoked.

@raggesilver
Copy link

Is there at least a way to disable (suppress) that warning?

@sean-mcmanus
Copy link
Contributor

@raggesilver What warning are you referring to? You can set errorSquiggles to "Disabled" to disable all messages, but we don't have a way to remove certain ones.

@BionicRabbit3
Copy link

+1 I'd be really glad to see this feature added.
I really like the error squiggles in general because they are genuinely helpful in finding bugs even before compilation.
It's just really annoying how a single use of a nested function fills the entire rest of the file with those squiggles...

@bobbrow
Copy link
Member

bobbrow commented May 20, 2019

Please add a +1 (thumbs up) to the first post so we can track the priority of this feature request better.
image

@la10736
Copy link

la10736 commented Oct 22, 2019

Is there any mentoring instruction? I can think to try to work on it if you get me any hints on where should I look.

I like vcode but our project use nested function intensely so I cannot adopt it if this issue is not solved.

@sean-mcmanus
Copy link
Contributor

@la10736 Our parser code is not open source.

@la10736
Copy link

la10736 commented Oct 22, 2019

Ok, fine!

@Colengms
Copy link
Contributor

This repro's in VS. (We share common IntelliSense components with VS). I opened a bug against VS here: https://developercommunity.visualstudio.com/content/problem/794903/intellisense-in-gcc-mode-does-not-recognize-nested.html

@Colengms Colengms added the Visual Studio Inherited from Visual Studio label Oct 25, 2019
@Colengms Colengms added this to the Tracking milestone Oct 25, 2019
@michelleangela michelleangela changed the title IntelliSense does not recognize nested functions (GCC extention) IntelliSense does not recognize nested functions (GCC extension) May 7, 2020
@sean-mcmanus sean-mcmanus added the more votes needed Issues that have been postponed until more community members upvote it label Jul 3, 2021
@ArmoredPony
Copy link

This problem will soon celebrate its fifth anniversary. Will this ever be fixed? Other GCC extensions seem to be supported (at least, they aren't marked as an error).

@sean-mcmanus
Copy link
Contributor

@ArmoredPony It's a missing feature in our parser that we'd have to get the parser team to add. This is the 2nd or so most upvoted IntelliSense-related feature so that makes it more of a priority, but I don't have any ETA yet.

@AnElectricalEngineer
Copy link

I would love for this to be fixed; I work with code that uses nested functions often, and the error squiggles are an annoyance.

@laplacedoge
Copy link

Now it's 2023, we do need this feature 💔 .

@ooyay
Copy link

ooyay commented Jan 1, 2024

its 2024 common guys xd

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Request Language Service more votes needed Issues that have been postponed until more community members upvote it Visual Studio Inherited from Visual Studio
Projects
None yet
Development

No branches or pull requests