ΒΆstd::error_code parseConfiguration(
llvm::MemoryBufferRef Config,
clang::format::FormatStyle* Style,
bool AllowUnknownOptions,
llvm::SourceMgr::DiagHandlerTy DiagHandler,
void* DiagHandlerCtxt)
std::error_code parseConfiguration(
llvm::MemoryBufferRef Config,
clang::format::FormatStyle* Style,
bool AllowUnknownOptions,
llvm::SourceMgr::DiagHandlerTy DiagHandler,
void* DiagHandlerCtxt)
Description
Parse configuration from YAML-formatted text. Style->Language is used to get the base style, if the ``BasedOnStyle`` option is present. The FormatStyleSet of Style is reset. When ``BasedOnStyle`` is not present, options not present in the YAML document, are retained in \p Style. If AllowUnknownOptions is true, no errors are emitted if unknown format options are occurred. If set all diagnostics are emitted through the DiagHandler.
Declared at: clang/include/clang/Format/Format.h:4031
Parameters
- llvm::MemoryBufferRef Config
- clang::format::FormatStyle* Style
- bool AllowUnknownOptions
- llvm::SourceMgr::DiagHandlerTy DiagHandler
- void* DiagHandlerCtxt