1"""
2UseOMP detects if a function use OpenMP
3"""
4
5from pythran.passmanager import FunctionAnalysis
6
7
8class UseOMP(FunctionAnalysis):
9    """Detects if a function use openMP"""
10    def __init__(self):
11        self.result = False
12        super(UseOMP, self).__init__()
13
14    def visit_OMPDirective(self, _):
15        self.result = True
16