Home
last modified time | relevance | path

Searched refs:shiftedCodePosition (Results 1 – 4 of 4) sorted by relevance

/external/clang/unittests/Tooling/
DRefactoringTest.cpp174 EXPECT_EQ(0u, shiftedCodePosition(Replaces, 0)); // |int i; in TEST()
175 EXPECT_EQ(0u, shiftedCodePosition(Replaces, 1)); // |nt i; in TEST()
176 EXPECT_EQ(1u, shiftedCodePosition(Replaces, 2)); // i|t i; in TEST()
177 EXPECT_EQ(2u, shiftedCodePosition(Replaces, 3)); // in| i; in TEST()
178 EXPECT_EQ(3u, shiftedCodePosition(Replaces, 4)); // int| i; in TEST()
179 EXPECT_EQ(3u, shiftedCodePosition(Replaces, 5)); // int | i; in TEST()
180 EXPECT_EQ(3u, shiftedCodePosition(Replaces, 6)); // int |i; in TEST()
181 EXPECT_EQ(4u, shiftedCodePosition(Replaces, 7)); // int |; in TEST()
182 EXPECT_EQ(5u, shiftedCodePosition(Replaces, 8)); // int i| in TEST()
193 EXPECT_EQ(0u, shiftedCodePosition(Replaces, 0)); // |int i; in TEST()
[all …]
/external/clang/include/clang/Tooling/Core/
DReplacement.h168 unsigned shiftedCodePosition(const Replacements& Replaces, unsigned Position);
174 unsigned shiftedCodePosition(const std::vector<Replacement> &Replaces,
/external/clang/tools/clang-format/
DClangFormat.cpp275 << tooling::shiftedCodePosition(FormatChanges, CursorPosition) in format()
300 << tooling::shiftedCodePosition(FormatChanges, CursorPosition) in format()
/external/clang/lib/Tooling/Core/
DReplacement.cpp163 unsigned shiftedCodePosition(const Replacements &Replaces, unsigned Position) { in shiftedCodePosition() function
169 unsigned shiftedCodePosition(const std::vector<Replacement> &Replaces, in shiftedCodePosition() function