[PATCH] PPCallbacksTest expansion - part 1
John Thompson
john.thompson.jtsoftware at gmail.com
Thu Oct 17 16:12:45 PDT 2013
Hi kimgr,
This patch implements a test mechanism for the PPCallbacks mechanism that I've added to the existing tests. It's based on creating a derivation of PPCallbacks that records information passed to each callback in a high-level string format, for later comparison against an array of expected patterns. It allows testing of both the callback order as well as the callback argument content.
This patch provides the basic mechanism, but only implements two new test functions using it, for just the macro-based and conditional-based callbacks, as a proof of concept. If you approve this basic mechanism, I will add additional tests covering other callbacks and situations in subsequent patches.
http://llvm-reviews.chandlerc.com/D1966
Files:
PPCallbacksTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D1966.1.patch
Type: text/x-patch
Size: 40639 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20131017/64a0ba14/attachment.bin>
More information about the cfe-commits
mailing list