summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/expected/cpp/30822-pp_indent_brace.cpp
blob: d1decdf63be9c8abcc888c9b41998c426bd6aa37 (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  = 1	  to enable preprocesser indent
// pp_indent_brace	  = 0	  to override preprocessor indent for braces
MyClass::MyClass()
{
	if(isSomething)
	{
		DoSomething();
	}

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

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