aboutsummaryrefslogtreecommitdiffstats
path: root/build/plugins/cpp_style.py
blob: 6d59a1f0d48ab8124b9c96a36defa03c54166d94 (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()))