Home
last modified time | relevance | path

Searched refs:IncludeStyle (Results 1 – 25 of 28) sorted by relevance

12

/external/llvm-project/clang/lib/Tooling/Inclusions/
DIncludeStyle.cpp11 using clang::tooling::IncludeStyle;
16 void MappingTraits<IncludeStyle::IncludeCategory>::mapping( in mapping()
17 IO &IO, IncludeStyle::IncludeCategory &Category) { in mapping()
24 void ScalarEnumerationTraits<IncludeStyle::IncludeBlocksStyle>::enumeration( in enumeration()
25 IO &IO, IncludeStyle::IncludeBlocksStyle &Value) { in enumeration()
26 IO.enumCase(Value, "Preserve", IncludeStyle::IBS_Preserve); in enumeration()
27 IO.enumCase(Value, "Merge", IncludeStyle::IBS_Merge); in enumeration()
28 IO.enumCase(Value, "Regroup", IncludeStyle::IBS_Regroup); in enumeration()
DHeaderIncludes.cpp41 StringRef FileName, StringRef Code, const IncludeStyle &Style, in getOffsetAfterTokenSequence()
83 const IncludeStyle &Style) { in getOffsetAfterHeaderGuardsAndComments()
159 const IncludeStyle &Style) { in getMaxHeaderInsertionOffset()
190 IncludeCategoryManager::IncludeCategoryManager(const IncludeStyle &Style, in IncludeCategoryManager()
269 const IncludeStyle &Style) in HeaderIncludes()
DCMakeLists.txt5 IncludeStyle.cpp
/external/llvm-project/clang/unittests/Format/
DSortIncludesTest.cpp52 tooling::IncludeStyle &Style = FmtStyle.IncludeStyle;
73 FmtStyle.IncludeStyle.IncludeBlocks = tooling::IncludeStyle::IBS_Regroup; in TEST_F()
74 FmtStyle.IncludeStyle.IncludeCategories = { in TEST_F()
172 Style.IncludeBlocks = tooling::IncludeStyle::IBS_Merge; in TEST_F()
182 Style.IncludeBlocks = tooling::IncludeStyle::IBS_Regroup; in TEST_F()
329 Style.IncludeBlocks = tooling::IncludeStyle::IBS_Merge; in TEST_F()
349 Style.IncludeBlocks = tooling::IncludeStyle::IBS_Merge; in TEST_F()
359 Style.IncludeBlocks = tooling::IncludeStyle::IBS_Regroup; in TEST_F()
402 Style.IncludeBlocks = tooling::IncludeStyle::IBS_Regroup; in TEST_F()
553 Style.IncludeBlocks = tooling::IncludeStyle::IBS_Merge; in TEST_F()
[all …]
/external/llvm-project/clang/include/clang/Tooling/Inclusions/
DIncludeStyle.h20 struct IncludeStyle { struct
156 LLVM_YAML_IS_SEQUENCE_VECTOR(clang::tooling::IncludeStyle::IncludeCategory) in LLVM_YAML_IS_SEQUENCE_VECTOR() argument
162 struct MappingTraits<clang::tooling::IncludeStyle::IncludeCategory> { in LLVM_YAML_IS_SEQUENCE_VECTOR()
164 clang::tooling::IncludeStyle::IncludeCategory &Category); in LLVM_YAML_IS_SEQUENCE_VECTOR()
169 clang::tooling::IncludeStyle::IncludeBlocksStyle> { in LLVM_YAML_IS_SEQUENCE_VECTOR()
171 enumeration(IO &IO, clang::tooling::IncludeStyle::IncludeBlocksStyle &Value); in LLVM_YAML_IS_SEQUENCE_VECTOR()
DHeaderIncludes.h28 IncludeCategoryManager(const IncludeStyle &Style, StringRef FileName);
40 const IncludeStyle Style;
51 const IncludeStyle &Style);
/external/llvm-project/clang-tools-extra/clang-tidy/utils/
DIncludeSorter.h26 enum IncludeStyle { IS_LLVM = 0, IS_Google = 1, IS_Google_ObjC }; enum
41 StringRef FileName, IncludeStyle Style);
55 const IncludeStyle Style;
69 template <> struct OptionEnumMapping<utils::IncludeSorter::IncludeStyle> {
70 static ArrayRef<std::pair<utils::IncludeSorter::IncludeStyle, StringRef>>
DIncludeSorter.cpp29 StringRef MakeCanonicalName(StringRef Str, IncludeSorter::IncludeStyle Style) { in MakeCanonicalName()
68 bool IsAngled, IncludeSorter::IncludeStyle Style) { in DetermineIncludeKind()
108 IncludeSorter::IncludeStyle Style) { in compareHeaders()
109 if (Style == IncludeSorter::IncludeStyle::IS_Google_ObjC) { in compareHeaders()
128 IncludeStyle Style) in IncludeSorter()
156 if (Style == IncludeStyle::IS_Google_ObjC) { in CreateIncludeInsertion()
227 llvm::ArrayRef<std::pair<utils::IncludeSorter::IncludeStyle, StringRef>>
228 OptionEnumMapping<utils::IncludeSorter::IncludeStyle>::getEnumMapping() { in getEnumMapping()
229 static constexpr std::pair<utils::IncludeSorter::IncludeStyle, StringRef> in getEnumMapping()
DIncludeInserter.h62 explicit IncludeInserter(IncludeSorter::IncludeStyle Style);
84 IncludeSorter::IncludeStyle getStyle() const { return Style; } in getStyle()
95 const IncludeSorter::IncludeStyle Style;
DIncludeInserter.cpp39 IncludeInserter::IncludeInserter(IncludeSorter::IncludeStyle Style) in IncludeInserter()
/external/llvm-project/clang/include/clang/Format/
DFormat.h1473 tooling::IncludeStyle IncludeStyle; member
2488 IncludeStyle.IncludeBlocks == R.IncludeStyle.IncludeBlocks &&
2489 IncludeStyle.IncludeCategories == R.IncludeStyle.IncludeCategories &&
2490 IncludeStyle.IncludeIsMainRegex ==
2491 R.IncludeStyle.IncludeIsMainRegex &&
2492 IncludeStyle.IncludeIsMainSourceRegex ==
2493 R.IncludeStyle.IncludeIsMainSourceRegex &&
/external/llvm-project/clang/unittests/Tooling/
DHeaderIncludesTest.cpp44 IncludeStyle Style = format::getLLVMStyle().IncludeStyle;
103 .IncludeStyle; in TEST_F()
136 .IncludeStyle; in TEST_F()
217 .IncludeStyle; in TEST_F()
507 .IncludeStyle; in TEST_F()
/external/llvm-project/clang/lib/Format/
DFormat.cpp552 IO.mapOptional("IncludeBlocks", Style.IncludeStyle.IncludeBlocks); in mapping()
553 IO.mapOptional("IncludeCategories", Style.IncludeStyle.IncludeCategories); in mapping()
554 IO.mapOptional("IncludeIsMainRegex", Style.IncludeStyle.IncludeIsMainRegex); in mapping()
556 Style.IncludeStyle.IncludeIsMainSourceRegex); in mapping()
918 LLVMStyle.IncludeStyle.IncludeCategories = { in getLLVMStyle()
922 LLVMStyle.IncludeStyle.IncludeIsMainRegex = "(Test)?$"; in getLLVMStyle()
923 LLVMStyle.IncludeStyle.IncludeBlocks = tooling::IncludeStyle::IBS_Preserve; in getLLVMStyle()
1019 GoogleStyle.IncludeStyle.IncludeCategories = {{"^<ext/.*\\.h>", 2, 0, false}, in getGoogleStyle()
1023 GoogleStyle.IncludeStyle.IncludeIsMainRegex = "([-_](test|unittest))?$"; in getGoogleStyle()
1024 GoogleStyle.IncludeStyle.IncludeBlocks = tooling::IncludeStyle::IBS_Regroup; in getGoogleStyle()
[all …]
/external/llvm-project/llvm/utils/gn/secondary/clang/lib/Tooling/Inclusions/
DBUILD.gn13 "IncludeStyle.cpp",
/external/llvm-project/clang-tools-extra/docs/clang-tidy/checks/
Dperformance-move-constructor-init.rst15 .. option:: IncludeStyle
Dabseil-string-find-startswith.rst33 .. option:: IncludeStyle
Dcppcoreguidelines-pro-bounds-constant-array-index.rst22 .. option:: IncludeStyle
Dcppcoreguidelines-init-variables.rst43 .. option:: IncludeStyle
Dmodernize-make-shared.rst42 .. option:: IncludeStyle
Dabseil-string-find-str-contains.rst44 .. option:: IncludeStyle
Dmodernize-make-unique.rst42 .. option:: IncludeStyle
Dperformance-unnecessary-value-param.rst60 .. option:: IncludeStyle
Dmodernize-replace-auto-ptr.rst76 .. option:: IncludeStyle
Dmodernize-pass-by-value.rst158 .. option:: IncludeStyle
/external/llvm-project/clang-tools-extra/clangd/
DHeaders.h157 Inserter(FileName, Code, Style.IncludeStyle) {} in IncludeInserter()

12