Pastebin is 300% more awesome when you are logged in. Sign Up, it's FREE!
Guest

Untitled

By: a guest on Jan 26th, 2012  |  syntax: D  |  size: 1.21 KB  |  hits: 105  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. alias void* CXIndex;
  2. CXIndex clang_createIndex(int excludeDeclarationsFromPCH, int displayDiagnostics);
  3. enum CXTranslationUnit_Flags {
  4.   CXTranslationUnit_None = 0x0
  5. }
  6. uint clang_getNumDiagnostics(CXTranslationUnit Unit);
  7.  
  8. CXTranslationUnit clang_parseTranslationUnit(CXIndex CIdx,
  9.                                                     const char* source_filename,
  10.                                          const(char*)* command_line_args,
  11.                                                       int num_command_line_args,
  12.                                             CXUnsavedFile* unsaved_files,
  13.                                                      uint num_unsaved_files,
  14.                                                             uint options);
  15.  
  16. struct CXTranslationUnitImpl;
  17. alias CXTranslationUnitImpl* CXTranslationUnit;
  18.  
  19. struct CXString {
  20.   void* data;
  21.   uint private_flags;
  22. }
  23.  
  24. CXString clang_formatDiagnostic(CXDiagnostic Diagnostic, uint Options);
  25. alias void* CXDiagnostic;
  26. uint clang_defaultDiagnosticDisplayOptions();
  27. const(char)* clang_getCString(CXString string);
  28. void clang_disposeString(CXString string);
  29. void clang_disposeTranslationUnit(CXTranslationUnit);
  30. void clang_disposeIndex(CXIndex index);