[clang] [clang] Move VFS overlays from `HeaderSearchOptions` to `FileSystemOptions` (PR #86534)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Mar 25 10:19:24 PDT 2024
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 6b1cf0040059c407264d2609403c4fc090673167 15e732563c77a0990210bc6f9212e6f96d5e727a -- clang/include/clang/Basic/FileSystemOptions.h clang/include/clang/Lex/HeaderSearchOptions.h clang/include/clang/Serialization/ASTBitCodes.h clang/lib/Frontend/ASTUnit.cpp clang/lib/Frontend/CompilerInstance.cpp clang/lib/Frontend/CompilerInvocation.cpp clang/lib/Frontend/FrontendActions.cpp clang/lib/Lex/HeaderSearch.cpp clang/lib/Serialization/ASTReader.cpp clang/lib/Serialization/ASTWriter.cpp clang/lib/Tooling/DependencyScanning/DependencyScanningWorker.cpp clang/lib/Tooling/DependencyScanning/ModuleDepCollector.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp
index f3f8a92b2f..d15934470a 100644
--- a/clang/lib/Frontend/CompilerInvocation.cpp
+++ b/clang/lib/Frontend/CompilerInvocation.cpp
@@ -4703,9 +4703,8 @@ bool CompilerInvocation::CreateFromArgsImpl(
// Set PGOOptions. Need to create a temporary VFS to read the profile
// to determine the PGO type.
if (!Res.getCodeGenOpts().ProfileInstrumentUsePath.empty()) {
- auto FS =
- createVFSFromOverlayFiles(Res.getFileSystemOpts().VFSOverlayFiles,
- Diags, llvm::vfs::getRealFileSystem());
+ auto FS = createVFSFromOverlayFiles(Res.getFileSystemOpts().VFSOverlayFiles,
+ Diags, llvm::vfs::getRealFileSystem());
setPGOUseInstrumentor(Res.getCodeGenOpts(),
Res.getCodeGenOpts().ProfileInstrumentUsePath, *FS,
Diags);
``````````
</details>
https://github.com/llvm/llvm-project/pull/86534
More information about the cfe-commits
mailing list