<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
For my project(related to source code analysis of C++ program) I  need to traverse the clang AST to figure out all the places<div>where the preprocessor macros are called in the program.<div><div>I am fairly new to clang to be honest.</div><div><br></div><div><div>1. What i want to know is whether the preprocessor gets called before the parser or </div></div><div>it gets called from the parser as each token is seen by it.</div><div>2. How can I obtain the AST of a C++ program which has been generated without any preprocessing.</div><div>Even if there is some syntax-error in doing so, it is okay.</div><div><br></div></div></div><div>Thanks.</div>                                           </div></body>
</html>