[clang-tools-extra] [clangd] Add includes from source to non-self-contained headers (PR #72479)
via cfe-commits
cfe-commits at lists.llvm.org
Fri Nov 17 12:14:54 PST 2023
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff 144b2f579ef06e663cf233431d291a913b895074 76bb83ad49840ceb92be2db5bfe7849f5280d6d3 -- clang-tools-extra/clangd/TUScheduler.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang-tools-extra/clangd/TUScheduler.cpp b/clang-tools-extra/clangd/TUScheduler.cpp
index 1329f7b08a..a18846a8c2 100644
--- a/clang-tools-extra/clangd/TUScheduler.cpp
+++ b/clang-tools-extra/clangd/TUScheduler.cpp
@@ -1702,8 +1702,7 @@ bool TUScheduler::update(PathRef File, ParseInputs Inputs,
std::string SourceFile;
auto VFS = Inputs.TFS->view(Inputs.CompileCommand.Directory);
if (auto CorrespondingFile =
- clang::clangd::getCorrespondingHeaderOrSource(File,
- std::move(VFS)))
+ clang::clangd::getCorrespondingHeaderOrSource(File, std::move(VFS)))
SourceFile = *CorrespondingFile;
if (SourceFile.empty())
SourceFile = HeaderIncluders->get(File);
``````````
</details>
https://github.com/llvm/llvm-project/pull/72479
More information about the cfe-commits
mailing list