summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.78.1/tests/input/oc/UNI-1333.mm
blob: 5c91693caedf6b42d9d0c8bde23ca78cc3ff666c (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;
        }
    }
}