我目前在做一个树,树节点是该cpp文件,当我鼠标点击这个cpp节点时,要把cpp中的函数解析出来并添加在子节点上。。
以上功能都实现,目前遇到这样一个问题,当两个函数重载时,而DTE解析出的只是函数名,不带参数。所以用户不能区分,
现在是要把函数的参数一起显示在树的节点上。。举个例子,比如.cpp:/*
 * HGT_TC.c
 *
 *  Created on: 2011-11-1
 *      Author: h00141853
 */
#include <iostream>#include "D:\TestCaseFrame\SichuanUniversity\gtest-1.6.0\include\gtest\gtest.h"
#include "D:\TestCaseFrame\SichuanUniversity\gtest-1.6.0\include\gtest\llt_test.h"using namespace std;class Nice_T: public testing::Test
{
public:
static void SetUpTestCase()
{
cout << "[[SetUpTestCase" << endl;
}
static void TearDownTestCase()
{
cout << "TearDownTestCase]]" << endl;
}
virtual void SetUp()
{
cout << "--SetUp Test" << endl;
}
virtual void TearDown()
{
cout << "TearDown Test--" << endl;
}};
TEST(Nice_T, HTC_AA)
{
cout << "This is a test, HTC_AA" << endl;
}TEST(Nice_T, HTC_AA1)
{
cout << "This is a test, HTC_AA1" << endl;
}
只需要把TEST(Nice_T, HTC_AA1)
TEST(Nice_T, HTC_AA)
整体显示在节点上均可,但DTE解析这个文件时只解析出了两个TEST,我找不到DTE把两个函数的参数存放在上面位置???
请高手指点下啊。