ΒΆCXString clang_getDiagnosticOption(
CXDiagnostic Diag,
CXString* Disable)
CXString clang_getDiagnosticOption(
CXDiagnostic Diag,
CXString* Disable)
Description
Retrieve the name of the command-line option that enabled this diagnostic.
Declared at: clang/include/clang-c/Index.h:1015
Parameters
- CXDiagnostic Diag
- The diagnostic to be queried.
- CXString* Disable
- If non-NULL, will be set to the option that disables this diagnostic (if any).
Returns
A string that contains the command-line option used to enable this warning, such as "-Wconversion" or "-pedantic".