| /src/external/apache2/llvm/dist/llvm/include/llvm/Support/ |
| Path.h | 28 enum class Style { windows, posix, native }; 58 Style S = Style::native; ///< The path style to use. 61 friend const_iterator begin(StringRef path, Style style); 84 Style S = Style::native; ///< The path style to use. 86 friend reverse_iterator rbegin(StringRef path, Style style) [all...] |
| FormatProviders.h | 77 static bool consumeHexStyle(StringRef &Str, HexPrintStyle &Style) { 82 Style = HexPrintStyle::Lower; 84 Style = HexPrintStyle::Upper; 86 Style = HexPrintStyle::PrefixLower; 88 Style = HexPrintStyle::PrefixUpper; 92 static size_t consumeNumHexDigits(StringRef &Str, HexPrintStyle Style, 95 if (isPrefixedHexStyle(Style)) 106 /// integer_options :: [style][digits] 107 /// style :: <see table below> 111 /// | style | Meaning | Example | Digits Meaning [all...] |
| NativeFormatting.h | 24 size_t getDefaultPrecision(FloatStyle Style); 29 IntegerStyle Style); 30 void write_integer(raw_ostream &S, int N, size_t MinDigits, IntegerStyle Style); 32 IntegerStyle Style); 34 IntegerStyle Style); 36 IntegerStyle Style); 38 IntegerStyle Style); 40 void write_hex(raw_ostream &S, uint64_t N, HexPrintStyle Style, 42 void write_double(raw_ostream &S, double D, FloatStyle Style,
|
| Chrono.h | 72 StringRef Style); 124 static std::pair<InternalRep, StringRef> consumeUnit(StringRef &Style, 127 if (Style.consume_front("ns")) 129 if (Style.consume_front("us")) 131 if (Style.consume_front("ms")) 133 if (Style.consume_front("s")) 135 if (Style.consume_front("m")) 137 if (Style.consume_front("h")) 142 static bool consumeShowUnit(StringRef &Style) { 143 if (Style.empty() [all...] |
| FormatAdapters.h | 37 void format(llvm::raw_ostream &Stream, StringRef Style) override { 39 FmtAlign(Adapter, Where, Amount, Fill).format(Stream, Style); 51 void format(llvm::raw_ostream &Stream, StringRef Style) override { 54 Adapter.format(Stream, Style); 66 void format(llvm::raw_ostream &Stream, StringRef Style) override { 69 Adapter.format(Stream, Style); 79 void format(llvm::raw_ostream &Stream, StringRef Style) override {
|
| /src/external/apache2/llvm/dist/clang/tools/clang-format/fuzzer/ |
| ClangFormatFuzzer.cpp | 18 // FIXME: fuzz more things: different styles, different style features. 20 auto Style = getGoogleStyle(clang::format::FormatStyle::LK_Cpp); 21 Style.ColumnLimit = 60; 22 auto Replaces = reformat(Style, s, clang::tooling::Range(0, s.size()));
|
| /src/external/apache2/llvm/dist/llvm/lib/Support/ |
| NativeFormatting.cpp | 51 IntegerStyle Style, bool IsNegative) { 63 if (Len < MinDigits && Style != IntegerStyle::Number) { 68 if (Style == IntegerStyle::Number) { 77 IntegerStyle Style, bool IsNegative = false) { 80 write_unsigned_impl(S, static_cast<uint32_t>(N), MinDigits, Style, 83 write_unsigned_impl(S, N, MinDigits, Style, IsNegative); 88 IntegerStyle Style) { 94 write_unsigned(S, static_cast<UnsignedT>(N), MinDigits, Style); 99 write_unsigned(S, UN, MinDigits, Style, true); 103 IntegerStyle Style) { [all...] |
| Chrono.cpp | 54 StringRef Style) { 60 if (Style.empty()) Style = "%Y-%m-%d %H:%M:%S.%N"; 63 for (unsigned I = 0; I < Style.size(); ++I) { 64 if (Style[I] == '%' && Style.size() > I + 1) switch (Style[I + 1]) { 85 FStream << Style[I];
|
| Path.cpp | 37 using llvm::sys::path::Style; 39 inline Style real_style(Style style) { 41 return (style == Style::posix) ? Style::posix : Style::windows; 43 return (style == Style::windows) ? Style::windows : Style::posix [all...] |
| /src/external/apache2/llvm/dist/clang/lib/Format/ |
| SortJavaScriptImports.h | 27 tooling::Replacements sortJavaScriptImports(const FormatStyle &Style,
|
| Format.cpp | 464 static void mapping(IO &IO, FormatStyle &Style) { 466 IO.mapOptional("Language", Style.Language); 475 if (getPredefinedStyle(StyleName, Style.Language, &PredefinedStyle) && 476 Style == PredefinedStyle) { 485 FormatStyle::LanguageKind OldLanguage = Style.Language; 488 if (!getPredefinedStyle(BasedOnStyle, Language, &Style)) { 492 Style.Language = OldLanguage; 498 IO.mapOptional("AlignEscapedNewlinesLeft", Style.AlignEscapedNewlines); 499 IO.mapOptional("DerivePointerBinding", Style.DerivePointerAlignment); 501 Style.IndentWrappedFunctionNames) [all...] |
| ContinuationIndenter.cpp | 30 static bool shouldIndentWrappedSelectorName(const FormatStyle &Style, 32 return Style.IndentWrappedFunctionNames || LineType == LT_ObjCMethodDecl; 121 const FormatStyle &Style) { 124 Style.BreakConstructorInitializers == FormatStyle::BCIS_BeforeComma) 126 if (Style.Language == FormatStyle::LK_Proto && Current.is(TT_SelectorName)) 130 Style.BreakConstructorInitializers != 133 Style.BreakInheritanceList != FormatStyle::BILS_BeforeComma)); 137 const FormatStyle &Style) { 140 return Style.Language == FormatStyle::LK_TextProto || 141 (Style.Language == FormatStyle::LK_Proto & [all...] |
| FormatInternal.h | 64 /// with \p Style. 72 reformat(const FormatStyle &Style, StringRef Code,
|
| UnwrappedLineFormatter.h | 32 const FormatStyle &Style, 36 : Indenter(Indenter), Whitespaces(Whitespaces), Style(Style), 67 const FormatStyle &Style;
|
| UsingDeclarationsSorter.h | 25 UsingDeclarationsSorter(const Environment &Env, const FormatStyle &Style);
|
| UnwrappedLineParser.cpp | 175 const FormatStyle &Style, unsigned &LineLevel) 177 Style.BraceWrapping.AfterControlStatement, 178 Style.BraceWrapping.IndentBraces) {} 225 UnwrappedLineParser::UnwrappedLineParser(const FormatStyle &Style, 231 CurrentLines(&Lines), Style(Style), Keywords(Keywords), 232 CommentPragmasRegex(Style.CommentPragmas), Tokens(nullptr), 234 IncludeGuard(Style.IndentPPDirectives == FormatStyle::PPDIS_None 241 IncludeGuard = Style.IndentPPDirectives == FormatStyle::PPDIS_None 303 !Line->InPPDirective && Style.Language != FormatStyle::LK_JavaScript [all...] |
| UnwrappedLineFormatter.cpp | 40 LevelIndentTracker(const FormatStyle &Style, 43 : Style(Style), Keywords(Keywords), AdditionalIndent(AdditionalIndent) { 45 IndentForLevel.push_back(Style.IndentWidth * i + AdditionalIndent); 60 Indent = Line.Level * Style.IndentWidth + AdditionalIndent; 68 Indent = Line.Level * Style.IndentWidth + Style.ContinuationIndentWidth; 98 if (Style.Language == FormatStyle::LK_Java || 99 Style.Language == FormatStyle::LK_JavaScript || Style.isCSharp() [all...] |
| TokenAnalyzer.cpp | 51 TokenAnalyzer::TokenAnalyzer(const Environment &Env, const FormatStyle &Style) 52 : Style(Style), Env(Env), 61 LLVM_DEBUG(llvm::dbgs() << "Language: " << getLanguageName(Style.Language) 68 IdentifierTable IdentTable(getFormattingLangOpts(Style)); 70 Env.getFirstStartColumn(), Style, Encoding, Allocator, 75 UnwrappedLineParser Parser(Style, Lex.getKeywords(), 84 TokenAnnotator Annotator(Style, Lex.getKeywords());
|
| TokenAnnotator.cpp | 73 AnnotatingParser(const FormatStyle &Style, AnnotatedLine &Line, 75 : Style(Style), Line(Line), CurrentToken(Line.First), AutoFound(false), 112 if (Style.Language == FormatStyle::LK_Java && 138 if (Style.Language == FormatStyle::LK_TextProto || 139 (Style.Language == FormatStyle::LK_Proto && Left->Previous && 148 Style.Language == FormatStyle::LK_Java) { 154 !Style.isCSharp() && Style.Language != FormatStyle::LK_Proto && 155 Style.Language != FormatStyle::LK_TextProto) [all...] |
| NamespaceEndCommentsFixer.h | 35 NamespaceEndCommentsFixer(const Environment &Env, const FormatStyle &Style);
|
| WhitespaceManager.cpp | 403 const FormatStyle &Style, F &&Matches, 490 unsigned StoppedAt = AlignTokens(Style, Matches, Changes, i, ACS); 521 unsigned ChangeMaxColumn = Style.ColumnLimit - LineLengthAfter; 585 if (Style.AlignConsecutiveMacros == FormatStyle::ACS_None) 638 (Style.AlignConsecutiveMacros != FormatStyle::ACS_AcrossEmptyLines) && 639 (Style.AlignConsecutiveMacros != 646 !(LineIsComment && ((Style.AlignConsecutiveMacros == 648 (Style.AlignConsecutiveMacros == 676 unsigned ChangeMaxColumn = Style.ColumnLimit - LineLengthAfter; 688 if (Style.AlignConsecutiveAssignments == FormatStyle::ACS_None [all...] |
| /src/external/apache2/llvm/dist/llvm/tools/llvm-pdbutil/ |
| FormatUtil.cpp | 176 #define PUSH_CHARACTERISTIC_FLAG(Enum, TheOpt, Value, Style, Descriptive) \ 178 ((Style == CharacteristicStyle::HeaderDefinition) ? #TheOpt \ 181 #define PUSH_MASKED_CHARACTERISTIC_FLAG(Enum, Mask, TheOpt, Value, Style, \ 184 ((Style == CharacteristicStyle::HeaderDefinition) \ 192 CharacteristicStyle Style) { 199 PUSH_CHARACTERISTIC_FLAG(SC, IMAGE_SCN_TYPE_NOLOAD, C, Style, "noload"); 200 PUSH_CHARACTERISTIC_FLAG(SC, IMAGE_SCN_TYPE_NO_PAD, C, Style, "no padding"); 201 PUSH_CHARACTERISTIC_FLAG(SC, IMAGE_SCN_CNT_CODE, C, Style, "code"); 202 PUSH_CHARACTERISTIC_FLAG(SC, IMAGE_SCN_CNT_INITIALIZED_DATA, C, Style, 204 PUSH_CHARACTERISTIC_FLAG(SC, IMAGE_SCN_CNT_UNINITIALIZED_DATA, C, Style, [all...] |
| /src/external/apache2/llvm/dist/clang/include/clang/Tooling/Inclusions/ |
| HeaderIncludes.h | 28 IncludeCategoryManager(const IncludeStyle &Style, StringRef FileName); 40 const IncludeStyle Style; 51 const IncludeStyle &Style);
|
| /src/external/apache2/llvm/dist/llvm/include/llvm/DebugInfo/CodeView/ |
| Formatters.h | 34 void format(raw_ostream &Stream, StringRef Style) override; 52 StringRef Style) { 65 StringRef Style) {
|
| /src/external/apache2/llvm/dist/clang/lib/Tooling/Inclusions/ |
| HeaderIncludes.cpp | 41 StringRef FileName, StringRef Code, const IncludeStyle &Style, 83 const IncludeStyle &Style) { 91 FileName, Code, Style, 159 const IncludeStyle &Style) { 161 FileName, Code, Style, 190 IncludeCategoryManager::IncludeCategoryManager(const IncludeStyle &Style, 192 : Style(Style), FileName(FileName) { 193 for (const auto &Category : Style.IncludeCategories) { 202 if (!Style.IncludeIsMainSourceRegex.empty()) [all...] |