Author: sammccall Date: Fri Dec 1 06:35:17 2017 New Revision: 319546 URL: http://llvm.org/viewvc/llvm-project?rev=319546&view=rev Log: [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) Modified: clang-tools-extra/trunk/clangd/GlobalCompilationDatabase.cpp Modified: clang-tools-extra/trunk/clangd/GlobalCompilationDatabase.cpp URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clangd/GlobalCompilationDatabase.cpp?rev=319546&r1=319545&r2=319546&view=diff ============================================================================== --- clang-tools-extra/trunk/clangd/GlobalCompilationDatabase.cpp (original) +++ clang-tools-extra/trunk/clangd/GlobalCompilationDatabase.cpp Fri Dec 1 06:35:17 2017 @@ -31,7 +31,7 @@ static void addExtraFlags(tooling::Compi } 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=*/""); _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits