From fbafaf48feb1aecac553ebd586f4f9acb46a6edf Mon Sep 17 00:00:00 2001 From: Kadir Cetinkaya Date: Wed, 10 Jul 2019 13:59:13 +0000 Subject: [PATCH] [clangd] Trim spaces around parsed include in include extractor llvm-svn: 365632 --- clang-tools-extra/clangd/QueryDriverDatabase.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang-tools-extra/clangd/QueryDriverDatabase.cpp b/clang-tools-extra/clangd/QueryDriverDatabase.cpp index 4a413c485156..55618415c68f 100644 --- a/clang-tools-extra/clangd/QueryDriverDatabase.cpp +++ b/clang-tools-extra/clangd/QueryDriverDatabase.cpp @@ -76,7 +76,7 @@ std::vector parseDriverOutput(llvm::StringRef Output) { } for (llvm::StringRef Line : llvm::make_range(StartIt, EndIt)) { - SystemIncludes.push_back(Line.str()); + SystemIncludes.push_back(Line.trim().str()); vlog("System include extraction: adding {0}", Line); } return SystemIncludes;