Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: define default clang args for testing #256

Closed
wants to merge 1 commit into from

Conversation

jnikula
Copy link
Owner

@jnikula jnikula commented Sep 14, 2024

For starters, define the language stardard to use. Use c17 and c++17, fairly arbitrarily. Tests can override this. We can remove the std option from template.yaml.

This is a bit more convoluted than should be necessary, for a few reasons:

  • Extension tests use the directive options from directive string. For that, the defaults should be specified in conf.py, but hawkmoth_clang is not domain specific, and can't be used. See [1]. We need to insert the defaults in directive options.

  • We want to preserve the original directive options, and present those in examples documentation. However, in all testing, we need to amend the defaults.

Note that the parser selects the -x language option based on domain and filename suffix.

[1] #255

For starters, define the language stardard to use. Use c17 and c++17,
fairly arbitrarily. Tests can override this. We can remove the std
option from template.yaml.

This is a bit more convoluted than should be necessary, for a few
reasons:

- Extension tests use the directive options from directive string. For
  that, the defaults should be specified in conf.py, but hawkmoth_clang
  is not domain specific, and can't be used. See [1]. We need to insert
  the defaults in directive options.

- We want to preserve the original directive options, and present those
  in examples documentation. However, in all testing, we need to amend
  the defaults.

Note that the parser selects the -x language option based on domain and
filename suffix.

[1] #255
@jnikula
Copy link
Owner Author

jnikula commented Sep 14, 2024

Got a better idea, dropping this one.

@jnikula jnikula closed this Sep 14, 2024
@jnikula jnikula deleted the test-default-clang-args branch September 15, 2024 09:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant