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 --
clang-tools-extra/clang-doc/HTMLGenerator.cpp
clang-tools-extra/clang-doc/JSONGenerator.cpp
clang-tools-extra/clang-doc/MDGenerator.cpp
clang-tools-extra/clang-doc/MDMustacheGenerator.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/clang-doc/HTMLGenerator.cpp
b/clang-tools-extra/clang-doc/HTMLGenerator.cpp
index c866d7cca..1b2ef5707 100644
--- a/clang-tools-extra/clang-doc/HTMLGenerator.cpp
+++ b/clang-tools-extra/clang-doc/HTMLGenerator.cpp
@@ -196,7 +196,6 @@ StringRef HTMLGenerator::Format = "html";
static GeneratorRegistry::Add<HTMLGenerator>
HTML(HTMLGenerator::Format, "Generator for mustache HTML output.");
-
namespace clang::doc {
// This anchor is used to force the linker to link in the generated object
// file and thus register the generator.
diff --git a/clang-tools-extra/clang-doc/JSONGenerator.cpp
b/clang-tools-extra/clang-doc/JSONGenerator.cpp
index ffd571e7d..9277ad5ea 100644
--- a/clang-tools-extra/clang-doc/JSONGenerator.cpp
+++ b/clang-tools-extra/clang-doc/JSONGenerator.cpp
@@ -23,7 +23,6 @@ using namespace llvm;
using namespace llvm::json;
using namespace clang::doc;
-
template <typename Container, typename SerializationFunc>
static void serializeArray(
const Container &Records, Object &Obj, const StringRef Key,
@@ -591,10 +590,10 @@ void JSONGenerator::serializeInfo(const TemplateInfo
&Template, Object &Obj) {
if (!Template.Params.empty()) {
bool VerticalDisplay = Template.Params.size() > getMaxParamWrapLimit();
::serializeArray(Template.Params, TemplateObj, "Parameters",
- SerializeTemplateParam, "End",
- [VerticalDisplay](Object &JsonObj) {
- JsonObj["VerticalDisplay"] = VerticalDisplay;
- });
+ SerializeTemplateParam, "End",
+ [VerticalDisplay](Object &JsonObj) {
+ JsonObj["VerticalDisplay"] = VerticalDisplay;
+ });
}
if (!Template.Constraints.empty())
@@ -1077,7 +1076,6 @@ Error JSONGenerator::createResources(ClangDocContext
&CDCtx) {
return Error::success();
}
-
static GeneratorRegistry::Add<JSONGenerator> JSON(JSONGenerator::Format,
"Generator for JSON
output.");
namespace clang::doc {
diff --git a/clang-tools-extra/clang-doc/MDGenerator.cpp
b/clang-tools-extra/clang-doc/MDGenerator.cpp
index 9514c8473..e34be8e9a 100644
--- a/clang-tools-extra/clang-doc/MDGenerator.cpp
+++ b/clang-tools-extra/clang-doc/MDGenerator.cpp
@@ -511,9 +511,10 @@ public:
StringRef MDGenerator::Format = "md";
-llvm::Error MDGenerator::generateDocumentation(
- StringRef RootDir, llvm::StringMap<Info *> Infos,
- const ClangDocContext &CDCtx, std::string DirName) {
+llvm::Error MDGenerator::generateDocumentation(StringRef RootDir,
+ llvm::StringMap<Info *> Infos,
+ const ClangDocContext &CDCtx,
+ std::string DirName) {
// Track which directories we already tried to create.
llvm::StringSet<> CreatedDirs;
``````````
</details>
https://github.com/llvm/llvm-project/pull/202058
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits