summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.75.0/tests/input/cpp/for_auto.cpp
blob: c62548f81f11d03ebeada41945ed788de8bcbb3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
void foo()
{
	for (auto const& item : list)
		bar(item);
	for (const auto& item : list)
		bar(item);
	for (auto& item : list)
		bar(item);

	auto* var = bar();
	auto& var = bar();
	auto var = bar();
	auto const* var = bar();
	auto const& var = bar();
	auto const var = bar();
}