/freebsd-12-stable/contrib/llvm-project/clang/lib/Format/ |
H A D | Format.cpp | 49 using clang::format::FormatStyle; 51 LLVM_YAML_IS_SEQUENCE_VECTOR(clang::format::FormatStyle::RawStringFormat) 55 template <> struct ScalarEnumerationTraits<FormatStyle::LanguageKind> { 56 static void enumeration(IO &IO, FormatStyle::LanguageKind &Value) { 57 IO.enumCase(Value, "Cpp", FormatStyle::LK_Cpp); 58 IO.enumCase(Value, "Java", FormatStyle::LK_Java); 59 IO.enumCase(Value, "JavaScript", FormatStyle::LK_JavaScript); 60 IO.enumCase(Value, "ObjC", FormatStyle::LK_ObjC); 61 IO.enumCase(Value, "Proto", FormatStyle::LK_Proto); 62 IO.enumCase(Value, "TableGen", FormatStyle [all...] |
H A D | SortJavaScriptImports.h | 27 tooling::Replacements sortJavaScriptImports(const FormatStyle &Style,
|
H A D | FormatInternal.h | 73 reformat(const FormatStyle &Style, StringRef Code,
|
H A D | UsingDeclarationsSorter.h | 25 UsingDeclarationsSorter(const Environment &Env, const FormatStyle &Style);
|
H A D | NamespaceEndCommentsFixer.h | 35 NamespaceEndCommentsFixer(const Environment &Env, const FormatStyle &Style);
|
H A D | ContinuationIndenter.h | 39 llvm::StringMap<FormatStyle> DelimiterStyle; 40 llvm::StringMap<FormatStyle> EnclosingFunctionStyle; 42 RawStringFormatStyleManager(const FormatStyle &CodeStyle); 44 llvm::Optional<FormatStyle> getDelimiterStyle(StringRef Delimiter) const; 46 llvm::Optional<FormatStyle> 54 ContinuationIndenter(const FormatStyle &Style, 113 const FormatStyle &RawStringStyle, 123 llvm::Optional<FormatStyle> getRawStringStyle(const FormatToken &Current, 191 FormatStyle Style;
|
H A D | FormatTokenLexer.h | 40 const FormatStyle &Style, encoding::Encoding Encoding); 100 const FormatStyle &Style;
|
H A D | TokenAnalyzer.h | 82 TokenAnalyzer(const Environment &Env, const FormatStyle &Style); 96 FormatStyle Style;
|
H A D | UnwrappedLineFormatter.h | 32 const FormatStyle &Style, 67 const FormatStyle &Style;
|
H A D | TokenAnnotator.cpp | 66 AnnotatingParser(const FormatStyle &Style, AnnotatedLine &Line, 105 if (Style.Language == FormatStyle::LK_Java && 118 if (Style.Language == FormatStyle::LK_TextProto || 119 (Style.Language == FormatStyle::LK_Proto && Left->Previous && 128 Style.Language == FormatStyle::LK_Java) { 134 Style.Language != FormatStyle::LK_Proto && 135 Style.Language != FormatStyle::LK_TextProto)) 149 if (Style.Language == FormatStyle::LK_Proto) { 185 } else if (Style.Language == FormatStyle::LK_JavaScript && 200 } else if (Style.Language == FormatStyle [all...] |
H A D | BreakableToken.h | 34 struct FormatStyle; 235 encoding::Encoding Encoding, const FormatStyle &Style) 242 const FormatStyle &Style; 254 encoding::Encoding Encoding, const FormatStyle &Style); 294 const FormatStyle &Style); 362 const FormatStyle &Style, bool UseCRLF); 441 const FormatStyle &Style);
|
H A D | ContinuationIndenter.cpp | 30 static bool shouldIndentWrappedSelectorName(const FormatStyle &Style, 121 const FormatStyle &Style) { 124 Style.BreakConstructorInitializers == FormatStyle::BCIS_BeforeComma) 126 if (Style.Language == FormatStyle::LK_Proto && Current.is(TT_SelectorName)) 131 FormatStyle::BCIS_BeforeComma) && 133 Style.BreakInheritanceList != FormatStyle::BILS_BeforeComma)); 137 const FormatStyle &Style) { 140 return Style.Language == FormatStyle::LK_TextProto || 141 (Style.Language == FormatStyle::LK_Proto && 174 getCanonicalRawStringDelimiter(const FormatStyle [all...] |
H A D | UnwrappedLineFormatter.cpp | 40 LevelIndentTracker(const FormatStyle &Style, 96 if (Style.Language == FormatStyle::LK_Java || 97 Style.Language == FormatStyle::LK_JavaScript || Style.isCSharp()) 120 const FormatStyle &Style; 164 LineJoiner(const FormatStyle &Style, const AdditionalKeywords &Keywords, 254 Style.AllowShortFunctionsOnASingleLine == FormatStyle::SFS_All || 255 (Style.AllowShortFunctionsOnASingleLine >= FormatStyle::SFS_Empty && 257 (Style.AllowShortFunctionsOnASingleLine & FormatStyle::SFS_InlineOnly && 303 return Style.AllowShortBlocksOnASingleLine != FormatStyle::SBS_Never 314 FormatStyle [all...] |
H A D | UnwrappedLineParser.cpp | 174 const FormatStyle &Style, unsigned &LineLevel) 224 UnwrappedLineParser::UnwrappedLineParser(const FormatStyle &Style, 233 IncludeGuard(Style.IndentPPDirectives == FormatStyle::PPDIS_None 240 IncludeGuard = Style.IndentPPDirectives == FormatStyle::PPDIS_None 302 !Line->InPPDirective && Style.Language != FormatStyle::LK_JavaScript; 305 if (Style.Language == FormatStyle::LK_TextProto) 319 if (Style.Language == FormatStyle::LK_TextProto && 372 if (Style.Language == FormatStyle::LK_JavaScript && 415 if (Style.Language == FormatStyle::LK_JavaScript && PrevTok) { 440 if (Style.Language == FormatStyle [all...] |
H A D | WhitespaceManager.h | 39 WhitespaceManager(const SourceManager &SourceMgr, const FormatStyle &Style, 212 const FormatStyle &Style;
|
H A D | BreakableToken.cpp | 43 const FormatStyle &Style) { 49 if (Style.Language == FormatStyle::LK_TextProto) 68 encoding::Encoding Encoding, const FormatStyle &Style, 100 else if (Style.Language == FormatStyle::LK_JavaScript && 237 encoding::Encoding Encoding, const FormatStyle &Style) 265 const FormatStyle &Style) 336 encoding::Encoding Encoding, const FormatStyle &Style, bool UseCRLF) 430 if (Style.Language == FormatStyle::LK_JavaScript || 431 Style.Language == FormatStyle::LK_Java) { 550 if (Style.Language != FormatStyle [all...] |
H A D | FormatTokenLexer.cpp | 26 unsigned Column, const FormatStyle &Style, 53 if (Style.Language == FormatStyle::LK_JavaScript) { 57 if (Style.Language == FormatStyle::LK_TextProto) 93 if (Style.Language == FormatStyle::LK_JavaScript) { 135 if (Style.Language == FormatStyle::LK_Java) { 718 if ((Style.Language == FormatStyle::LK_JavaScript || 719 Style.Language == FormatStyle::LK_Java) && 775 if (Style.Language == FormatStyle::LK_Java && 780 } else if (Style.Language == FormatStyle::LK_JavaScript && 851 } else if (Style.Language == FormatStyle [all...] |
H A D | TokenAnnotator.h | 159 TokenAnnotator(const FormatStyle &Style, const AdditionalKeywords &Keywords) 192 const FormatStyle &Style;
|
H A D | UnwrappedLineParser.h | 77 UnwrappedLineParser(const FormatStyle &Style, 205 const FormatStyle &Style;
|
H A D | FormatToken.h | 506 bool opensBlockOrBlockTypeList(const FormatStyle &Style) const { 513 (is(tok::less) && (Style.Language == FormatStyle::LK_Proto || 514 Style.Language == FormatStyle::LK_TextProto)); 519 bool isCppStructuredBinding(const FormatStyle &Style) const { 531 bool closesBlockOrBlockTypeList(const FormatStyle &Style) const { 589 TokenRole(const FormatStyle &Style) : Style(Style) {} 622 const FormatStyle &Style; 627 CommaSeparatedList(const FormatStyle &Style)
|
H A D | WhitespaceManager.cpp | 329 static unsigned AlignTokens(const FormatStyle &Style, F &&Matches, 713 if (Style.AlignEscapedNewlines == FormatStyle::ENAS_DontAlign) 716 bool AlignLeft = Style.AlignEscapedNewlines == FormatStyle::ENAS_Left; 814 case FormatStyle::UT_Never: 817 case FormatStyle::UT_Always: { 838 case FormatStyle::UT_ForIndentation: 853 case FormatStyle::UT_ForContinuationAndIndentation:
|
H A D | SortJavaScriptImports.cpp | 36 using clang::format::FormatStyle; 121 JavaScriptImportSorter(const Environment &Env, const FormatStyle &Style) 440 tooling::Replacements sortJavaScriptImports(const FormatStyle &Style,
|
/freebsd-12-stable/contrib/llvm-project/clang/include/clang/Format/ |
H A D | Format.h | 47 /// The ``FormatStyle`` is used to configure the formatting to follow 49 struct FormatStyle { struct in namespace:clang::format 2064 bool operator==(const FormatStyle &R) const { 2178 llvm::Optional<FormatStyle> GetLanguageStyle(LanguageKind Language) const; 2180 // Stores per-language styles. A FormatStyle instance inside has an empty 2181 // StyleSet. A FormatStyle instance returned by the Get method has its 2188 typedef std::map<FormatStyle::LanguageKind, FormatStyle> MapType; 2190 llvm::Optional<FormatStyle> Get(FormatStyle [all...] |
/freebsd-12-stable/contrib/llvm-project/clang/tools/clang-format/ |
H A D | ClangFormat.cpp | 380 llvm::Expected<FormatStyle> FormatStyle = local 382 if (!FormatStyle) { 383 llvm::errs() << llvm::toString(FormatStyle.takeError()) << "\n"; 388 FormatStyle->SortIncludes = SortIncludes; 390 Replacements Replaces = sortIncludes(*FormatStyle, Code->getBuffer(), Ranges, 401 reformat(*FormatStyle, *ChangedCode, Ranges, AssumedFileName, &Status); 467 llvm::Expected<clang::format::FormatStyle> FormatStyle = local 470 if (!FormatStyle) { [all...] |
/freebsd-12-stable/contrib/llvm-project/clang/include/clang/Tooling/Refactoring/ |
H A D | AtomicChange.h | 149 format::FormatStyle Style = format::getNoStyle();
|