summaryrefslogtreecommitdiffstats
path: root/clangd/GlobalCompilationDatabase.cpp
diff options
context:
space:
mode:
authorSam McCall <sam.mccall@gmail.com>2017-12-01 14:35:17 +0000
committerSam McCall <sam.mccall@gmail.com>2017-12-01 14:35:17 +0000
commit182b48c0073d2940cfeec0bb23ef7cd7f991ff82 (patch)
tree3ebaf966a05899f2e7a13a484ae59ca880346b83 /clangd/GlobalCompilationDatabase.cpp
parent6f250f705d384f21677d1efcbfad8993c797424c (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.cpp2
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=*/"");