Commit Graph

7 Commits

Author SHA1 Message Date
Alexander Kornienko e2fbe37780 Allow the creation of human-friendly ASTDumper to arbitrary output stream
Summary:
`ASTPrinter` allows setting the ouput to any O-Stream, but that printer creates source-code-like syntax (and is also marked with a `FIXME`). The nice, colourful, mostly human-readable `ASTDumper` only works on the standard output, which is not feasible in case a user wants to see the AST of a file through a code navigation/comprehension tool.

This small addition of an overload solves generating a nice colourful AST block for the users of a tool I'm working on, [[ http://github.com/Ericsson/CodeCompass | CodeCompass ]], as opposed to having to duplicate the behaviour of definitions that only exist in the anonymous namespace of implementation TUs related to this module.

Reviewers: alexfh, klimek, rsmith

Reviewed By: alexfh

Subscribers: rnkovacs, dkrupp, gsd, xazax.hun, cfe-commits, #clang

Tags: #clang

Patch by Whisperity!

Differential Revision: https://reviews.llvm.org/D45096

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@329391 91177308-0d34-0410-b5e6-96231b3b80d8
2018-04-06 13:01:12 +00:00
Andrey Bokhanko d0b6cd6d9a Fixed a typo (compilation_commands.json --> compile_commands.json).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@279240 91177308-0d34-0410-b5e6-96231b3b80d8
2016-08-19 13:36:31 +00:00
Nikola Smiljanic 253de1f7fd Fix spelling error and remove the part about CMake having experimental Ninja support since 2.8.9 has been released some time ago.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@172182 91177308-0d34-0410-b5e6-96231b3b80d8
2013-01-11 07:23:53 +00:00
Nikola Smiljanic c2345a9cb3 Revert the line ending mess I made.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@172179 91177308-0d34-0410-b5e6-96231b3b80d8
2013-01-11 07:14:58 +00:00
Nikola Smiljanic 81e84e54b8 Fix spelling error and remove the part about CMake having experimental Ninja support since 2.8.9 has been released some time ago.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@172177 91177308-0d34-0410-b5e6-96231b3b80d8
2013-01-11 07:09:00 +00:00
Dmitri Gribenko 97555a1368 Documentation: random cleanups. Use monospaced font where appropriate,
highlight console output with "code-block:: console", etc.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@170276 91177308-0d34-0410-b5e6-96231b3b80d8
2012-12-15 21:10:51 +00:00
Sean Silva 93ca0217a2 docs: More reST conversion.
Sorry for the large commit, but it is much faster to convert in batches.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@170067 91177308-0d34-0410-b5e6-96231b3b80d8
2012-12-13 01:10:46 +00:00