aboutsummaryrefslogtreecommitdiffstats
path: root/build/plugins/cpp_style.py
blob: fd2b63e7f3f33c73aebef25d0d1d13f6b938c674 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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()))