ycmd icon indicating copy to clipboard operation
ycmd copied to clipboard

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

Open Azure-Vani opened this issue 6 years ago • 2 comments

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

Azure-Vani avatar Oct 15 '19 16:10 Azure-Vani

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.

bstaletic avatar Oct 15 '19 17:10 bstaletic

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

puremourning avatar Mar 24 '22 09:03 puremourning