Skip to content

Instantly share code, notes, and snippets.

@ZaneA
Created February 6, 2013 03:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ZaneA/4719983 to your computer and use it in GitHub Desktop.
Save ZaneA/4719983 to your computer and use it in GitHub Desktop.
.ycm_extra_conf.py for a project that has an existing .clang_complete
# Specify compiler flags for the YouCompleteMe plugin in Vim.
def FlagsForFile(filename):
return {
'flags': open('.clang_complete', 'r').readlines(),
'do_cache': True
}
@aytackanaci
Copy link

Is it possible to get the same functionality for Unix Makefiles? I usually use cmake. Can I use the generated makefile to generate a ycm_extra_config.py for that project?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment