clangc_classes_generator.rb 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. #!/usr/bin/env ruby
  2. require "./binder"
  3. #index_class = Binder::Ruby_C_Class_Generator.new("Index", "CXIndex")
  4. #index_class.free_instructions = %q{
  5. # if(s->data)
  6. # clang_disposeIndex(s->data);
  7. #}
  8. #index_class.module_name("m_clangc")
  9. #index_class.superclass_name("rb_cObject")
  10. #index_class.generate_files
  11. #tu_class = Binder::Ruby_C_Class_Generator.new("TranslationUnit", "CXTranslationUnit", true)
  12. #tu_class.free_instructions = %q{
  13. # if(s->data)
  14. # clang_disposeTranslationUnit(s->data);
  15. #}
  16. #tu_class.generate_files
  17. #diagnostic_class = Binder::Ruby_C_Class_Generator.new("Diagnostic", "CXDiagnostic", true)
  18. #diagnostic_class.free_instructions = %q{
  19. # if(s->data)
  20. # clang_disposeDiagnostic(s->data);
  21. #}
  22. #diagnostic_class.generate_files
  23. #File_class = Binder::Ruby_C_Class_Generator.new("File", "CXFile", true)
  24. #File_class.free_instructions not needed here
  25. #File_class.generate_files
  26. #SourceRange_class = Binder::Ruby_C_Class_Generator.new("SourceRange", "CXSourceRange", true)
  27. #SourceRange_class.generate_files
  28. #SourceLocation_class = Binder::Ruby_C_Class_Generator.new("SourceLocation", "CXSourceLocation", false)
  29. #SourceLocation_class.generate_files
  30. #Cursor_class = Binder::Ruby_C_Class_Generator.new("Cursor", "CXCursor", true)
  31. #Cursor_class.generate_files
  32. #Cursor_class = Binder::Ruby_C_Class_Generator.new("Type", "CXType", false)
  33. #Cursor_class.generate_files
  34. #
  35. #Cursor_class = Binder::Ruby_C_Class_Generator.new("CursorSet", "CXCursorSet", true)
  36. #Cursor_class.generate_files
  37. #Cursor_class = Binder::Ruby_C_Class_Generator.new("CompletionString", "CXCompletionString", true)
  38. #Cursor_class.generate_files
  39. #Cursor_class = Binder::Ruby_C_Class_Generator.new("Module", "CXModule", true)
  40. #Cursor_class.generate_files
  41. #
  42. #Cursor_class = Binder::Ruby_C_Class_Generator.new("CodeCompleteResults", "CXCodeCompleteResults", true)
  43. #Cursor_class.generate_files
  44. Cursor_class = Binder::Ruby_C_Class_Generator.new("CompletionResult", "CXCompletionResult", true)
  45. Cursor_class.generate_files