parameters: (self)
docstring: get_fragment_dependencies() -> iter
  
          Compute the list of files (as absolute paths) on which the output
          fragments depend (i.e., files for which a modification should trigger a
          rebuild of the fragment).
docstring_summary: get_fragment_dependencies() -> iter
docstring_tokens: get_fragment_dependencies () - > iter
function: def get_fragment_dependencies(self):
          """
          get_fragment_dependencies() -> iter
  
          Compute the list of files (as absolute paths) on which the output
          fragments depend (i.e., files for which a modification should trigger a
          rebuild of the fragment).
          """
  
          # Construct a list of all the dependencies of the Makefile fragment
          # itself. These include all the LLVMBuild files themselves, as well as
          # all of our own sources.
          #
          # Many components may come from the same file, so we make sure to unique
          # these.
          build_paths = set()
          for ci in self.component_infos:
              p = os.path.join(self.source_root, ci.subpath[1:], 'LLVMBuild.txt')
              if p not in build_paths:
                  yield p
                  build_paths.add(p)
  
          # Gather the list of necessary sources by just finding all loaded
          # modules that are inside the LLVM source tree.
          for module in sys.modules.values():
              # Find the module path.
              if not hasattr(module, '__file__'):
                  continue
              path = getattr(module, '__file__')
              if not path:
                  continue
  
              # Strip off any compiled suffix.
              if os.path.splitext(path)[1] in ['.pyc', '.pyo', '.pyd']:
                  path = path[:-1]
  
              # If the path exists and is in the source tree, consider it a
              # dependency.
              if (path.startswith(self.source_root) and os.path.exists(path)):
                  yield path
function_tokens: def get_fragment_dependencies ( self ) : # Construct a list of all the dependencies of the Makefile fragment # itself. These include all the LLVMBuild files themselves, as well as # all of our own sources. # # Many components may come from the same file, so we make sure to unique # these. build_paths = set ( ) for ci in self . component_infos : p = os . path . join ( self . source_root , ci . subpath [ 1 : ] , 'LLVMBuild.txt' ) if p not in build_paths : yield p build_paths . add ( p ) # Gather the list of necessary sources by just finding all loaded # modules that are inside the LLVM source tree. for module in sys . modules . values ( ) : # Find the module path. if not hasattr ( module , '__file__' ) : continue path = getattr ( module , '__file__' ) if not path : continue # Strip off any compiled suffix. if os . path . splitext ( path ) [ 1 ] in [ '.pyc' , '.pyo' , '.pyd' ] : path = path [ : - 1 ] # If the path exists and is in the source tree, consider it a # dependency. if ( path . startswith ( self . source_root ) and os . path . exists ( path ) ) : yield path