diff options
author | Sam McCall <sam.mccall@gmail.com> | 2017-12-01 14:35:17 +0000 |
---|---|---|
committer | Sam McCall <sam.mccall@gmail.com> | 2017-12-01 14:35:17 +0000 |
commit | 182b48c0073d2940cfeec0bb23ef7cd7f991ff82 (patch) | |
tree | 3ebaf966a05899f2e7a13a484ae59ca880346b83 /clangd/GlobalCompilationDatabase.cpp | |
parent | 6f250f705d384f21677d1efcbfad8993c797424c (diff) |
[clangd] Remove no-op -fsyntax-only from fallback command. NFC
This has no effect because we explicitly choose our actions.
(If it had an effect, we'd want to add it to commands we get from a CDB)
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@319546 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'clangd/GlobalCompilationDatabase.cpp')
-rw-r--r-- | clangd/GlobalCompilationDatabase.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clangd/GlobalCompilationDatabase.cpp b/clangd/GlobalCompilationDatabase.cpp index 9dd59879..c6dc9afb 100644 --- a/clangd/GlobalCompilationDatabase.cpp +++ b/clangd/GlobalCompilationDatabase.cpp @@ -31,7 +31,7 @@ static void addExtraFlags(tooling::CompileCommand &Command, } tooling::CompileCommand getDefaultCompileCommand(PathRef File) { - std::vector<std::string> CommandLine{"clang", "-fsyntax-only", File.str()}; + std::vector<std::string> CommandLine{"clang", File.str()}; return tooling::CompileCommand(llvm::sys::path::parent_path(File), llvm::sys::path::filename(File), CommandLine, /*Output=*/""); |