[all-commits] [llvm/llvm-project] 4258d6: [Tooling] When transferring compile commands betwe...
Sam McCall via All-commits
all-commits at lists.llvm.org
Mon Jan 10 16:41:56 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 4258d68dc73789bc7fc491734c9c392809b1b29a
https://github.com/llvm/llvm-project/commit/4258d68dc73789bc7fc491734c9c392809b1b29a
Author: Sam McCall <sam.mccall at gmail.com>
Date: 2022-01-11 (Tue, 11 Jan 2022)
Changed paths:
M clang-tools-extra/clangd/CompileCommands.cpp
M clang/include/clang/Tooling/CompilationDatabase.h
M clang/lib/Tooling/InterpolatingCompilationDatabase.cpp
M clang/unittests/Tooling/CompilationDatabaseTest.cpp
Log Message:
-----------
[Tooling] When transferring compile commands between files, always use '--'
"driver <flags> -- <input>" is a particularly convenient form of the
compile command to manipulate, with fewer special cases to handle.
Guaranteeing that the output command is of that form is cheap and makes
it easier to consume the result in some cases.
Differential Revision: https://reviews.llvm.org/D116721
More information about the All-commits
mailing list