Hi,
I have a .cpp content originally like this:
/*
* TestCPlImplMsgCopy.cpp
*
* Created on: Mar 11, 2020
* Author: mcheng
*/
struct TestCPlImplMsgCopy {
};
and I want to refactor it eventually like this:
/*
* TestCPlImplMsgCopy.cpp
*
* Created on: Mar 11, 2020
* Author: mcheng
*/
#include "TC_UTGlobal.h"
#include "CPlImplMsgCopy.h"
using namespace FT_ADP_LIBRARY;
struct TestCPlImplMsgCopy {
};
I think my code can find insert point before "struct TestCPlImplMsgCopy" correctly. But the actual result like this:
#include "TC_UTGlobal.h"
#include "CPlImplMsgCopy.h"
using namespace FT_ADP_LIBRARY;
/*
* TestCPlImplMsgCopy.cpp
*
* Created on: Mar 11, 2020
* Author: mcheng
*/
struct TestCPlImplMsgCopy {
};
Why I say my code can find the point correctly is bcos if I manually change the original .cpp file to be:
/*
* TestCPlImplMsgCopy.cpp
*
* Created on: Mar 11, 2020
* Author: mcheng
*/
using namespace FT_ADP_LIBRARY;
struct TestCPlImplMsgCopy {
};
Now the same code can happily change for me like this:
/*
* TestCPlImplMsgCopy.cpp
*
* Created on: Mar 11, 2020
* Author: mcheng
*/
using namespace FT_ADP_LIBRARY;
#include "TC_UTGlobal.h"
#include "CPlImplMsgCopy.h"
struct TestCPlImplMsgCopy {
};
It seems to me that insertBefore() does not treat IASTComment like other normal IASTNode?
Thanks.