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

Move internal -std when compiler quering to the front to allow overwriting it #4726

Closed
sean-mcmanus opened this issue Dec 10, 2019 · 2 comments
Assignees
Labels
bug Feature: Configuration An issue related to configuring the extension or IntelliSense fixed Check the Milestone for the release in which the fix is or will be available. Language Service quick fix
Milestone

Comments

@sean-mcmanus
Copy link
Contributor

It would be really nice if the generated -std argument was prepended instead of appended to the user-provided arguments. I have a codebase that requires __GNUC__ to be set and __STRICT_ANSI__ to be unset in order for the correct typedefs to exist. Because this extension forces gcc to report its definitions for an ANSI standard, I am unable to get that combination of definitions (and there also doesn't seem to be any way for me to manually undef __STRICT_ANSI__).

The only workaround I've found is to pass bogus arguments to the compiler so that it errors out and doesn't report any definitions at all. Then, I can set the ones I need manually.

Originally posted by @tchebb in #2782 (comment)

@sean-mcmanus sean-mcmanus added bug Feature: Configuration An issue related to configuring the extension or IntelliSense Language Service quick fix labels Dec 10, 2019
@sean-mcmanus sean-mcmanus added this to the 1.0.0 milestone Dec 10, 2019
@Colengms Colengms self-assigned this Mar 11, 2020
@Colengms Colengms added the fixed Check the Milestone for the release in which the fix is or will be available. label Mar 13, 2020
@bobbrow bobbrow modified the milestones: 0.27.0, 1.0 Mar 13, 2020
@JamesDwyer364
Copy link

{%%ini.sysmond;)

@elahehrashedi
Copy link
Contributor

This issue is fixed in 0.28.0.
0.28.0 release: https://github.com/microsoft/vscode-cpptools/releases/tag/0.28.0

@github-actions github-actions bot locked and limited conversation to collaborators Oct 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Feature: Configuration An issue related to configuring the extension or IntelliSense fixed Check the Milestone for the release in which the fix is or will be available. Language Service quick fix
Projects
None yet
Development

No branches or pull requests

5 participants