[clang] [Clang] Handle C++20 export declarations in -dump-minimization-hints (PR #151666)

via cfe-commits cfe-commits at lists.llvm.org
Fri Aug 1 01:10:24 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 -- clang/test/Frontend/dump-minimization-hints-cpp20-modules.cpp clang/lib/Frontend/FrontendAction.cpp clang/test/Frontend/dump-minimization-hints.cpp
``````````

</details>

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

``````````diff
diff --git a/clang/lib/Frontend/FrontendAction.cpp b/clang/lib/Frontend/FrontendAction.cpp
index ac643f862..466d2d1b2 100644
--- a/clang/lib/Frontend/FrontendAction.cpp
+++ b/clang/lib/Frontend/FrontendAction.cpp
@@ -209,7 +209,7 @@ private:
   const SourceManager &SM;
   std::unique_ptr<llvm::raw_ostream> OS;
 
-  static bool shouldIncludeDeclsIn(const DeclContext* DC) {
+  static bool shouldIncludeDeclsIn(const DeclContext *DC) {
     assert(DC && "DC is null");
     // We choose to work at namespace level to reduce complexity and the number
     // of cases we care about.

``````````

</details>


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


More information about the cfe-commits mailing list