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

NameValueComment
CXDiagnostic_DisplaySourceLocation1Display 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_DisplayColumn2If displaying the source-location information of the diagnostic, also include the column number.This option corresponds to the clang flag \c -fshow-column.
CXDiagnostic_DisplaySourceRanges4If 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_DisplayOption8Display 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_DisplayCategoryId16Display 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_DisplayCategoryName32Display 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.