ΒΆtooling::CompileCommand transferCompileCommand(
    tooling::CompileCommand,
    llvm::StringRef Filename)

Description

Transforms a compile command so that it applies the same configuration to a different file. Most args are left intact, but tweaks may be needed to certain flags (-x, -std etc). The output command will always end in {"--", Filename}.

Declared at: clang/include/clang/Tooling/CompilationDatabase.h:221

Parameters

tooling::CompileCommand
llvm::StringRef Filename