ΒΆbool getPredefinedStyle(
llvm::StringRef Name,
FormatStyle::LanguageKind Language,
clang::format::FormatStyle* Style)
bool getPredefinedStyle(
llvm::StringRef Name,
FormatStyle::LanguageKind Language,
clang::format::FormatStyle* Style)
Description
Gets a predefined style for the specified language by name. Currently supported names: LLVM, Google, Chromium, Mozilla. Names are compared case-insensitively. Returns ``true`` if the Style has been set.
Declared at: clang/include/clang/Format/Format.h:4077
Parameters
- llvm::StringRef Name
- FormatStyle::LanguageKind Language
- clang::format::FormatStyle* Style