Home | History | Annotate | Download | only in Format

Lines Matching defs:FormatStyle

44 /// \brief The ``FormatStyle`` is used to configure the formatting to follow
46 struct FormatStyle {
1345 bool operator==(const FormatStyle &R) const {
1432 FormatStyle getLLVMStyle();
1438 FormatStyle getGoogleStyle(FormatStyle::LanguageKind Language);
1442 FormatStyle getChromiumStyle(FormatStyle::LanguageKind Language);
1446 FormatStyle getMozillaStyle();
1450 FormatStyle getWebKitStyle();
1454 FormatStyle getGNUStyle();
1457 FormatStyle getNoStyle();
1465 bool getPredefinedStyle(StringRef Name, FormatStyle::LanguageKind Language,
1466 FormatStyle *Style);
1475 std::error_code parseConfiguration(StringRef Text, FormatStyle *Style);
1478 std::string configurationAsText(const FormatStyle &Style);
1482 tooling::Replacements sortIncludes(const FormatStyle &Style, StringRef Code,
1492 const FormatStyle &Style);
1513 const FormatStyle &Style);
1527 tooling::Replacements reformat(const FormatStyle &Style, StringRef Code,
1536 tooling::Replacements cleanup(const FormatStyle &Style, StringRef Code,
1544 tooling::Replacements fixNamespaceEndComments(const FormatStyle &Style,
1552 LangOptions getFormattingLangOpts(const FormatStyle &Style = getLLVMStyle());
1559 /// \brief Construct a FormatStyle based on ``StyleName``.
1580 /// \returns FormatStyle as specified by ``StyleName``. If ``StyleName`` is
1583 llvm::Expected<FormatStyle> getStyle(StringRef StyleName, StringRef FileName,
1589 inline StringRef getLanguageName(FormatStyle::LanguageKind Language) {
1591 case FormatStyle::LK_Cpp:
1593 case FormatStyle::LK_ObjC:
1595 case FormatStyle::LK_Java:
1597 case FormatStyle::LK_JavaScript:
1599 case FormatStyle::LK_Proto: