Generate dot graph from Source Code

Topics: graph
Apr 9, 2010 at 8:09 AM

Hello,

is it possible to use QuickGraph to create / generate dot graph from a source code file (e.g. C++ file)?

In this graph all or some of these elements should be shown as special dot frames:

  • if..else
  • #if..#elif..#else..#endif (C/C++, C#, Java)
  • switch
  • while, do..while
  • for
  • for each (C++), foreach (C#, PHP)
  • break
  • continue
  • goto (C/C++, C#, PHP)
  • return
  • yield return, yield break (C#)
  • lock, using, checked, unchecked, unsafe (C#)
  • assert, synchronized (Java)
  • with (JavaScript)
  • try..catch..finally, throw
  • __try, __finally, __except and __leave (Microsoft extensions for C/C++)
  • abort, exit, _exit, _cexit, _c_exit (C/C++)
  • __if_exists, __if_not_exists (C++)
  • die (PHP)
  • declare (PHP)
  • function declarations
  • property, indexer and event accessor declarations (C++, C#)
  • class, interface, struct, union, enum and namespace declarations
  • static initializers (Java)
  • line labels
  • comments
  • <<<HEREDOC and <<<NOWDOC (PHP)

Is it the right library for that?