diff options
author | Chris Lattner <sabre@nondot.org> | 2008-05-10 00:02:33 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-05-10 00:02:33 +0000 |
commit | ec9215604073ccd79f26bbd2650dd691d8e7df8d (patch) | |
tree | 1c5ac0ac1b021dac804bc2ee3eafb934906647ab /lib/Analysis/ProgramPoint.cpp | |
parent | 0e470a5326ccf2f6a7c3d12b2aa54a7af2292837 (diff) |
Implement -rewrite-macros, which is a crazy macro expander that expands
macros but doesn't expand #includes, remove comments, remove #defines
etc.
For example:
----
#include <stdio.h>
#define bbaa
#define funclike(x) x "a" x "b" x
bbaa bbaa
#if 1
funclike("gar")
foo /*blah*/ bar
bar
#endif
#if 0
funclike()
#endif
----
rewrites to:
----
#include <stdio.h>
#define bbaa
#define funclike(x) x "a" x "b" x
/*bbaa bbaa*/
#if 1
"gar" "a" "gar" "b" "gar"/*funclike*//*("gar")*/
foo /*blah*/ bar
bar
#endif
#if 0
/*funclike()*/
#endif
----
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@50925 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/ProgramPoint.cpp')
0 files changed, 0 insertions, 0 deletions