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 {
1419 bool operator==(const FormatStyle &R) const {
1508 FormatStyle getLLVMStyle();
1514 FormatStyle getGoogleStyle(FormatStyle::LanguageKind Language);
1518 FormatStyle getChromiumStyle(FormatStyle::LanguageKind Language);
1522 FormatStyle getMozillaStyle();
1526 FormatStyle getWebKitStyle();
1530 FormatStyle getGNUStyle();
1533 FormatStyle getNoStyle();
1541 bool getPredefinedStyle(StringRef Name, FormatStyle::LanguageKind Language,
1542 FormatStyle *Style);
1551 std::error_code parseConfiguration(StringRef Text, FormatStyle *Style);
1554 std::string configurationAsText(const FormatStyle &Style);
1558 tooling::Replacements sortIncludes(const FormatStyle &Style, StringRef Code,
1568 const FormatStyle &Style);
1589 const FormatStyle &Style);
1614 tooling::Replacements reformat(const FormatStyle &Style, StringRef Code,
1622 tooling::Replacements reformat(const FormatStyle &Style, StringRef Code,
1631 tooling::Replacements cleanup(const FormatStyle &Style, StringRef Code,
1639 tooling::Replacements fixNamespaceEndComments(const FormatStyle &Style,
1647 LangOptions getFormattingLangOpts(const FormatStyle &Style = getLLVMStyle());
1654 /// \brief Construct a FormatStyle based on ``StyleName``.
1675 /// \returns FormatStyle as specified by ``StyleName``. If ``StyleName`` is
1678 llvm::Expected<FormatStyle> getStyle(StringRef StyleName, StringRef FileName,
1684 inline StringRef getLanguageName(FormatStyle::LanguageKind Language) {
1686 case FormatStyle::LK_Cpp:
1688 case FormatStyle::LK_ObjC:
1690 case FormatStyle::LK_Java:
1692 case FormatStyle::LK_JavaScript:
1694 case FormatStyle::LK_Proto: