@staticmethod<EOL><INDENT>def fromDirectory(buildDir):<DEDENT>
errorCode = c_uint()<EOL>try:<EOL><INDENT>cdb = conf.lib.clang_CompilationDatabase_fromDirectory(buildDir,<EOL>byref(errorCode))<EOL><DEDENT>except CompilationDatabaseError as e:<EOL><INDENT>raise CompilationDatabaseError(int(errorCode.value),<EOL>"<STR_LIT>")<EOL><DEDENT>return cdb<EOL>
Builds a CompilationDatabase from the database found in buildDir