|
const std::error_category & | clang::format::getParseCategory () |
|
std::error_code | clang::format::make_error_code (ParseError e) |
|
FormatStyle | clang::format::getLLVMStyle () |
| Returns a format style complying with the LLVM coding standards: http://llvm.org/docs/CodingStandards.html. More...
|
|
FormatStyle | clang::format::getGoogleStyle (FormatStyle::LanguageKind Language) |
| Returns a format style complying with one of Google's style guides: http://google-styleguide.googlecode.com/svn/trunk/cppguide.xml. More...
|
|
FormatStyle | clang::format::getChromiumStyle (FormatStyle::LanguageKind Language) |
| Returns a format style complying with Chromium's style guide: http://www.chromium.org/developers/coding-style. More...
|
|
FormatStyle | clang::format::getMozillaStyle () |
| Returns a format style complying with Mozilla's style guide: https://developer.mozilla.org/en-US/docs/Developer_Guide/Coding_Style. More...
|
|
FormatStyle | clang::format::getWebKitStyle () |
| Returns a format style complying with Webkit's style guide: http://www.webkit.org/coding/coding-style.html. More...
|
|
FormatStyle | clang::format::getGNUStyle () |
| Returns a format style complying with GNU Coding Standards: http://www.gnu.org/prep/standards/standards.html. More...
|
|
FormatStyle | clang::format::getNoStyle () |
| Returns style indicating formatting should be not applied at all. More...
|
|
bool | clang::format::getPredefinedStyle (StringRef Name, FormatStyle::LanguageKind Language, FormatStyle *Style) |
| Gets a predefined style for the specified language by name. More...
|
|
std::error_code | clang::format::parseConfiguration (StringRef Text, FormatStyle *Style) |
| Parse configuration from YAML-formatted text. More...
|
|
std::string | clang::format::configurationAsText (const FormatStyle &Style) |
| Gets configuration in a YAML string. More...
|
|
tooling::Replacements | clang::format::sortIncludes (const FormatStyle &Style, StringRef Code, ArrayRef< tooling::Range > Ranges, StringRef FileName, unsigned *Cursor=nullptr) |
| Returns the replacements necessary to sort all #include blocks that are affected by Ranges . More...
|
|
llvm::Expected< tooling::Replacements > | clang::format::formatReplacements (StringRef Code, const tooling::Replacements &Replaces, const FormatStyle &Style) |
| Returns the replacements corresponding to applying and formatting Replaces on success; otheriwse, return an llvm::Error carrying llvm::StringError. More...
|
|
llvm::Expected< tooling::Replacements > | clang::format::cleanupAroundReplacements (StringRef Code, const tooling::Replacements &Replaces, const FormatStyle &Style) |
| Returns the replacements corresponding to applying Replaces and cleaning up the code after that on success; otherwise, return an llvm::Error carrying llvm::StringError. More...
|
|
tooling::Replacements | clang::format::reformat (const FormatStyle &Style, StringRef Code, ArrayRef< tooling::Range > Ranges, StringRef FileName="<stdin>", FormattingAttemptStatus *Status=nullptr) |
| Reformats the given Ranges in Code . More...
|
|
tooling::Replacements | clang::format::reformat (const FormatStyle &Style, StringRef Code, ArrayRef< tooling::Range > Ranges, StringRef FileName, bool *IncompleteFormat) |
| Same as above, except if IncompleteFormat is non-null, its value will be set to true if any of the affected ranges were not formatted due to a non-recoverable syntax error. More...
|
|
tooling::Replacements | clang::format::cleanup (const FormatStyle &Style, StringRef Code, ArrayRef< tooling::Range > Ranges, StringRef FileName="<stdin>") |
| Clean up any erroneous/redundant code in the given Ranges in Code . More...
|
|
tooling::Replacements | clang::format::fixNamespaceEndComments (const FormatStyle &Style, StringRef Code, ArrayRef< tooling::Range > Ranges, StringRef FileName="<stdin>") |
| Fix namespace end comments in the given Ranges in Code . More...
|
|
tooling::Replacements | clang::format::sortUsingDeclarations (const FormatStyle &Style, StringRef Code, ArrayRef< tooling::Range > Ranges, StringRef FileName="<stdin>") |
| Sort consecutive using declarations in the given Ranges in Code . More...
|
|
LangOptions | clang::format::getFormattingLangOpts (const FormatStyle &Style=getLLVMStyle()) |
| Returns the LangOpts that the formatter expects you to set. More...
|
|
llvm::Expected< FormatStyle > | clang::format::getStyle (StringRef StyleName, StringRef FileName, StringRef FallbackStyle, StringRef Code="", vfs::FileSystem *FS=nullptr) |
| Construct a FormatStyle based on StyleName . More...
|
|
FormatStyle::LanguageKind | clang::format::guessLanguage (StringRef FileName, StringRef Code) |
|
StringRef | clang::format::getLanguageName (FormatStyle::LanguageKind Language) |
|
Various functions to configurably format source code.
Definition in file Format.h.