[clang-tools-extra] [clang-doc] Replace HTML generation with Mustache backend (PR #170199)

via cfe-commits cfe-commits at lists.llvm.org
Tue Dec 9 11:31:33 PST 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 origin/main HEAD --extensions cpp,h -- clang-tools-extra/clang-doc/Generators.cpp clang-tools-extra/clang-doc/Generators.h clang-tools-extra/clang-doc/HTMLGenerator.cpp clang-tools-extra/clang-doc/support/Utils.cpp clang-tools-extra/clang-doc/support/Utils.h clang-tools-extra/clang-doc/tool/ClangDocMain.cpp clang-tools-extra/test/clang-doc/DR-131697.cpp clang-tools-extra/test/clang-doc/assets.cpp clang-tools-extra/test/clang-doc/comments-in-macros.cpp clang-tools-extra/test/clang-doc/conversion_function.cpp clang-tools-extra/test/clang-doc/enum.cpp clang-tools-extra/test/clang-doc/long-name.cpp clang-tools-extra/test/clang-doc/mustache-index.cpp clang-tools-extra/test/clang-doc/mustache-separate-namespace.cpp clang-tools-extra/test/clang-doc/namespace.cpp clang-tools-extra/unittests/clang-doc/HTMLGeneratorTest.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-tools-extra/unittests/clang-doc/HTMLGeneratorTest.cpp b/clang-tools-extra/unittests/clang-doc/HTMLGeneratorTest.cpp
index 6f01f38a2..cf510afe2 100644
--- a/clang-tools-extra/unittests/clang-doc/HTMLGeneratorTest.cpp
+++ b/clang-tools-extra/unittests/clang-doc/HTMLGeneratorTest.cpp
@@ -55,7 +55,6 @@ protected:
   }
 };
 
-
 TEST_F(HTMLGeneratorTest, createResources) {
   auto G = getHTMLGenerator();
   ASSERT_THAT(G, NotNull()) << "Could not find HTMLGenerator";

``````````

</details>


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


More information about the cfe-commits mailing list