parameters: (option)
return_statement: return false
docstring: Test that a compiler switch/option is supported by the apple clang that is in the PATH
docstring_summary: Test that a compiler switch/option is supported by the apple clang that is in the PATH
docstring_tokens: Test that a compiler switch / option is supported by the apple clang that is in the PATH
function: def apple_clang_supports_option(option):
      '''
      Test that a compiler switch/option is supported by the apple clang that is in the PATH
      '''
      with open(os.devnull, "w") as DEV_NULL:
          clang_subprocess = subprocess.Popen(['clang', option, '-o-', '-x', 'c++', '-'], 
              stdin=subprocess.PIPE, stdout=DEV_NULL, stderr=subprocess.STDOUT)
          clang_subprocess.stdin.write(b'int main(){}\n')
          clang_subprocess.communicate()
          clang_subprocess.stdin.close()
          return clang_subprocess.returncode == 0
      return false
function_tokens: def apple_clang_supports_option ( option ) : with open ( os . devnull , "w" ) as DEV_NULL : clang_subprocess = subprocess . Popen ( [ 'clang' , option , '-o-' , '-x' , 'c++' , '-' ] , stdin = subprocess . PIPE , stdout = DEV_NULL , stderr = subprocess . STDOUT ) clang_subprocess . stdin . write ( b'int main(){}\n' ) clang_subprocess . communicate ( ) clang_subprocess . stdin . close ( ) return clang_subprocess . returncode == 0 return false