Class CXIdxImportedASTFileInfo

  • All Implemented Interfaces:

    public class CXIdxImportedASTFileInfo
    extends Struct
    Data for IndexerCallbacks#importedASTFile.

    Member documentation

    • file – top level AST file containing the imported PCH, module or submodule
    • module – the imported module or NULL if the AST file is a PCH
    • loc – location where the file is imported. Applicable only for modules
    • isImplicit – non-zero if an inclusion directive was automatically turned into a module import. Applicable only for modules


     struct CXIdxImportedASTFileInfo {
         CXFile file;
         CXModule module;
         CXIdxLoc loc;
         int isImplicit;
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.

        The struct member offsets.
    • Constructor Detail

      • CXIdxImportedASTFileInfo

        public CXIdxImportedASTFileInfo​(java.nio.ByteBuffer container)
        Creates a CXIdxImportedASTFileInfo instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be visible to the struct instance and vice versa.

        The created instance holds a strong reference to the container object.

    • Method Detail

      • sizeof

        public int sizeof()
        Description copied from class: Struct
        Returns sizeof(struct).
        Specified by:
        sizeof in class Struct
      • file

        public long file()
        Returns the value of the file field.
      • module

        public long module()
        Returns the value of the module field.
      • isImplicit

        public boolean isImplicit()
        Returns the value of the isImplicit field.
      • create

        public static CXIdxImportedASTFileInfo create​(long address)
        Returns a new CXIdxImportedASTFileInfo instance for the specified memory address.
      • nfile

        public static long nfile​(long struct)
        Unsafe version of file().
      • nmodule

        public static long nmodule​(long struct)
        Unsafe version of module().
      • nloc

        public static CXIdxLoc nloc​(long struct)
        Unsafe version of loc().
      • nisImplicit

        public static int nisImplicit​(long struct)
        Unsafe version of isImplicit().