defaultDiagnosticDisplayOptions: Functions for accessing compiler diagnostic messages

View source: R/clangGen.R

defaultDiagnosticDisplayOptionsR Documentation

Functions for accessing compiler diagnostic messages

Description

These are functions for working with the diagnostic messages the libclang parser provides for errors, warnings, etc.

Usage

defaultDiagnosticDisplayOptions()
formatDiagnostic(Diagnostic, Options)
getDiagnostic(Unit, Index)
getDiagnosticInSet(diags, Index)
getDiagnosticLocation(arg1)
getDiagnosticSetFromTU(Unit)
getDiagnosticSeverity(arg1)
getDiagnosticSpelling(arg1)
getNumDiagnostics(Unit)

Arguments

Diagnostic,arg1

a CXDiagnostic object

Options

options controlling how the diagnostic is formatted. This is obtained by coming values from the CXDiagnosticDisplayOptions enumeration type. See CXDiagnostic.

Unit

a translation unit object or an object that can be coerced to a CXTranslationUnit

Index

an integer or numeric value identifying the element of interest. This is 0-based, not 1-based.

diags

a CXDiagnosticSet object

Author(s)

Duncan Temple Lang

References

libclang http://clang.llvm.org/doxygen/group__CINDEX.html


omegahat/RClangSimple documentation built on Jan. 17, 2024, 6:27 p.m.