def format(self, options=None):
if options is None:<EOL><INDENT>options = conf.lib.clang_defaultDiagnosticDisplayOptions()<EOL><DEDENT>if options & ~Diagnostic._FormatOptionsMask:<EOL><INDENT>raise ValueError('<STR_LIT>')<EOL><DEDENT>formatted = conf.lib.clang_formatDiagnostic(self, options)<EOL>return str(conf.lib.clang_getCString(formatted))<EOL>
Format this diagnostic for display. The options argument takes
Diagnostic.Display* flags, which can be combined using bitwise OR. If
the options argument is not provided, the default display options will
be used.