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

Add option to disable the extra clang flags in MacOS [Feature Request] #1340

Open
Azure-Vani opened this issue Oct 15, 2019 · 2 comments
Open

Comments

@Azure-Vani
Copy link

In particular, the if add_extra_clang_flags: branch in PrepareFlagsForClang function in file ycmd/ycmd/completers/cpp/flags.py. Otherwise, the result when complete headers is super noisy when somebody uses g++ rather than clang on macOS

@bstaletic
Copy link
Collaborator

I don't think that is a good idea. That branch that reaches into AddMacIncludePaths is also responsible for adding -resource-dir= and -fno-delayed-template-parsing on Windows. I've done invasive changes in flags.py before and it was very frustrating.

That said, you can still avoid that by:

  • Switching to the clangd based completer
  • Using compilation databases instead of the extra conf files.

@puremourning
Copy link
Member

I actually had reason to need this recently myself for some very bizarre reasons so maybe I will add it at some point.

@puremourning puremourning changed the title Add option to disable the extra clang flags in MacOS Add option to disable the extra clang flags in MacOS [Feature Request] Mar 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants