/netbsd-current/external/apache2/llvm/dist/llvm/include/llvm/Support/ |
H A D | Path.h | 28 enum class Style { windows, posix, native }; class in namespace:llvm::sys::path 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); 101 const_iterator begin(StringRef path, Style style = Style::native); 111 reverse_iterator rbegin(StringRef path, Style styl [all...] |
H A D | 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)) 131 static void format(const T &V, llvm::raw_ostream &Stream, StringRef Style) { 134 if (consumeHexStyle(Style, HS)) { 135 Digits = consumeNumHexDigits(Style, H [all...] |
H A D | 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,
|
H A D | Chrono.h | 72 StringRef Style); 124 static std::pair<InternalRep, StringRef> consumeUnit(StringRef &Style, argument 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) { argument 143 if (Style 154 format(const Dur &D, llvm::raw_ostream &Stream, StringRef Style) argument [all...] |
H A D | 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 {
|
/netbsd-current/external/apache2/llvm/dist/clang/tools/clang-format/fuzzer/ |
H A D | ClangFormatFuzzer.cpp | 20 auto Style = getGoogleStyle(clang::format::FormatStyle::LK_Cpp); local 21 Style.ColumnLimit = 60; 22 auto Replaces = reformat(Style, s, clang::tooling::Range(0, s.size()));
|
/netbsd-current/external/apache2/llvm/dist/llvm/lib/Support/ |
H A D | 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) { 50 write_unsigned_impl(raw_ostream &S, T N, size_t MinDigits, IntegerStyle Style, bool IsNegative) argument 76 write_unsigned(raw_ostream &S, T N, size_t MinDigits, IntegerStyle Style, bool IsNegative = false) argument 87 write_signed(raw_ostream &S, T N, size_t MinDigits, IntegerStyle Style) argument 102 write_integer(raw_ostream &S, unsigned int N, size_t MinDigits, IntegerStyle Style) argument 107 write_integer(raw_ostream &S, int N, size_t MinDigits, IntegerStyle Style) argument 112 write_integer(raw_ostream &S, unsigned long N, size_t MinDigits, IntegerStyle Style) argument 117 write_integer(raw_ostream &S, long N, size_t MinDigits, IntegerStyle Style) argument 122 write_integer(raw_ostream &S, unsigned long long N, size_t MinDigits, IntegerStyle Style) argument 127 write_integer(raw_ostream &S, long long N, size_t MinDigits, IntegerStyle Style) argument 132 write_hex(raw_ostream &S, uint64_t N, HexPrintStyle Style, Optional<size_t> Width) argument 162 write_double(raw_ostream &S, double N, FloatStyle Style, Optional<size_t> Precision) argument 252 getDefaultPrecision(FloatStyle Style) argument [all...] |
H A D | 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]; local 53 format(const TimePoint< &T, raw_ostream &OS, StringRef Style) argument
|
H A D | 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; 47 inline const char *separators(Style styl [all...] |
/netbsd-current/external/apache2/llvm/dist/clang/lib/Format/ |
H A D | SortJavaScriptImports.h | 27 tooling::Replacements sortJavaScriptImports(const FormatStyle &Style,
|
H A D | Format.cpp | 464 static void mapping(IO &IO, FormatStyle &Style) { argument 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 831 expandPresets(const FormatStyle &Style) argument 1324 FormatStyle Style = getLLVMStyle(); local 1347 FormatStyle Style = getLLVMStyle(); local 1362 FormatStyle Style = getLLVMStyle(Language); local 1399 getPredefinedStyle(StringRef Name, FormatStyle::LanguageKind Language, FormatStyle *Style) argument 1427 parseConfiguration(llvm::MemoryBufferRef Config, FormatStyle *Style, bool AllowUnknownOptions, llvm::SourceMgr::DiagHandlerTy DiagHandler, void *DiagHandlerCtxt) argument 1491 configurationAsText(const FormatStyle &Style) argument 1514 Add(FormatStyle Style) argument 1536 JavaScriptRequoter(const Environment &Env, const FormatStyle &Style) argument 1623 Formatter(const Environment &Env, const FormatStyle &Style, FormattingAttemptStatus *Status) argument 1756 TrailingCommaInserter(const Environment &Env, const FormatStyle &Style) argument 1816 Cleaner(const Environment &Env, const FormatStyle &Style) argument 2041 ObjCHeaderStyleGuesser(const Environment &Env, const FormatStyle &Style) argument 2261 sortCppIncludes(const FormatStyle &Style, const SmallVectorImpl<IncludeDirective> &Includes, ArrayRef<tooling::Range> Ranges, StringRef FileName, StringRef Code, tooling::Replacements &Replaces, unsigned *Cursor) argument [all...] |
H A D | ContinuationIndenter.cpp | 30 static bool shouldIndentWrappedSelectorName(const FormatStyle &Style, argument 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 120 startsNextParameter(const FormatToken &Current, const FormatStyle &Style) argument 136 opensProtoMessageField(const FormatToken &LessTok, const FormatStyle &Style) argument 174 getCanonicalRawStringDelimiter(const FormatStyle &Style, FormatStyle::LanguageKind Language) argument 224 ContinuationIndenter(const FormatStyle &Style, const AdditionalKeywords &Keywords, const SourceManager &SourceMgr, WhitespaceManager &Whitespaces, encoding::Encoding Encoding, bool BinPackInconclusiveFunctions) argument 1162 hasNestedBlockInlined(const FormatToken *Previous, const FormatToken &Current, const FormatStyle &Style) argument [all...] |
H A D | UnwrappedLineFormatter.h | 32 const FormatStyle &Style, 36 : Indenter(Indenter), Whitespaces(Whitespaces), Style(Style), 67 const FormatStyle &Style; member in class:clang::format::UnwrappedLineFormatter 30 UnwrappedLineFormatter(ContinuationIndenter *Indenter, WhitespaceManager *Whitespaces, const FormatStyle &Style, const AdditionalKeywords &Keywords, const SourceManager &SourceMgr, FormattingAttemptStatus *Status) argument
|
H A D | UsingDeclarationsSorter.h | 25 UsingDeclarationsSorter(const Environment &Env, const FormatStyle &Style);
|
H A D | FormatInternal.h | 64 /// with \p Style. 72 reformat(const FormatStyle &Style, StringRef Code,
|
H A D | UnwrappedLineParser.cpp | 175 const FormatStyle &Style, unsigned &LineLevel) 177 Style.BraceWrapping.AfterControlStatement, 178 Style.BraceWrapping.IndentBraces) {} 225 UnwrappedLineParser::UnwrappedLineParser(const FormatStyle &Style, argument 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 174 CompoundStatementIndenter(UnwrappedLineParser *Parser, const FormatStyle &Style, unsigned &LineLevel) argument 699 ShouldBreakBeforeBrace(const FormatStyle &Style, const FormatToken &InitialToken) argument [all...] |
H A D | UnwrappedLineFormatter.cpp | 40 LevelIndentTracker(const FormatStyle &Style, argument 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 127 const FormatStyle &Style; member in class:clang::format::__anon609::LevelIndentTracker [all...] |
H A D | TokenAnalyzer.cpp | 51 TokenAnalyzer::TokenAnalyzer(const Environment &Env, const FormatStyle &Style) argument 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());
|
H A D | TokenAnnotator.cpp | 73 AnnotatingParser(const FormatStyle &Style, AnnotatedLine &Line, argument 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 2049 const FormatStyle &Style; member in class:clang::format::__anon608::AnnotatingParser 2069 ExpressionParser(const FormatStyle &Style, const AdditionalKeywords &Keywords, AnnotatedLine &Line) argument 2259 const FormatStyle &Style; member in class:clang::format::__anon608::ExpressionParser [all...] |
H A D | NamespaceEndCommentsFixer.h | 35 NamespaceEndCommentsFixer(const Environment &Env, const FormatStyle &Style);
|
H A D | 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 402 AlignTokens( const FormatStyle &Style, F &&Matches, SmallVector<WhitespaceManager::Change, 16> &Changes, unsigned StartAt, const FormatStyle::AlignConsecutiveStyle &ACS = FormatStyle::ACS_None) argument [all...] |
/netbsd-current/external/apache2/llvm/dist/llvm/tools/llvm-pdbutil/ |
H A D | 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, 188 formatSectionCharacteristics(uint32_t IndentLevel, uint32_t C, uint32_t FlagsPerLine, StringRef Separator, CharacteristicStyle Style) argument [all...] |
/netbsd-current/external/apache2/llvm/dist/llvm/include/llvm/DebugInfo/CodeView/ |
H A D | Formatters.h | 34 void format(raw_ostream &Stream, StringRef Style) override; 52 StringRef Style) { 65 StringRef Style) { 51 format(const codeview::TypeIndex &V, raw_ostream &Stream, StringRef Style) argument 64 format(const codeview::GUID &V, llvm::raw_ostream &Stream, StringRef Style) argument
|
/netbsd-current/external/apache2/llvm/dist/clang/include/clang/Tooling/Inclusions/ |
H A D | HeaderIncludes.h | 28 IncludeCategoryManager(const IncludeStyle &Style, StringRef FileName); 40 const IncludeStyle Style; member in class:clang::tooling::IncludeCategoryManager 51 const IncludeStyle &Style);
|
/netbsd-current/external/apache2/llvm/dist/clang/lib/Tooling/Inclusions/ |
H A D | 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 40 getOffsetAfterTokenSequence( StringRef FileName, StringRef Code, const IncludeStyle &Style, llvm::function_ref<unsigned(const SourceManager &, Lexer &, Token &)> GetOffsetAfterSequence) argument 81 getOffsetAfterHeaderGuardsAndComments(StringRef FileName, StringRef Code, const IncludeStyle &Style) argument 158 getMaxHeaderInsertionOffset(StringRef FileName, StringRef Code, const IncludeStyle &Style) argument [all...] |