aboutsummaryrefslogtreecommitdiffstats
path: root/build/plugins/cpp_style.py
blob: feca9bc66f5a995fbf8e18a65c5e580bf20e36c6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import os 
 
from _common import sort_by_keywords 
 
 
def on_style(unit, *args): 
    def it(): 
        yield 'DONT_PARSE' 
 
        for f in args: 
            f = f[len('${ARCADIA_ROOT}') + 1:] 
 
            if '/generated/' in f: 
                continue 
 
            yield f 
            yield '/cpp_style/files/' + f
 
    unit.onresource(list(it()))