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