Developer forums (C::B DEVELOPMENT STRICTLY!) > CodeCompletion redesign
CC's new bug, SVN6049, XPSP3
ollydbg:
--- Quote from: Loaden on January 06, 2010, 04:08:00 am ---
--- Quote from: blueshake on January 06, 2010, 03:58:14 am ---if I remember right.the configuration file is in somewhere of c:(search it if you using windows.)
--- End quote ---
Yes. I am using SVN5731 configuration. I just tried it, when the default.conf does not exist, the default is generated, there will be six replacement rule, not the old versions of one replacement rule.
--- End quote ---
Yes, this is quite simple, you can see these code in
--- Code: ---void CodeCompletion::LoadTokenReplacements()
{
ConfigManager* cfg = Manager::Get()->GetConfigManager(_T("code_completion"));
ConfigManagerContainer::StringToStringMap& repl = Tokenizer::GetTokenReplacementsMap();
repl.clear();
if (!cfg->Exists(_T("token_replacements")))
{
// first run; add default replacements string
Tokenizer::SetReplacementString(_T("_GLIBCXX_STD"), _T("std"));
Tokenizer::SetReplacementString(_T("_GLIBCXX_BEGIN_NESTED_NAMESPACE"), _T("+namespace"));
Tokenizer::SetReplacementString(_T("_GLIBCXX_END_NESTED_NAMESPACE"), _T("}"));
Tokenizer::SetReplacementString(_T("_GLIBCXX_BEGIN_NAMESPACE"), _T("+namespace"));
Tokenizer::SetReplacementString(_T("_GLIBCXX_END_NAMESPACE_TR1"), _T("}"));
Tokenizer::SetReplacementString(_T("_GLIBCXX_BEGIN_NAMESPACE_TR1"), _T("-namespace tr1 {"));
}
else
cfg->Read(_T("token_replacements"), &repl);
}
--- End code ---
If the configure file does not exist(the first time you run CB), six replacement rules will be added. But if it exists, it only read from that file.
Loaden:
Very strange, how not to work.
It has just one was successful.
[attachment deleted by admin]
Loaden:
--- Quote from: Loaden on January 06, 2010, 04:15:19 am ---Very strange, how not to work.
It has just one was successful.
--- End quote ---
But if i remove:
--- Code: ---using namespace std;
--- End code ---
it's work fine.
I think, i need re-config CB.
[attachment deleted by admin]
Loaden:
--- Quote from: Loaden on January 06, 2010, 04:21:04 am ---
--- Quote from: Loaden on January 06, 2010, 04:15:19 am ---Very strange, how not to work.
It has just one was successful.
--- End quote ---
But if i remove:
--- Code: ---using namespace std;
--- End code ---
it's work fine.
I think, i need re-config CB.
--- End quote ---
Now, i re-config CB, and vector parser well.
But, string and wstring is not parser.
--- Code: ---#include <iostream>
#include <string>
using namespace std;
int main()
{
string s;
s. // HERE, show nothing...
cout << "Hello world!" << endl;
return 0;
}
--- End code ---
Navigation
[0] Message Index
[*] Previous page
Go to full version