enum CXDiagnosticDisplayOptions
Description
Options to control the display of diagnostics. The values in this enum are meant to be combined to customize the behavior of \c clang_formatDiagnostic().
Declared at: clang/include/clang-c/Index.h:895
Enumerators
Name | Value | Comment |
---|---|---|
CXDiagnostic_DisplaySourceLocation | 1 | Display the source-location information where the diagnostic was located.When set, diagnostics will be prefixed by the file, line, and (optionally) column to which the diagnostic refers. For example,This option corresponds to the clang flag \c -fshow-source-location. |
CXDiagnostic_DisplayColumn | 2 | If displaying the source-location information of the diagnostic, also include the column number.This option corresponds to the clang flag \c -fshow-column. |
CXDiagnostic_DisplaySourceRanges | 4 | If displaying the source-location information of the diagnostic, also include information about source ranges in a machine-parsable format.This option corresponds to the clang flag\c -fdiagnostics-print-source-range-info. |
CXDiagnostic_DisplayOption | 8 | Display the option name associated with this diagnostic, if any.The option name displayed (e.g., -Wconversion) will be placed in brackets after the diagnostic text. This option corresponds to the clang flag\c -fdiagnostics-show-option. |
CXDiagnostic_DisplayCategoryId | 16 | Display the category number associated with this diagnostic, if any.The category number is displayed within brackets after the diagnostic text. This option corresponds to the clang flag\c -fdiagnostics-show-category=id. |
CXDiagnostic_DisplayCategoryName | 32 | Display the category name associated with this diagnostic, if any.The category name is displayed within brackets after the diagnostic text. This option corresponds to the clang flag\c -fdiagnostics-show-category=name. |