12 Commits

Author SHA1 Message Date
Huang Rui
ca53920be2 Initialize missing fields in Lexer constructor (#304)
* Initialize missing fields in Lexer constructor

- Add tok_start and pos initialization to Lexer constructor
- Fix clang-tidy uninitialized fields warning

Signed-off-by: Huang Rui <vowstar@gmail.com>

* Fix argument type mismatch for load_file and load_json methods

- Use .string() method for path objects in benchmark file loading
- Apply same path conversion in test cases for consistency

Signed-off-by: Huang Rui <vowstar@gmail.com>

* Fix and cleanup mismatch error in windows test case

- Use .string() method for path objects in benchmark file loading
- Fix test case failure introduced in 65aa8a669d

Signed-off-by: Huang Rui <vowstar@gmail.com>

---------

Signed-off-by: Huang Rui <vowstar@gmail.com>
2025-04-13 11:16:44 +02:00
pantor
65aa8a669d move tests to std::filesystem::path 2025-03-31 23:22:36 +02:00
Vladislav Navrocky
384a6bef3f Fix: Remove circular dependencies in headers (#295)
* Remove circular dependencies in headers

* Fix unit test includes and test data directory location
2025-02-11 09:03:42 +01:00
Matheus Werny
92994bec0a clang-tidy applied and CMake installation of the single header added (#287)
* Fixed headers and linter marks applied

Headers were wrong.
Applied some linter suggestions. There are still many left.

* CMake adjusted for single header

CMake can now install the single header.
Removed an unneeded header.

---------

Co-authored-by: Berscheid <1885260+pantor@users.noreply.github.com>
2024-10-05 09:36:11 +02:00
pantor
771e47f6da fix search directory for string templates 2022-06-20 11:43:45 +02:00
pantor
eb04bfc7d3 clang-format 2021-11-12 08:35:56 +01:00
pantor
9b9dd96a46 introduce INJA_DATA_TYPE 2021-09-06 09:15:48 +02:00
pantor
95af782ca2 Add Child Inheritance Feature (#198)
* add block and extend feature

* constify, code cleaning

* update single include

* add html language to readme

* clean tests

* constantify, update year
2021-05-25 10:18:21 +02:00
pantor
eac2162629 fix include of in-memory templates 2021-05-17 20:44:32 +02:00
pantor
9d59943220 add INJA_NOEXCEPTION 2021-01-16 18:06:43 +01:00
pantor
a570837703 remove iostream header, update year 2020-08-08 11:14:49 +02:00
pantor
6eb71dd3ea Rewarite core with an AST for statements and RPN for expressions (#149)
* test

* improve ast

* add if statement

* shunting-yard start

* renderer as node visitor

* improve ast

* improve ast further

* first functions

* improve ast v3

* improve ast v4

* fix parser error location

* nested ifs

* fix comma, activate more tests

* fix line statements

* fix some more tests

* fix callbacks without arguments

* add json literal array and object

* use switch in expression

* fix default function

* fix loop data

* improved tests and benchmark

* fix minus numbers

* improve all

* fix warnings, optimizations

* fix callbacks argument order

* dont move loop parent

* a few more test

* fix clang-3

* fix pointers

* clean

* update single include
2020-07-13 15:20:04 +02:00