[clang-tools-extra] [llvm] [llvm] add support for mustache templating language (PR #111427)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Oct 7 12:58:44 PDT 2024
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 62ae01201fc7185aca61d040c4f2df5303bae0ad 278abd2cde54be013c09d2c35b976f7985ddead4 --extensions cpp,h -- llvm/include/llvm/Support/Mustache.h llvm/lib/Support/Mustache.cpp llvm/tools/mustache/mustache.cpp llvm/unittests/Support/MustacheTest.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/include/llvm/Support/Mustache.h b/llvm/include/llvm/Support/Mustache.h
index 641bcafc22..105e518c24 100644
--- a/llvm/include/llvm/Support/Mustache.h
+++ b/llvm/include/llvm/Support/Mustache.h
@@ -126,16 +126,16 @@ public:
InvertSection,
};
- ASTNode() : T(Type::Root), LocalContext(nullptr){};
+ ASTNode() : T(Type::Root), LocalContext(nullptr) {};
ASTNode(StringRef Body, ASTNode *Parent)
: T(Type::Text), Body(Body), Parent(Parent), LocalContext(nullptr),
- Indentation(0){};
+ Indentation(0) {};
// Constructor for Section/InvertSection/Variable/UnescapeVariable
ASTNode(Type T, Accessor Accessor, ASTNode *Parent)
: T(T), Parent(Parent), Children({}), Accessor(Accessor),
- LocalContext(nullptr), Indentation(0){};
+ LocalContext(nullptr), Indentation(0) {};
void addChild(ASTNode *Child) { Children.emplace_back(Child); };
``````````
</details>
https://github.com/llvm/llvm-project/pull/111427
More information about the cfe-commits
mailing list