[clang] [clang][deps] Simplify scanner VFS (PR #190843)

via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 7 13:26:33 PDT 2026


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 origin/main HEAD --extensions cpp,h -- clang/include/clang/Basic/Module.h clang/include/clang/DependencyScanning/DependencyScanningFilesystem.h clang/lib/Basic/Module.cpp clang/lib/DependencyScanning/DependencyScannerImpl.cpp clang/lib/DependencyScanning/DependencyScanningFilesystem.cpp clang/unittests/DependencyScanning/DependencyScanningFilesystemTest.cpp --diff_from_common_commit
``````````

:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/clang/include/clang/Basic/Module.h b/clang/include/clang/Basic/Module.h
index 7ada9efef..09d94fca0 100644
--- a/clang/include/clang/Basic/Module.h
+++ b/clang/include/clang/Basic/Module.h
@@ -90,9 +90,7 @@ class ModuleFileKey {
       : Key(Implicit{ModuleCacheUID, PathSuffix.str()}) {}
 
 public:
-  bool operator==(const ModuleFileKey &Other) const {
-    return Key == Other.Key;
-  }
+  bool operator==(const ModuleFileKey &Other) const { return Key == Other.Key; }
 
   bool operator!=(const ModuleFileKey &Other) const {
     return !operator==(Other);

``````````

</details>


https://github.com/llvm/llvm-project/pull/190843


More information about the cfe-commits mailing list