Skip to content

Commit

Permalink
test: set default C and C++ language standards to use
Browse files Browse the repository at this point in the history
Define the language standard to use while testing. Use c17 and c++17,
fairly arbitrarily. We can remove the std option from template.yaml.

Note that the parser selects the -x language option based on domain and
filename suffix.
  • Loading branch information
jnikula committed Sep 15, 2024
1 parent 040bed7 commit 8ad4aa4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 5 additions & 0 deletions test/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@
# The name of the Pygments (syntax highlighting) style to use.
pygments_style = None

# -- Options for Hawkmoth ----------------------------------------------------
# https://jnikula.github.io/hawkmoth/dev/extension.html#configuration

hawkmoth_clang_c = ['-std=c17']
hawkmoth_clang_cpp = ['-std=c++17']

# -- Options for HTML output -------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
Expand Down
3 changes: 0 additions & 3 deletions test/cpp/template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,4 @@ directives:
directive: autodoc
arguments:
- template.cpp
options:
clang:
- --std=c++17
expected: template.rst

0 comments on commit 8ad4aa4

Please sign in to comment.