hemplate

Simple XML template engine
git clone git://git.dimitrijedobrota.com/hemplate.git
Log | Files | Refs | README | LICENSE | HACKING | CONTRIBUTING | CODE_OF_CONDUCT | BUILDING

commit 34439c093d3175026fa5cf026b6a28356fe60fef
parent 54501103a4df5f518dab9e3cd0e363480de5face
author Dimitrije Dobrota <mail@dimitrijedobrota.com>
date Fri, 18 Apr 2025 15:41:03 +0200

Fix clang-tidy warnings

Diffstat:
M .clang-tidy | +
M include/hemplate/classes.hpp | +++ --
M source/classes.cpp | ++++++

3 files changed, 10 insertions(+), 2 deletions(-)


diff --git a/ .clang-tidy b/ .clang-tidy

@@ -19,6 +19,7 @@ Checks: "*,\ -readability-magic-numbers,\ fuchsia-multiple-inheritance,\ -misc-no-recursion,\
-misc-include-cleaner,\
-performance-avoid-endl,\ -misc-non-private-member-variables-in-classes" WarningsAsErrors: ''

diff --git a/ include/hemplate/classes.hpp b/ include/hemplate/classes.hpp

@@ -1,6 +1,7 @@ #pragma once #include <array>
#include <cstdint>
#include "hemplate/elementAtomic.hpp" #include "hemplate/elementBoolean.hpp"

@@ -197,7 +198,7 @@ using wbr = elementAtomic<tag<"wbr">>; namespace rss {
std::string format_time(int64_t sec);
std::string format_time(std::int64_t sec);
std::string format_time_now(); class rss : public elementBoolean<tag<"rss">>

@@ -258,7 +259,7 @@ using width = elementBoolean<tag<"width">>; namespace atom {
std::string format_time(int64_t sec);
std::string format_time(std::int64_t sec);
std::string format_time_now(); class feed : public elementBoolean<tag<"feed">>

diff --git a/ source/classes.cpp b/ source/classes.cpp

@@ -3,6 +3,10 @@ #include <format> #include <string>
#include "hemplate/classes.hpp"
namespace {
auto sec_since_epoch(int64_t sec) { return std::chrono::time_point_cast<std::chrono::seconds>(

@@ -18,6 +22,8 @@ auto get_time_now() / std::chrono::seconds(1); }
} // namespace
namespace hemplate::atom { std::string format_time(int64_t sec)