INNER CODE UNIT · Python

DirectoryOfThisScript

mongodb/mongo-cxx-driver · .ycm_extra_conf.py:72

def DirectoryOfThisScript():
    return os.path.dirname(os.path.abspath(__file__))


def MakeRelativePathsInFlagsAbsolute(flags, working_directory):
    if not working_directory:
        return list(flags)

    new_flags = []
    make_next_absolute = False
    path_flags = ['-isystem', '-I', '-iquote', '--sysroot=']

    for flag in flags:
        new_flag = flag

        if make_next_absolute:
            make_next_absolute = False
            if not flag.startswith('/'):

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…