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

Provide better API for libclang's command line arguments #83

Open
edsko opened this issue Aug 8, 2024 · 2 comments
Open

Provide better API for libclang's command line arguments #83

edsko opened this issue Aug 8, 2024 · 2 comments
Assignees

Comments

@edsko
Copy link
Collaborator

edsko commented Aug 8, 2024

We currently configure libclang by passing a raw set of command line arguments (of type [String]). We should have a proper Haskell datatype that lists the libclang options we are interested in (and then internally translate this to [String]).

This is part of #10 and #71.

@edsko
Copy link
Collaborator Author

edsko commented Sep 14, 2024

Perhaps some of the options we should support are the ones mentioned in the docs of 'CXDiagnosticDisplayOptions' (added in #176). However, this is only useful if we don't write our own renderer for libclang options (#174), and instead use diagnosticFormatted/clang_formatDiagnostic.

@edsko
Copy link
Collaborator Author

edsko commented Sep 25, 2024

I'm going to define a record with some fields as a starting point for this.

@edsko edsko self-assigned this Sep 25, 2024
edsko added a commit that referenced this issue Sep 25, 2024
This takes a first step towards #83 by introducing a `ClangArgs` record type.
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

No branches or pull requests

2 participants