<html><body><div style="color:#000; background-color:#fff; font-family:Courier New, courier, monaco, monospace, sans-serif;font-size:10pt"><div style="RIGHT: auto"><SPAN style="RIGHT: auto">Another way of doing this can be to use 'HeaderSearchOptions' as described in the post.</SPAN></div>
<div style="RIGHT: auto"><SPAN style="RIGHT: auto"></SPAN> </div>
<div style="RIGHT: auto"><SPAN style="RIGHT: auto"><A style="RIGHT: auto" href="http://clang-developers.42468.n3.nabble.com/unable-to-parse-header-files-td2145004.html">http://clang-developers.42468.n3.nabble.com/unable-to-parse-header-files-td2145004.html</A></SPAN></div>
<div style="RIGHT: auto"><SPAN style="RIGHT: auto"></SPAN> </div>
<div style="FONT-SIZE: 13px; FONT-FAMILY: Courier New, courier, monaco, monospace, sans-serif; RIGHT: auto; COLOR: rgb(0,0,0); FONT-STYLE: normal; BACKGROUND-COLOR: transparent"><SPAN style="RIGHT: auto">What is the difference between using 'HeaderSearchOptions' and -include flag? Is it only that we use 'HeaderSearchOptions' when using clang as a library and '-include' when using clang as executable ?</SPAN></div>
<div style="RIGHT: auto"><SPAN style="RIGHT: auto"></SPAN> </div>
<div style="RIGHT: auto"><SPAN style="RIGHT: auto">Regards,</SPAN></div>
<div style="RIGHT: auto"><SPAN style="RIGHT: auto">Pankaj<VAR id=yui-ie-cursor></VAR></SPAN></div>
<div style="FONT-SIZE: 13px; FONT-FAMILY: Courier New, courier, monaco, monospace, sans-serif; RIGHT: auto; COLOR: rgb(0,0,0); FONT-STYLE: normal; BACKGROUND-COLOR: transparent"><SPAN style="RIGHT: auto"><FONT size=2></FONT></SPAN> </div>
<div style="RIGHT: auto"><BR style="RIGHT: auto"></div>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: Courier New, courier, monaco, monospace, sans-serif">
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">
<DIV style="RIGHT: auto" dir=ltr>
<DIV class=hr contentEditable=false style="FONT-SIZE: 0px; BORDER-TOP: #ccc 1px solid; HEIGHT: 0px; BORDER-RIGHT: #ccc 1px solid; BORDER-BOTTOM: #ccc 1px solid; PADDING-BOTTOM: 0px; PADDING-TOP: 0px; PADDING-LEFT: 0px; MARGIN: 5px 0px; BORDER-LEFT: #ccc 1px solid; LINE-HEIGHT: 0; PADDING-RIGHT: 0px" readonly="true"></DIV><FONT size=2 face=Arial><B><SPAN style="FONT-WEIGHT: bold">From:</SPAN></B> "Arsenault, Matthew" <Matthew.Arsenault@amd.com><BR><B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B> Wang Qi <wqking@outlook.com>; "cfe-dev@cs.uiuc.edu" <cfe-dev@cs.uiuc.edu> <BR><B><SPAN style="FONT-WEIGHT: bold">Sent:</SPAN></B> Tuesday, July 2, 2013 9:59 PM<BR><B><SPAN style="FONT-WEIGHT: bold">Subject:</SPAN></B> Re: [cfe-dev] Can I add include files into preprocessor?<BR></FONT></DIV>
<DIV class=y_msg_container style="RIGHT: auto"><BR style="RIGHT: auto">I think what you're looking for is the -include flag<BR>________________________________________<BR>From: <A href="mailto:cfe-dev-bounces@cs.uiuc.edu" ymailto="mailto:cfe-dev-bounces@cs.uiuc.edu">cfe-dev-bounces@cs.uiuc.edu</A> [<A href="mailto:cfe-dev-bounces@cs.uiuc.edu" ymailto="mailto:cfe-dev-bounces@cs.uiuc.edu">cfe-dev-bounces@cs.uiuc.edu</A>] on behalf of Wang Qi [<A href="mailto:wqking@outlook.com" ymailto="mailto:wqking@outlook.com">wqking@outlook.com</A>]<BR>Sent: Tuesday, July 02, 2013 3:07 AM<BR>To: <A href="mailto:cfe-dev@cs.uiuc.edu" ymailto="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</A><BR>Subject: [cfe-dev] Can I add include files into preprocessor?<BR><BR>Before parse the source file to Clang to parse, I would like to tell Clang preprocessor to include some header files.<BR>What I want to do is to include headers that can expand forward declaration to full
 declaration.<BR><BR>So can I add include files to preprocessor, similar as how we add defines?<BR><BR>Thanks<BR><BR>_______________________________________________<BR>cfe-dev mailing list<BR><A href="mailto:cfe-dev@cs.uiuc.edu" ymailto="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</A><BR><A href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target=_blank>http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</A><BR><BR><BR><BR>_______________________________________________<BR>cfe-dev mailing list<BR><A href="mailto:cfe-dev@cs.uiuc.edu" ymailto="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</A><BR><A href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target=_blank>http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</A><BR><BR><BR></DIV></DIV></DIV></div></body></html>