/freebsd-current/contrib/llvm-project/clang/lib/Format/ |
H A D | Format.cpp | 57 using clang::format::FormatStyle; 59 LLVM_YAML_IS_SEQUENCE_VECTOR(clang::format::FormatStyle::RawStringFormat) 64 struct ScalarEnumerationTraits<FormatStyle::BreakBeforeNoexceptSpecifierStyle> { 66 enumeration(IO &IO, FormatStyle::BreakBeforeNoexceptSpecifierStyle &Value) { 67 IO.enumCase(Value, "Never", FormatStyle::BBNSS_Never); 68 IO.enumCase(Value, "OnlyWithParen", FormatStyle::BBNSS_OnlyWithParen); 69 IO.enumCase(Value, "Always", FormatStyle::BBNSS_Always); 73 template <> struct MappingTraits<FormatStyle::AlignConsecutiveStyle> { 74 static void enumInput(IO &IO, FormatStyle::AlignConsecutiveStyle &Value) { 76 FormatStyle [all...] |
H A D | IntegerLiteralSeparatorFixer.cpp | 46 const FormatStyle &Style) { 48 case FormatStyle::LK_Cpp: 49 case FormatStyle::LK_ObjC: 52 case FormatStyle::LK_CSharp: 53 case FormatStyle::LK_Java: 54 case FormatStyle::LK_JavaScript:
|
H A D | SortJavaScriptImports.h | 27 tooling::Replacements sortJavaScriptImports(const FormatStyle &Style,
|
H A D | UsingDeclarationsSorter.h | 25 UsingDeclarationsSorter(const Environment &Env, const FormatStyle &Style);
|
H A D | FormatInternal.h | 72 reformat(const FormatStyle &Style, StringRef Code,
|
H A D | IntegerLiteralSeparatorFixer.h | 26 const FormatStyle &Style);
|
H A D | NamespaceEndCommentsFixer.h | 35 NamespaceEndCommentsFixer(const Environment &Env, const FormatStyle &Style);
|
H A D | DefinitionBlockSeparator.h | 26 DefinitionBlockSeparator(const Environment &Env, const FormatStyle &Style)
|
H A D | ObjCPropertyAttributeOrderFixer.h | 45 const FormatStyle &Style);
|
H A D | ContinuationIndenter.h | 40 llvm::StringMap<FormatStyle> DelimiterStyle; 41 llvm::StringMap<FormatStyle> EnclosingFunctionStyle; 43 RawStringFormatStyleManager(const FormatStyle &CodeStyle); 45 std::optional<FormatStyle> getDelimiterStyle(StringRef Delimiter) const; 47 std::optional<FormatStyle> 55 ContinuationIndenter(const FormatStyle &Style, 114 const FormatStyle &RawStringStyle, 124 std::optional<FormatStyle> getRawStringStyle(const FormatToken &Current, 192 FormatStyle Style;
|
H A D | UnwrappedLineFormatter.h | 32 const FormatStyle &Style, 68 const FormatStyle &Style;
|
H A D | TokenAnalyzer.h | 90 TokenAnalyzer(const Environment &Env, const FormatStyle &Style); 105 FormatStyle Style;
|
H A D | FormatTokenLexer.h | 43 const FormatStyle &Style, encoding::Encoding Encoding, 126 const FormatStyle &Style;
|
H A D | QualifierAlignmentFixer.h | 27 void addQualifierAlignmentFixerPasses(const FormatStyle &Style, 43 const Environment &Env, const FormatStyle &Style,
|
H A D | BreakableToken.h | 34 struct FormatStyle; 240 encoding::Encoding Encoding, const FormatStyle &Style) 247 const FormatStyle &Style; 259 encoding::Encoding Encoding, const FormatStyle &Style); 307 encoding::Encoding Encoding, const FormatStyle &Style); 338 const FormatStyle &Style); 406 const FormatStyle &Style, bool UseCRLF); 484 const FormatStyle &Style);
|
H A D | DefinitionBlockSeparator.cpp | 25 assert(Style.SeparateDefinitionBlocks != FormatStyle::SDS_Leave); 36 Style.SeparateDefinitionBlocks == FormatStyle::SDS_Never; 69 (Style.SeparateDefinitionBlocks == FormatStyle::SDS_Always ? 1 : 0) + 1; 72 Style.LineEnding > FormatStyle::LE_CRLF 75 Style.LineEnding == FormatStyle::LE_DeriveCRLF) 76 : Style.LineEnding == FormatStyle::LE_CRLF);
|
H A D | UnwrappedLineFormatter.cpp | 46 LevelIndentTracker(const FormatStyle &Style, 65 if (Style.IndentPPDirectives != FormatStyle::PPDIS_None && 67 (Style.IndentPPDirectives == FormatStyle::PPDIS_BeforeHash && 115 if (Style.Language == FormatStyle::LK_Java || Style.isJavaScript() || 167 const FormatStyle &Style; 214 LineJoiner(const FormatStyle &Style, const AdditionalKeywords &Keywords, 315 if (Style.AllowShortFunctionsOnASingleLine == FormatStyle::SFS_All) 317 if (Style.AllowShortFunctionsOnASingleLine >= FormatStyle::SFS_Empty && 323 FormatStyle::SFS_InlineOnly) { 428 return Style.AllowShortBlocksOnASingleLine != FormatStyle [all...] |
H A D | TokenAnnotator.cpp | 28 const FormatStyle &Style) { 30 case FormatStyle::ABS_Always: 32 case FormatStyle::ABS_Leave: 125 AnnotatingParser(const FormatStyle &Style, AnnotatedLine &Line, 187 if (Style.Language == FormatStyle::LK_Java && 214 if (Style.Language == FormatStyle::LK_TextProto || 215 (Style.Language == FormatStyle::LK_Proto && Left->Previous && 228 Style.Language == FormatStyle::LK_Java) { 250 if (Style.Language == FormatStyle::LK_Proto) { 893 if (Style.AlignArrayOfStructures != FormatStyle [all...] |
H A D | ContinuationIndenter.cpp | 34 static bool shouldIndentWrappedSelectorName(const FormatStyle &Style, 133 const FormatStyle &Style) { 136 Style.BreakConstructorInitializers == FormatStyle::BCIS_BeforeComma) { 139 if (Style.Language == FormatStyle::LK_Proto && Current.is(TT_SelectorName)) 144 FormatStyle::BCIS_BeforeComma) && 146 Style.BreakInheritanceList != FormatStyle::BILS_BeforeComma)); 150 const FormatStyle &Style) { 153 return Style.Language == FormatStyle::LK_TextProto || 154 (Style.Language == FormatStyle::LK_Proto && 188 getCanonicalRawStringDelimiter(const FormatStyle [all...] |
H A D | UsingDeclarationsSorter.cpp | 88 FormatStyle::SortUsingDeclarationsOptions SortUsingDeclarations) { 89 if (SortUsingDeclarations == FormatStyle::SUD_LexicographicNumeric) 140 FormatStyle::SortUsingDeclarationsOptions SortUsingDeclarations) { 209 const FormatStyle &Style)
|
H A D | TokenAnnotator.h | 214 TokenAnnotator(const FormatStyle &Style, const AdditionalKeywords &Keywords) 255 FormatStyle::PointerAlignmentStyle 258 FormatStyle::PointerAlignmentStyle getTokenPointerOrReferenceAlignment( 261 const FormatStyle &Style;
|
H A D | Macros.h | 104 clang::SourceManager &SourceMgr, const FormatStyle &Style, 134 const FormatStyle &Style;
|
H A D | FormatToken.cpp | 78 bool FormatToken::isBlockIndentedInitRBrace(const FormatStyle &Style) const { 81 Style.AlignAfterOpenBracket != FormatStyle::BAS_BlockIndent) { 93 bool FormatToken::opensBlockOrBlockTypeList(const FormatStyle &Style) const { 210 if (Style.AlignAfterOpenBracket == FormatStyle::BAS_DontAlign)
|
/freebsd-current/contrib/llvm-project/clang/include/clang/Format/ |
H A D | Format.h | 53 /// The ``FormatStyle`` is used to configure the formatting to follow 55 struct FormatStyle { struct in namespace:clang::format 4754 bool operator==(const FormatStyle &R) const { 4923 std::optional<FormatStyle> GetLanguageStyle(LanguageKind Language) const; 4925 // Stores per-language styles. A FormatStyle instance inside has an empty 4926 // StyleSet. A FormatStyle instance returned by the Get method has its 4933 typedef std::map<FormatStyle::LanguageKind, FormatStyle> MapType; 4935 std::optional<FormatStyle> Get(FormatStyle [all...] |
/freebsd-current/contrib/llvm-project/clang/tools/clang-format/ |
H A D | ClangFormat.cpp | 443 llvm::Expected<FormatStyle> FormatStyle = local 446 if (!FormatStyle) { 447 llvm::errs() << llvm::toString(FormatStyle.takeError()) << "\n"; 453 FormatStyle->QualifierAlignment = 454 StringSwitch<FormatStyle::QualifierAlignmentStyle>( 456 .Case("right", FormatStyle::QAS_Right) 457 .Case("left", FormatStyle::QAS_Left) 458 .Default(FormatStyle->QualifierAlignment); 460 if (FormatStyle 563 llvm::Expected<clang::format::FormatStyle> FormatStyle = local [all...] |