summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.73.0/tests/expected/cs/10046-UNI-1333.mm
blob: de887ad009270387a4b77793024af1173a6e474f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Test if Uncrustify properly handles `@synchronized` keyword for ObjC

// In keywords.cpp there is no @synchronized keyword listed and from what I've seen synchronized is only regarded as a keyword in other languages
// { "synchronized", CT_QUALIFIER, LANG_D | LANG_JAVA | LANG_ECMA },

-(void) foo
{
    @synchronized(self)
    {
        if (bar)
        {
            bar = false;
        }
    }
}