parameters: (buildDir)
return_statement: return cdb
docstring: Builds a CompilationDatabase from the database found in buildDir
docstring_summary: Builds a CompilationDatabase from the database found in buildDir
docstring_tokens: Builds a CompilationDatabase from the database found in buildDir
function: def fromDirectory(buildDir):
          """Builds a CompilationDatabase from the database found in buildDir"""
          errorCode = c_uint()
          try:
              cdb = conf.lib.clang_CompilationDatabase_fromDirectory(buildDir,
                  byref(errorCode))
          except CompilationDatabaseError as e:
              raise CompilationDatabaseError(int(errorCode.value),
                                             "CompilationDatabase loading failed")
          return cdb
function_tokens: def fromDirectory ( buildDir ) : errorCode = c_uint ( ) try : cdb = conf . lib . clang_CompilationDatabase_fromDirectory ( buildDir , byref ( errorCode ) ) except CompilationDatabaseError as e : raise CompilationDatabaseError ( int ( errorCode . value ) , "CompilationDatabase loading failed" ) return cdb