#NEWLINE# def can_find_clang_headers( clang_args ) : #NEWLINE# #INDENT# flags = 0 #NEWLINE# currentFile = ( 'test.c' , '#include "limits.h"\n#include "stddef.h"\n' ) #NEWLINE# try : #NEWLINE# #INDENT# index = CI . Index . create ( ) #NEWLINE# tu = index . parse ( 'test.c' , clang_args , [ currentFile ] , flags ) #NEWLINE# #UNINDENT# except CI . TranslationUnitLoadError : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# return ( len ( tu . diagnostics ) == 0 )