Home
last modified time | relevance | path

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

12

/llvm-project-15.0.7/clang/lib/Tooling/Inclusions/
H A 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()
H A DHeaderIncludes.cpp41 StringRef FileName, StringRef Code, const IncludeStyle &Style, in getOffsetAfterTokenSequence()
84 const IncludeStyle &Style) { in getOffsetAfterHeaderGuardsAndComments()
160 const IncludeStyle &Style) { in getMaxHeaderInsertionOffset()
191 IncludeCategoryManager::IncludeCategoryManager(const IncludeStyle &Style, in IncludeCategoryManager()
270 const IncludeStyle &Style) in HeaderIncludes()
H A DCMakeLists.txt5 IncludeStyle.cpp
/llvm-project-15.0.7/clang/unittests/Format/
H A DSortIncludesTest.cpp53 tooling::IncludeStyle &Style = FmtStyle.IncludeStyle;
89 FmtStyle.IncludeStyle.IncludeBlocks = tooling::IncludeStyle::IBS_Regroup; in TEST_F()
90 FmtStyle.IncludeStyle.IncludeCategories = { in TEST_F()
188 Style.IncludeBlocks = tooling::IncludeStyle::IBS_Merge; in TEST_F()
198 Style.IncludeBlocks = tooling::IncludeStyle::IBS_Regroup; in TEST_F()
366 Style.IncludeBlocks = tooling::IncludeStyle::IBS_Merge; in TEST_F()
386 Style.IncludeBlocks = tooling::IncludeStyle::IBS_Merge; in TEST_F()
396 Style.IncludeBlocks = tooling::IncludeStyle::IBS_Regroup; in TEST_F()
604 Style.IncludeBlocks = tooling::IncludeStyle::IBS_Merge; in TEST_F()
836 Style.IncludeBlocks = tooling::IncludeStyle::IBS_Merge; in TEST_F()
[all …]
/llvm-project-15.0.7/clang/include/clang/Tooling/Inclusions/
H A DIncludeStyle.h20 struct IncludeStyle { struct
159 LLVM_YAML_IS_SEQUENCE_VECTOR(clang::tooling::IncludeStyle::IncludeCategory) in LLVM_YAML_IS_SEQUENCE_VECTOR() argument
165 struct MappingTraits<clang::tooling::IncludeStyle::IncludeCategory> { in LLVM_YAML_IS_SEQUENCE_VECTOR()
167 clang::tooling::IncludeStyle::IncludeCategory &Category); in LLVM_YAML_IS_SEQUENCE_VECTOR()
172 clang::tooling::IncludeStyle::IncludeBlocksStyle> { in LLVM_YAML_IS_SEQUENCE_VECTOR()
174 enumeration(IO &IO, clang::tooling::IncludeStyle::IncludeBlocksStyle &Value); in LLVM_YAML_IS_SEQUENCE_VECTOR()
H A DHeaderIncludes.h29 IncludeCategoryManager(const IncludeStyle &Style, StringRef FileName);
41 const IncludeStyle Style;
52 const IncludeStyle &Style);
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/utils/
H A 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>>
H A DIncludeSorter.cpp29 StringRef makeCanonicalName(StringRef Str, IncludeSorter::IncludeStyle Style) { in makeCanonicalName()
68 bool IsAngled, IncludeSorter::IncludeStyle Style) { in determineIncludeKind()
107 IncludeSorter::IncludeStyle Style) { in compareHeaders()
108 if (Style == IncludeSorter::IncludeStyle::IS_Google_ObjC) { in compareHeaders()
127 IncludeStyle Style) in IncludeSorter()
155 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()
H A DIncludeInserter.h62 explicit IncludeInserter(IncludeSorter::IncludeStyle Style,
85 IncludeSorter::IncludeStyle getStyle() const { return Style; } in getStyle()
96 const IncludeSorter::IncludeStyle Style;
H A DIncludeInserter.cpp39 IncludeInserter::IncludeInserter(IncludeSorter::IncludeStyle Style, in IncludeInserter()
/llvm-project-15.0.7/clang/unittests/Tooling/
H A DHeaderIncludesTest.cpp44 IncludeStyle Style = format::getLLVMStyle().IncludeStyle;
112 .IncludeStyle; in TEST_F()
145 .IncludeStyle; in TEST_F()
226 .IncludeStyle; in TEST_F()
516 .IncludeStyle; in TEST_F()
/llvm-project-15.0.7/clang/include/clang/Format/
H A DFormat.h2231 tooling::IncludeStyle IncludeStyle; member
3905 IncludeStyle.IncludeBlocks == R.IncludeStyle.IncludeBlocks &&
3906 IncludeStyle.IncludeCategories == R.IncludeStyle.IncludeCategories &&
3907 IncludeStyle.IncludeIsMainRegex ==
3908 R.IncludeStyle.IncludeIsMainRegex &&
3909 IncludeStyle.IncludeIsMainSourceRegex ==
3910 R.IncludeStyle.IncludeIsMainSourceRegex &&
/llvm-project-15.0.7/llvm/utils/gn/secondary/clang/lib/Tooling/Inclusions/
H A DBUILD.gn13 "IncludeStyle.cpp",
/llvm-project-15.0.7/clang/lib/Format/
H A DFormat.cpp1258 LLVMStyle.IncludeStyle.IncludeCategories = { in getLLVMStyle()
1263 LLVMStyle.IncludeStyle.IncludeBlocks = tooling::IncludeStyle::IBS_Preserve; in getLLVMStyle()
1381 GoogleStyle.IncludeStyle.IncludeBlocks = tooling::IncludeStyle::IBS_Regroup; in getGoogleStyle()
1485 GoogleStyle.IncludeStyle.IncludeBlocks = in getGoogleStyle()
1486 tooling::IncludeStyle::IBS_Preserve; in getGoogleStyle()
1518 ChromiumStyle.IncludeStyle.IncludeBlocks = in getChromiumStyle()
1519 tooling::IncludeStyle::IBS_Preserve; in getChromiumStyle()
2721 Style.IncludeStyle.IncludeBlocks == tooling::IncludeStyle::IBS_Preserve) { in sortCppIncludes()
2729 if (Style.IncludeStyle.IncludeBlocks == in sortCppIncludes()
2828 (Style.IncludeStyle.IncludeBlocks == tooling::IncludeStyle::IBS_Merge || in sortCppIncludes()
[all …]
/llvm-project-15.0.7/clang-tools-extra/docs/clang-tidy/checks/misc/
H A Duniqueptr-reset-release.rst21 .. option:: IncludeStyle
/llvm-project-15.0.7/clang-tools-extra/docs/clang-tidy/checks/abseil/
H A Dstring-find-startswith.rst35 .. option:: IncludeStyle
H A Dstring-find-str-contains.rst44 .. option:: IncludeStyle
/llvm-project-15.0.7/clang-tools-extra/docs/clang-tidy/checks/cppcoreguidelines/
H A Dpro-bounds-constant-array-index.rst24 .. option:: IncludeStyle
H A Dinit-variables.rst58 .. option:: IncludeStyle
/llvm-project-15.0.7/clang-tools-extra/docs/clang-tidy/checks/modernize/
H A Dmake-shared.rst42 .. option:: IncludeStyle
H A Dmake-unique.rst42 .. option:: IncludeStyle
H A Dreplace-auto-ptr.rst76 .. option:: IncludeStyle
H A Dpass-by-value.rst158 .. option:: IncludeStyle
/llvm-project-15.0.7/clang-tools-extra/docs/clang-tidy/checks/performance/
H A Dunnecessary-value-param.rst60 .. option:: IncludeStyle
/llvm-project-15.0.7/clang-tools-extra/clangd/
H A DHeaders.h214 Inserter(FileName, Code, Style.IncludeStyle) {} in IncludeInserter()

12