File: pyclangcheck.py

package info (click to toggle)
seqan2 2.4.0%2Bdfsg-14
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 224,136 kB
  • sloc: cpp: 256,886; ansic: 91,672; python: 8,330; sh: 995; xml: 570; makefile: 251; awk: 51; javascript: 21
file content (24 lines) | stat: -rwxr-xr-x 677 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/env python3
"""llvm-clang based style checker."""

__author__ = 'Manuel Holtgrewe <manuel.holtgrewe@fu-berlin.de>'

import os.path
import sys

def main():
    path = os.path.abspath(os.path.join(os.path.dirname(__file__), '..', 'py_lib'))
    sys.path.insert(0, path)
    import seqan.pyclangcheck
    return seqan.pyclangcheck.main()

if __name__ == '__main__':
    ## import cProfile
    ## cProfile.run('main()', 'pyclangcheck.prof')
    sys.exit(main())
    ## import pstats
    ## p = pstats.Stats('pyclangcheck.prof')
    ## print 'BY TIME'
    ## p.sort_stats('time').print_stats()
    ## print 'BY CUMULATIVE'
    ## p.sort_stats('cumulative').print_stats()