<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<br>
<div class="moz-forward-container"><br>
<br>
-------- 原始消息 --------
<table class="moz-email-headers-table" border="0" cellpadding="0"
cellspacing="0">
<tbody>
<tr>
<th nowrap="nowrap" valign="BASELINE" align="RIGHT">主题: </th>
<td>parse cpp files imported by #include "*.cpp"</td>
</tr>
<tr>
<th nowrap="nowrap" valign="BASELINE" align="RIGHT">日期: </th>
<td>Thu, 21 Nov 2013 11:24:44 +0800</td>
</tr>
<tr>
<th nowrap="nowrap" valign="BASELINE" align="RIGHT">发件人: </th>
<td>black <a class="moz-txt-link-rfc2396E" href="mailto:1537534854@qq.com"><1537534854@qq.com></a></td>
</tr>
<tr>
<th nowrap="nowrap" valign="BASELINE" align="RIGHT">收件人: </th>
<td><a class="moz-txt-link-abbreviated" href="mailto:kdevelop-devel@kde.org">kdevelop-devel@kde.org</a></td>
</tr>
</tbody>
</table>
<br>
<br>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
Hello every one,<br>
I am have one question that can we make the cpp parser of
kdevelop<br>
parse "*.cpp" files imported directly by "#include "*.cpp" . Here
is an example:<br>
<br>
##############cppfile1.cpp#################<br>
//begin cppfile1.cpp <br>
<br>
int var_global;<br>
<br>
var_global=9999;<br>
<br>
//end cppfile1.cpp <br>
<br>
##############main.cpp ###################<br>
<br>
//begin main.cpp<br>
<br>
#include <iostream><br>
int main(int argc ,char **argv)<br>
{<br>
//do something else; <br>
<br>
#include "cppfile1.cpp"<br>
std::cout<<"The varlue of var_global is
"<<var_global<<std::endl;<br>
<br>
//do something else;<br>
}<br>
<br>
//end main.cpp<br>
<br>
The kdevelop will give us some errors on when parsing. I am new
here , and I want to fix it .<br>
If you have any idea, please give me some hints.<br>
<br>
</div>
<br>
</body>
</html>