コード例 #1
0
 public static extern CXTranslationUnitImpl *clang_createTranslationUnitFromSourceFile(
     CXIndexImpl *CIdx,
     sbyte *source_filename,
     int num_clang_command_line_args,
     sbyte **clang_command_line_args,
     uint num_unsaved_files,
     CXUnsavedFile *unsaved_files);
コード例 #2
0
 public static extern CXTranslationUnitImpl *clang_parseTranslationUnit(
     CXIndexImpl *CIdx,
     sbyte *source_filename,
     sbyte **command_line_args,
     int num_command_line_args,
     CXUnsavedFile *unsaved_files,
     uint num_unsaved_files,
     uint options);
コード例 #3
0
 public static extern CXErrorCode clang_parseTranslationUnit2FullArgv(
     CXIndexImpl *CIdx,
     sbyte *source_filename,
     sbyte **command_line_args,
     int num_command_line_args,
     CXUnsavedFile *unsaved_files,
     uint num_unsaved_files,
     uint options,
     CXTranslationUnitImpl **out_TU);
コード例 #4
0
 /// <summary>
 /// Provides a shared context for creating translation units.
 /// </summary>
 /// <param name="excludeDeclarationsFromPCH">
 /// When true, allows enumeration of "local" declarations (when loading any new
 /// translation units). A "local" declaration is one that belongs in the translation unit
 /// itself and not in a precompiled header that was used by the translation unit. If false,
 /// all declarations will be enumerated.
 /// </param>
 /// <param name="displayDiagnostics">
 /// true to print diagnostics to standard error.
 /// </param>
 public Index(bool excludeDeclarationsFromPCH, bool displayDiagnostics)
 {
     Ptr = NativeMethods.clang_createIndex(
         Convert.ToInt32(excludeDeclarationsFromPCH),
         Convert.ToInt32(displayDiagnostics));
 }
コード例 #5
0
 public static extern uint clang_CXIndex_getGlobalOptions(
     CXIndexImpl *arg1);
コード例 #6
0
 public static extern void clang_CXIndex_setGlobalOptions(
     CXIndexImpl *arg1,
     uint options);
コード例 #7
0
 public static extern void clang_disposeIndex(
     CXIndexImpl *index);
コード例 #8
0
 public static extern CXErrorCode clang_createTranslationUnit2(
     CXIndexImpl *CIdx,
     sbyte *ast_filename,
     CXTranslationUnitImpl **out_TU);
コード例 #9
0
 public static extern CXTranslationUnitImpl *clang_createTranslationUnit(
     CXIndexImpl *CIdx,
     sbyte *ast_filename);
コード例 #10
0
 public static extern CXIndexActionImpl *clang_IndexAction_create(
     CXIndexImpl *CIdx);