class_docstr: Parameters
  ----------
  name : str
      Extension name.
  sources : list of str
      List of source file locations relative to the top directory of
      the package.
  extra_compile_args : list of str
      Extra command line arguments to pass to the compiler.
  extra_f77_compile_args : list of str
      Extra command line arguments to pass to the fortran77 compiler.
  extra_f90_compile_args : list of str
      Extra command line arguments to pass to the fortran90 compiler.
class_docstr_tok: ["Parameters","--","--","--","--","--","name",":","str","Extension","name",".","sources",":","list","of","str","List","of","source","file","locations","relative","to","the","top","directory","of","the","package",".","extra_compile_args",":","list","of","str","Extra","command","line","arguments","to","pass","to","the","compiler",".","extra_f77_compile_args",":","list","of","str","Extra","command","line","arguments","to","pass","to","the","fortran77","compiler",".","extra_f90_compile_args",":","list","of","str","Extra","command","line","arguments","to","pass","to","the","fortran90","compiler","."]
code: def has_cxx_sources(self):
      for source in self.sources:
          if cxx_ext_re(str(source)):
              return True
      return False
  
imports: import re
  from distutils.extension import Extension
label_desc: Use image node_id 2 for calling the Extension obj's underlying member method code with example usage: obj.has_cxx_sources() and returns: False, True