Skip to content

Latest commit

 

History

History
73 lines (50 loc) · 1.59 KB

README.md

File metadata and controls

73 lines (50 loc) · 1.59 KB

Clang.Net

NOTE: OBSOLETE

Drawbacks of my old approach:

  • used Managed C++
  • needed to have the same compiler for compiling Clang and the wrapper
  • was not able to support linux

I consider now using following lib and contribute to it instead of continuing development here https://github.com/Microsoft/ClangSharp

OLD CONTENT BELOW


A managed wrapper for clang.

Documentation

Fully supported

  • String manipulation routines (transparent handling)
  • Traversing the AST with cursors
  • C++ AST introspection
  • File manipulation routines
  • Physical source locations

Partially supported

  • Cursor manipulations
  • Translation unit manipulation
  • Mapping between cursors and source code
  • Diagnostic reporting
  • Type information for CXCursors

TODO

  • Higher level API functions (Indexing)

  • Token extraction and manipulation

  • Information for attributes

  • Cross-referencing in the AST

  • Debugging facilities

  • Miscellaneous utility functions

  • Remapping functions

  • implement CXDiagnosticSet wrapper

  • FixIts support

NOT IMPLEMENTED YET

And not yet planned because not part of my intended use:

  • Code completion

Dependencies

C-Runtime. In order to load the libclang.dll, this specific C Run-Time is needed

.NET 4. Is required to run the wrapper.

An alternative is to recompile llvm + clang using the runtime of your choice.