test suite for gcc frontend parser?

Rizwan Mian <rizwan@transitive.com>
23 Aug 2003 23:08:24 -0400

          From comp.compilers

Related articles
test suite for gcc frontend parser? rizwan@transitive.com (Rizwan Mian) (2003-08-23)
Re: test suite for gcc frontend parser? lex@cc.gatech.edu (Lex Spoon) (2003-09-04)
Re: test suite for gcc frontend parser? idbaxter@semdesigns.com (Ira Baxter) (2003-09-04)
| List of all articles for this month |

From: Rizwan Mian <rizwan@transitive.com>
Newsgroups: gnu.gcc,comp.compilers
Date: 23 Aug 2003 23:08:24 -0400
Organization: Zen Internet
Keywords: GCC, testing, question
Posted-Date: 23 Aug 2003 23:08:24 EDT

Hi all,


I am writing some perl scripts to instrument C++ control flow
constructs (e.g. functions, if-then-elses etc.) to dump out code
coverage information.


This involves recognising the constructs and then instrumenting
them. As you may know that these constructs have many syntax
variations such as:


void helloworld() {
}


void helloworld()
{
}


void helloworld(){}


All mean the samething.


Now, I have the following questions:
1. Where can I find the test suite/c++ source files that stresses out gcc's
parser for all possible syntax variations when piped through gcc.
2. Is it all possible that I could use gcc's parser and integrate that into
my scripts. Has anybody ever tried that?
3. Does anybody know of an existing perl c++ parser?
4. Can anyone suggest a code coverage tool that is compiler and architecture
independent?


Thanks in advance for your help
Rizwan


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.