summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.73.0/tests/input/cpp/pp_indent_brace.cpp
blob: 86ed0a8f9424cece43e5ca22afd0d2b5f69b2eb5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Example for preprocessor statement in a function definition
// Config uses more than tested option, uses:
// pp_if_indent_code  = true	  to enable preprocesser indent
// pp_indent_brace	  = false	  to override preprocessor indent for braces
MyClass::MyClass()
{
	if(isSomething)
	{
		DoSomething();
	}

#if (USE_FIVE)
		{
			DoSomethingAlso();
		}
#endif

#if (USE_SIX)
		{
			Six mySix;
			DoSomethingWithSix(mySix);
		}
#endif
}