[PATCH] [extra] pptrace - preprocessor tracing and testing tool
John Thompson
john.thompson.jtsoftware at gmail.com
Thu Oct 24 13:46:52 PDT 2013
Hi silvas, kimgr,
pp-trace is a tool for displaying preprocessor activity by means of the PPCallbacks interface. Its primary reason for existence is for testing the PPCallbacks mechanism, but it also might be useful as a tool for understanding preprocessor activity (as an alternative to clang's -P option for looking at preprocessor output).
This is a first cut, for proof of concept, with only two tests for demonstration purposes.
It supports two output formats, YAML and a generic format. Originally I just put in the YAML, but I felt it was kind of verbose, so I added the generic format as a default.
Please see the file comments for details.
Documentation and more tests will follow in a later checkin.
http://llvm-reviews.chandlerc.com/D2020
Files:
test/pp-trace/pp-trace-macro.cpp
test/pp-trace/pp-trace-macro-yaml.cpp
pp-trace/PPTrace.cpp
pp-trace/PPCallbacksTracker.h
pp-trace/PPTraceGeneric.h
pp-trace/PPTraceYAML.cpp
pp-trace/PPTraceYAML.h
pp-trace/PPCallbacksTracker.cpp
pp-trace/PPTraceGeneric.cpp
pp-trace/CMakeLists.txt
pp-trace/Makefile
CMakeLists.txt
Makefile
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D2020.1.patch
Type: text/x-patch
Size: 75451 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20131024/2506c68e/attachment.bin>
More information about the cfe-commits
mailing list