How to use the pybind11.tools.clang.cindex.CachedProperty function in pybind11

To help you get started, we’ve selected a few pybind11 examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github YannickJadoul / Parselmouth / pybind11 / tools / clang / cindex.py View on Github external
    @CachedProperty
    def num_chunks(self):
        return conf.lib.clang_getNumCompletionChunks(self.obj)
github YannickJadoul / Parselmouth / pybind11 / tools / clang / cindex.py View on Github external
    @CachedProperty
    def lib(self):
        lib = self.get_cindex_library()
        register_functions(lib, not Config.compatibility_check)
        Config.loaded = True
        return lib
github YannickJadoul / Parselmouth / pybind11 / tools / clang / cindex.py View on Github external
    @CachedProperty
    def kind(self):
        return completionChunkKindMap[self.__kindNumber]
github YannickJadoul / Parselmouth / pybind11 / tools / clang / cindex.py View on Github external
    @CachedProperty
    def spelling(self):
        if self.__kindNumber in SpellingCache:
                return SpellingCache[self.__kindNumber]
        return conf.lib.clang_getCompletionChunkText(self.cs, self.key).spelling
github YannickJadoul / Parselmouth / pybind11 / tools / clang / cindex.py View on Github external
    @CachedProperty
    def string(self):
        res = conf.lib.clang_getCompletionChunkCompletionString(self.cs,
                                                                self.key)

        if (res):
          return CompletionString(res)
        else:
          None