Skip to content

Color-Of-Code/Clang.NET

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A managed wrapper for Clang.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages