[clang] [clang] Rename diag notes that assumed precompiled dependencies are pch's, NFCI (PR #142161)

via cfe-commits cfe-commits at lists.llvm.org
Fri May 30 07:46:03 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 HEAD~1 HEAD --extensions cpp,c -- clang/lib/Serialization/ASTReader.cpp clang/test/Modules/module-file-modified.c
``````````

</details>

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

``````````diff
diff --git a/clang/lib/Serialization/ASTReader.cpp b/clang/lib/Serialization/ASTReader.cpp
index 565f01221..521d8f88d 100644
--- a/clang/lib/Serialization/ASTReader.cpp
+++ b/clang/lib/Serialization/ASTReader.cpp
@@ -2877,7 +2877,7 @@ InputFile ASTReader::getInputFile(ModuleFile &F, unsigned ID, bool Complain) {
             << *Filename << ImportStack[0]->FileName;
         for (unsigned I = 1; I < ImportStack.size(); ++I)
           Diag(diag::note_ast_file_required_by)
-            << ImportStack[I-1]->FileName << ImportStack[I]->FileName;
+              << ImportStack[I - 1]->FileName << ImportStack[I]->FileName;
       }
 
       Diag(diag::note_ast_file_rebuild_required) << TopLevelASTFileName;

``````````

</details>


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


More information about the cfe-commits mailing list