User defined diagnostics in Python #1633
Unanswered
coderkalyan
asked this question in
Q&A
Replies: 1 comment
|
It looks like DiagnosticEngine::setSeverity and setMessage are exposed to Python, so I don't see why you can't do the same thing slang-tidy is doing in your script. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Thanks for a great tool! I'm building some linting/validation functionality using pyslang and was confused how to build and emit custom diagnostics (both the DiagCode and Diagnostic itself including its user formatting) in the Python API. I'm able to use the engine to display slang-generated diagnostics.
I saw how it's done in C++ with slang-tidy but am getting stuck mapping it into Python. Is this functionality available in the Python bindings?
All reactions