HomeSort by relevance Sort by last modified time
    Searched refs:FormatStyle (Results 1 - 11 of 11) sorted by null

  /external/clang/include/clang/Format/
Format.h 30 /// \brief The \c FormatStyle is used to configure the formatting to follow
32 struct FormatStyle {
193 bool operator==(const FormatStyle &R) const {
234 FormatStyle getLLVMStyle();
238 FormatStyle getGoogleStyle();
242 FormatStyle getChromiumStyle();
246 FormatStyle getMozillaStyle();
250 FormatStyle getWebKitStyle();
258 bool getPredefinedStyle(StringRef Name, FormatStyle *Style);
261 llvm::error_code parseConfiguration(StringRef Text, FormatStyle *Style)
    [all...]
  /external/clang/unittests/Format/
FormatTest.cpp 23 const FormatStyle &Style) {
35 format(llvm::StringRef Code, const FormatStyle &Style = getLLVMStyle()) {
72 FormatStyle getLLVMStyleWithColumns(unsigned ColumnLimit) {
73 FormatStyle Style = getLLVMStyle();
78 FormatStyle getGoogleStyleWithColumns(unsigned ColumnLimit) {
79 FormatStyle Style = getGoogleStyle();
85 const FormatStyle &Style = getLLVMStyle()) {
264 FormatStyle AllowsMergedIf = getLLVMStyle();
307 FormatStyle AllowsMergedLoops = getLLVMStyle();
409 FormatStyle NoBinPacking = getLLVMStyle()
    [all...]
  /external/clang/lib/Format/
TokenAnnotator.h 73 TokenAnnotator(const FormatStyle &Style, IdentifierInfo &Ident_in)
94 const FormatStyle &Style;
UnwrappedLineParser.h 59 UnwrappedLineParser(const FormatStyle &Style, ArrayRef<FormatToken *> Tokens,
140 const FormatStyle &Style;
BreakableToken.h 28 struct FormatStyle;
147 BreakableBlockComment(const FormatStyle &Style, const FormatToken &Token,
175 void adjustWhitespace(const FormatStyle &Style, unsigned LineIndex,
WhitespaceManager.h 40 WhitespaceManager(SourceManager &SourceMgr, const FormatStyle &Style)
164 const FormatStyle &Style;
Format.cpp 37 struct ScalarEnumerationTraits<clang::format::FormatStyle::LanguageStandard> {
39 clang::format::FormatStyle::LanguageStandard &Value) {
40 IO.enumCase(Value, "C++03", clang::format::FormatStyle::LS_Cpp03);
41 IO.enumCase(Value, "C++11", clang::format::FormatStyle::LS_Cpp11);
42 IO.enumCase(Value, "Auto", clang::format::FormatStyle::LS_Auto);
47 struct ScalarEnumerationTraits<clang::format::FormatStyle::BraceBreakingStyle> {
49 enumeration(IO &IO, clang::format::FormatStyle::BraceBreakingStyle &Value) {
50 IO.enumCase(Value, "Attach", clang::format::FormatStyle::BS_Attach);
51 IO.enumCase(Value, "Linux", clang::format::FormatStyle::BS_Linux);
52 IO.enumCase(Value, "Stroustrup", clang::format::FormatStyle::BS_Stroustrup)
    [all...]
UnwrappedLineParser.cpp 181 UnwrappedLineParser::UnwrappedLineParser(const FormatStyle &Style,
596 if (Style.BreakBeforeBraces == FormatStyle::BS_Linux ||
597 Style.BreakBeforeBraces == FormatStyle::BS_Stroustrup ||
598 Style.BreakBeforeBraces == FormatStyle::BS_Allman)
763 if (Style.BreakBeforeBraces == FormatStyle::BS_Allman)
766 if (Style.BreakBeforeBraces == FormatStyle::BS_Allman)
779 if (Style.BreakBeforeBraces == FormatStyle::BS_Allman)
802 if (Style.BreakBeforeBraces == FormatStyle::BS_Linux ||
803 Style.BreakBeforeBraces == FormatStyle::BS_Allman)
806 bool AddLevel = Style.NamespaceIndentation == FormatStyle::NI_All |
    [all...]
BreakableToken.cpp 219 const FormatStyle &Style, const FormatToken &Token, unsigned StartColumn,
285 void BreakableBlockComment::adjustWhitespace(const FormatStyle &Style,
TokenAnnotator.cpp     [all...]
  /external/clang/tools/clang-format/
ClangFormat.cpp 109 FormatStyle getStyle(StringRef StyleName, StringRef FileName) {
110 FormatStyle Style;
250 FormatStyle FormatStyle = getStyle(Style, FileName);
252 getFormattingLangOpts(FormatStyle.Standard));
253 tooling::Replacements Replaces = reformat(FormatStyle, Lex, Sources, Ranges);

Completed in 312 milliseconds