Home
last modified time | relevance | path

Searched refs:LineRanges (Results 1 – 6 of 6) sorted by relevance

/external/llvm-project/clang-tools-extra/unittests/clang-tidy/
DClangTidyOptionsTest.cpp58 EXPECT_EQ(3u, Options.LineFilter[0].LineRanges.size()); in TEST()
59 EXPECT_EQ(3u, Options.LineFilter[0].LineRanges[0].first); in TEST()
60 EXPECT_EQ(15u, Options.LineFilter[0].LineRanges[0].second); in TEST()
61 EXPECT_EQ(20u, Options.LineFilter[0].LineRanges[1].first); in TEST()
62 EXPECT_EQ(30u, Options.LineFilter[0].LineRanges[1].second); in TEST()
63 EXPECT_EQ(42u, Options.LineFilter[0].LineRanges[2].first); in TEST()
64 EXPECT_EQ(42u, Options.LineFilter[0].LineRanges[2].second); in TEST()
66 EXPECT_EQ(0u, Options.LineFilter[1].LineRanges.size()); in TEST()
68 EXPECT_EQ(1u, Options.LineFilter[2].LineRanges.size()); in TEST()
69 EXPECT_EQ(100u, Options.LineFilter[2].LineRanges[0].first); in TEST()
[all …]
/external/clang/tools/clang-format/
DClangFormat.cpp56 LineRanges("lines", cl::desc("<start line>:<end line> - format a range of\n" variable
141 if (!LineRanges.empty()) { in fillRanges()
147 for (unsigned i = 0, e = LineRanges.size(); i < e; ++i) { in fillRanges()
149 if (parseLineRange(LineRanges[i], FromLine, ToLine)) { in fillRanges()
356 if (!Offsets.empty() || !Lengths.empty() || !LineRanges.empty()) { in main()
/external/llvm-project/clang/tools/clang-format/
DClangFormat.cpp54 LineRanges("lines", variable
206 if (!LineRanges.empty()) { in fillRanges()
212 for (unsigned i = 0, e = LineRanges.size(); i < e; ++i) { in fillRanges()
214 if (parseLineRange(LineRanges[i], FromLine, ToLine)) { in fillRanges()
522 (!Offsets.empty() || !Lengths.empty() || !LineRanges.empty())) { in main()
/external/llvm-project/clang-tools-extra/clang-tidy/
DClangTidyOptions.cpp48 IO.mapOptional("lines", File.LineRanges); in mapping()
53 for (const FileFilter::LineRange &Range : File.LineRanges) { in validate()
DClangTidyOptions.h36 std::vector<LineRange> LineRanges; member
DClangTidyDiagnosticConsumer.cpp463 if (Filter.LineRanges.empty()) in passesLineFilter()
465 for (const FileFilter::LineRange &Range : Filter.LineRanges) { in passesLineFilter()