Ejemplo n.º 1
0
 internal static extern CXCodeCompleteResultsPtr clang_codeCompleteAt(CXTranslationUnit tu,
                                                                      string complete_filename, uint complete_line, uint complete_column,
                                                                      [MarshalAs(UnmanagedType.LPArray)] CXUnsavedFile[] unsaved_files,
                                                                      uint num_unsaved_files, CodeCompleteFlags options);
Ejemplo n.º 2
0
        // CodeCompletion
        public ClangCodeCompleteResults CodeCompleteAt(string completeFilename, int completeLine, int completeColumn, ClangUnsavedFile [] unsavedFiles, CodeCompleteFlags options)
        {
            var cx = unsavedFiles.ToNative();

            return(new ClangCodeCompleteResults(LibClang.clang_codeCompleteAt(Handle, completeFilename, (uint)completeLine, (uint)completeColumn, cx, (uint)cx.Length, options)));
        }