[clang-tools-extra] [llvm] [llvm] add support for mustache templating language (PR #105893)

Nicolas van Kempen via cfe-commits cfe-commits at lists.llvm.org
Fri Nov 15 13:36:54 PST 2024


================
@@ -0,0 +1,724 @@
+//===-- Mustache.cpp ------------------------------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+#include "llvm/Support/Mustache.h"
+#include "llvm/Support/Error.h"
+#include "llvm/Support/raw_ostream.h"
+#include <sstream>
+
+using namespace llvm;
+using namespace llvm::json;
+
+namespace llvm {
+namespace mustache {
+
+class Token {
----------------
nicovank wrote:

IMO at least for "short" constructors / functions if not everything, implementations can be in the declaration, but if others prefer it this way I don't care.

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


More information about the cfe-commits mailing list