Fwd: parse cpp files imported by #include "*.cpp"

black 1537534854 at qq.com
Thu Nov 21 23:51:54 UTC 2013




-------- 原始消息 --------
主题: 	parse cpp files imported by #include "*.cpp"
日期: 	Thu, 21 Nov 2013 11:24:44 +0800
发件人: 	black <1537534854 at qq.com>
收件人: 	kdevelop-devel at kde.org



Hello every one,
     I am have one question that can we make the cpp parser of kdevelop
parse "*.cpp" files imported directly by "#include "*.cpp" . Here is an 
example:

##############cppfile1.cpp#################
//begin cppfile1.cpp

int   var_global;

var_global=9999;

//end cppfile1.cpp

##############main.cpp ###################

//begin main.cpp

#include <iostream>
int main(int argc ,char **argv)
{
//do something else;

#include "cppfile1.cpp"
std::cout<<"The varlue of var_global is "<<var_global<<std::endl;

//do something else;
}

//end main.cpp

The kdevelop will give us some errors on when parsing. I am new here , 
and I want to fix it .
If you have any idea, please give me some hints.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20131122/c55a5903/attachment.html>


More information about the KDevelop-devel mailing list