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