[clang] [clang][modules] Track included files per submodule (PR #71117)
via cfe-commits
cfe-commits at lists.llvm.org
Thu Nov 2 14:47:26 PDT 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 89d5635f0a834e53ac5446c6d6ea38d9166b2a55 9debc58d5135fbde51967dfb076d0ec5d954df38 -- clang/include/clang/Basic/Module.h clang/include/clang/Lex/Preprocessor.h clang/lib/Serialization/ASTReader.cpp clang/lib/Serialization/ASTReaderInternals.h clang/lib/Serialization/ASTWriter.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang/lib/Serialization/ASTWriter.cpp b/clang/lib/Serialization/ASTWriter.cpp
index a7fddaf8e243..da5da0183a9f 100644
--- a/clang/lib/Serialization/ASTWriter.cpp
+++ b/clang/lib/Serialization/ASTWriter.cpp
@@ -1894,10 +1894,9 @@ namespace {
endian::Writer LE(Out, llvm::endianness::little);
uint64_t Start = Out.tell(); (void)Start;
- unsigned char Flags = (Data.HFI.isImport << 5)
- | (Data.HFI.isPragmaOnce << 4)
- | (Data.HFI.DirInfo << 1)
- | Data.HFI.IndexHeaderMapHeader;
+ unsigned char Flags =
+ (Data.HFI.isImport << 5) | (Data.HFI.isPragmaOnce << 4) |
+ (Data.HFI.DirInfo << 1) | Data.HFI.IndexHeaderMapHeader;
LE.write<uint8_t>(Flags);
if (!Data.HFI.ControllingMacro)
@@ -2066,8 +2065,10 @@ void ASTWriter::WriteHeaderSearch(const HeaderSearch &HS) {
Filename, File->getSize(), getTimestampForOutput(*File)
};
HeaderFileInfoTrait::data_type Data = {
- *HFI, Includers, HS.getModuleMap().findResolvedModulesForHeader(*File), {}
- };
+ *HFI,
+ Includers,
+ HS.getModuleMap().findResolvedModulesForHeader(*File),
+ {}};
Generator.insert(Key, Data, GeneratorTrait);
++NumHeaderSearchEntries;
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/71117
More information about the cfe-commits
mailing list