• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

FEniCS / ffcx / 20002766017

07 Dec 2025 10:19AM UTC coverage: 79.933% (-4.5%) from 84.457%
20002766017

Pull #803

github

schnellerhase
Move macro definition to file template
Pull Request #803: Add `C++` backend

0 of 272 new or added lines in 10 files covered. (0.0%)

4059 of 5078 relevant lines covered (79.93%)

0.8 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/ffcx/codegeneration/cpp/file_template.py
1
# Code generation format strings for UFC (Unified Form-assembly Code)
2
# This code is released into the public domain.
3
#
4
# The FEniCS Project (http://www.fenicsproject.org/) 2018.
5
"""Templates for C++ file output."""
6

NEW
7
declaration_pre = """
×
8
// This code conforms with the UFC specification version {ufcx_version}
9
// and was automatically generated by FFCx version {ffcx_version}.
10
//
11
// This code was generated with the following options:
12
//
13
{options}
14

15
#pragma once
16

17
#include <complex>
18
#include <cstdint>
19
#include <cmath>
20
#include <vector>
21

22
#if defined(_MSC_VER)
23
#   define RESTRICT __restrict
24
#else
25
#   define RESTRICT __restrict__
26
#endif
27

28
"""
29

NEW
30
declaration_post = """
×
31
"""
32

33
# TODO: remove? we only support a hpp for C++.
NEW
34
implementation_pre = """
×
35
// This code conforms with the UFC specification version {ufcx_version}
36
// and was automatically generated by FFCx version {ffcx_version}.
37
//
38
// This code was generated with the following options:
39
//
40
{options}
41

42
#include <cmath>
43
#include <ufcx.h>
44
{extra_includes}
45

46
"""
47

NEW
48
implementation_post = ""
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc