[clang] [clang-tools-extra] [clang] Consistently use "load" to refer to populating clang::ModuleMap (PR #132970)

via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 25 11:20:15 PDT 2025


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 53fa28940e0a3ef183e04dd8bc8566d64bbfd101 985af1dfe88121beafad2c4eb976c685c6ea6d9c --extensions cpp,h -- clang-tools-extra/modularize/ModuleAssistant.cpp clang/include/clang/Lex/ModuleMap.h clang/lib/Lex/HeaderSearch.cpp clang/lib/Lex/ModuleMap.cpp
``````````

</details>

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

``````````diff
diff --git a/clang/lib/Lex/ModuleMap.cpp b/clang/lib/Lex/ModuleMap.cpp
index ab51b3a103..a00aab34fd 100644
--- a/clang/lib/Lex/ModuleMap.cpp
+++ b/clang/lib/Lex/ModuleMap.cpp
@@ -2117,12 +2117,12 @@ bool ModuleMapLoader::loadModuleMapFile() {
 }
 
 bool ModuleMap::loadModuleMapFile(FileEntryRef File, bool IsSystem,
-                                   DirectoryEntryRef Dir, FileID ID,
-                                   unsigned *Offset,
-                                   SourceLocation ExternModuleLoc) {
+                                  DirectoryEntryRef Dir, FileID ID,
+                                  unsigned *Offset,
+                                  SourceLocation ExternModuleLoc) {
   assert(Target && "Missing target information");
-  llvm::DenseMap<const FileEntry *, bool>::iterator Known
-    = LoadedModuleMap.find(File);
+  llvm::DenseMap<const FileEntry *, bool>::iterator Known =
+      LoadedModuleMap.find(File);
   if (Known != LoadedModuleMap.end())
     return Known->second;
 

``````````

</details>


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


More information about the cfe-commits mailing list