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

FEniCS / ffcx / 20003395181

07 Dec 2025 11:15AM UTC coverage: 78.511% (-5.9%) from 84.457%
20003395181

Pull #803

github

schnellerhase
Reactivate check
Pull Request #803: Add `C++` backend

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

4059 of 5170 relevant lines covered (78.51%)

0.79 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
# Copyright (C) 2025 Chris Richardson and Paul T. Kühner
2
#
3
# This file is part of FFCx.(https://www.fenicsproject.org)
4
#
5
# SPDX-License-Identifier:    LGPL-3.0-or-later
6
"""Templates for C++ file output."""
7

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

16
#pragma once
17

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

23
#include <ufcx.h>
24

25
#if defined(_MSC_VER)
26
#   define RESTRICT __restrict
27
#else
28
#   define RESTRICT __restrict__
29
#endif
30

31
"""
32

NEW
33
declaration_post = """
×
34
"""
35

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

45
#include <cmath>
46
#include <ufcx.h>
47
{extra_includes}
48

49
"""
50

NEW
51
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