code: 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
docs: Builds a CompilationDatabase from the database found in buildDir