.ycm_extra_conf.py revision 0d8efe3535b3ce9ecbc2c6482007edfc3ac492d0
2f6a59070559786428d9eaf199ae3d61772b2225Kay Sievers "make", "-s", "print-%s" % varname]).decode().split()
6d0274f11547a0f11200bb82bf598a5a253e12cfLennart Poettering return list(itertools.chain.from_iterable(lists))
6d0274f11547a0f11200bb82bf598a5a253e12cfLennart Poettering return os.path.dirname(os.path.abspath(__file__))
6d0274f11547a0f11200bb82bf598a5a253e12cfLennart Poetteringdef MakeRelativePathsInFlagsAbsolute(flags, working_directory):
6d0274f11547a0f11200bb82bf598a5a253e12cfLennart Poettering path_flags = [ '-isystem', '-I', '-iquote', '--sysroot=' ]
a281d9c7851b16c4c9195d042901540ee9ced799Thomas Hindoe Paaboel Andersen new_flag = os.path.join(working_directory, flag)
6d0274f11547a0f11200bb82bf598a5a253e12cfLennart Poettering new_flag = path_flag + os.path.join(working_directory, path)
6d0274f11547a0f11200bb82bf598a5a253e12cfLennart Poettering 'flags': MakeRelativePathsInFlagsAbsolute(flags, relative_to),
6d0274f11547a0f11200bb82bf598a5a253e12cfLennart Poetteringflags = Flatten(map(GetFlagsFromMakefile, [
6d0274f11547a0f11200bb82bf598a5a253e12cfLennart Poettering 'AM_CPPFLAGS',
6d0274f11547a0f11200bb82bf598a5a253e12cfLennart Poettering# these flags cause crashes in libclang, so remove them
6d0274f11547a0f11200bb82bf598a5a253e12cfLennart Poetteringflags.remove('-Wsuggest-attribute=noreturn')
ffc06c3513d9a0693c7f810d03b20705127ba55aKay Sievers# vim: set et ts=2 sw=2: