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 {
1523 bool operator==(const FormatStyle &R) const {
1613 FormatStyle getLLVMStyle();
1619 FormatStyle getGoogleStyle(FormatStyle::LanguageKind Language);
1623 FormatStyle getChromiumStyle(FormatStyle::LanguageKind Language);
1627 FormatStyle getMozillaStyle();
1631 FormatStyle getWebKitStyle();
1635 FormatStyle getGNUStyle();
1638 FormatStyle getNoStyle();
1646 bool getPredefinedStyle(StringRef Name, FormatStyle::LanguageKind Language,
1647 FormatStyle *Style);
1656 std::error_code parseConfiguration(StringRef Text, FormatStyle *Style);
1659 std::string configurationAsText(const FormatStyle &Style);
1663 tooling::Replacements sortIncludes(const FormatStyle &Style, StringRef Code,
1673 const FormatStyle &Style);
1694 const FormatStyle &Style);
1719 tooling::Replacements reformat(const FormatStyle &Style, StringRef Code,
1727 tooling::Replacements reformat(const FormatStyle &Style, StringRef Code,
1736 tooling::Replacements cleanup(const FormatStyle &Style, StringRef Code,
1744 tooling::Replacements fixNamespaceEndComments(const FormatStyle &Style,
1754 tooling::Replacements sortUsingDeclarations(const FormatStyle &Style,
1762 LangOptions getFormattingLangOpts(const FormatStyle &Style = getLLVMStyle());
1769 /// \brief Construct a FormatStyle based on ``StyleName``.
1790 /// \returns FormatStyle as specified by ``StyleName``. If ``StyleName`` is
1793 llvm::Expected<FormatStyle> getStyle(StringRef StyleName, StringRef FileName,
1799 inline StringRef getLanguageName(FormatStyle::LanguageKind Language) {
1801 case FormatStyle::LK_Cpp:
1803 case FormatStyle::LK_ObjC:
1805 case FormatStyle::LK_Java:
1807 case FormatStyle::LK_JavaScript:
1809 case FormatStyle::LK_Proto:
1811 case FormatStyle::LK_TextProto: