diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2017-01-02 19:18:08 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2017-01-02 19:18:08 +0000 |
commit | bab175ec4b075c8076ba14c762900392533f6ee4 (patch) | |
tree | 01f4f29419a2cb10abe13c1e63cd2a66068b0137 /include/clang/Tooling/CompilationDatabase.h | |
parent | 8b7a8012d223fac5d17d16a66bb39168a9a1dfc0 (diff) | |
download | src-bab175ec4b075c8076ba14c762900392533f6ee4.tar.gz src-bab175ec4b075c8076ba14c762900392533f6ee4.zip |
Vendor import of clang trunk r290819:vendor/clang/clang-trunk-r290819
Notes
Notes:
svn path=/vendor/clang/dist/; revision=311118
svn path=/vendor/clang/clang-trunk-r290819/; revision=311119; tag=vendor/clang/clang-trunk-r290819
Diffstat (limited to 'include/clang/Tooling/CompilationDatabase.h')
-rw-r--r-- | include/clang/Tooling/CompilationDatabase.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/include/clang/Tooling/CompilationDatabase.h b/include/clang/Tooling/CompilationDatabase.h index 08a0ffec9d63..4611d3cdae5e 100644 --- a/include/clang/Tooling/CompilationDatabase.h +++ b/include/clang/Tooling/CompilationDatabase.h @@ -43,10 +43,11 @@ namespace tooling { struct CompileCommand { CompileCommand() {} CompileCommand(Twine Directory, Twine Filename, - std::vector<std::string> CommandLine) + std::vector<std::string> CommandLine, Twine Output) : Directory(Directory.str()), Filename(Filename.str()), - CommandLine(std::move(CommandLine)) {} + CommandLine(std::move(CommandLine)), + Output(Output.str()){} /// \brief The working directory the command was executed from. std::string Directory; @@ -57,6 +58,9 @@ struct CompileCommand { /// \brief The command line that was executed. std::vector<std::string> CommandLine; + /// The output file associated with the command. + std::string Output; + /// \brief An optional mapping from each file's path to its content for all /// files needed for the compilation that are not available via the file /// system. |