cpp_style.py 346 B

12345678910111213141516171819
  1. import os
  2. from _common import sort_by_keywords
  3. def on_style(unit, *args):
  4. def it():
  5. yield 'DONT_PARSE'
  6. for f in args:
  7. f = f[len('${ARCADIA_ROOT}') + 1:]
  8. if '/generated/' in f:
  9. continue
  10. yield f
  11. yield '/cpp_style/files/' + f
  12. unit.onresource(list(it()))