Skip to content

harrah/inherit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A basic compiler plugin to write out the inheritance graph for a code base.  It produces a graphviz file inherit.dot.  Process it with something like:

  dot -Tpng -Grankdir=BT -o inherit.png inherit.dot

Build using sbt 0.6.12:

  $ sbt "+update" "+publish-local"

This produces a compiler plugin in target/scala_<scala-version>.  Choose the one for the version of Scala you are using.

Alternatively, if you would like to use the plugin in a project you are building with sbt, make your project definition extend AutoCompilerPlugins and add inherit as a dependency:

class YourProject(info: ProjectInfo) extends DefaultProject(info) with AutoCompilerPlugins
{
  val inherit = compilerPlugin("inherit" %% "inherit" % "0.1.2")
}

About

Inheritance graph compiler plugin

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published