forked from OSchip/llvm-project
[clangd] Trim spaces around parsed include in include extractor
llvm-svn: 365632
This commit is contained in:
parent
6b043f0518
commit
fbafaf48fe
|
@ -76,7 +76,7 @@ std::vector<std::string> parseDriverOutput(llvm::StringRef Output) {
|
||||||
}
|
}
|
||||||
|
|
||||||
for (llvm::StringRef Line : llvm::make_range(StartIt, EndIt)) {
|
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);
|
vlog("System include extraction: adding {0}", Line);
|
||||||
}
|
}
|
||||||
return SystemIncludes;
|
return SystemIncludes;
|
||||||
|
|
Loading…
Reference in New Issue