typedef enum {DISABLE = 0, ENABLE = !DISABLE} FunctionalState;
a = DISABLE; // is work
a = ena*** // is not work,but,svn6023 is work....
see attachment!!!
[attachment deleted by admin]
Ok, this bug can be fixed soon. For example:
In the DoParse() function
else if (token==ParserConsts::kw_typedef)
{
if (m_Options.handleTypedefs)
HandleTypedef();
else
SkipToOneOfChars(ParserConsts::semicolonclbrace, true);
m_Str.Clear();
}
Then in your code
typedef enum {DISABLE = 0, DISABLE2 = 0, ENABLE = !DISABLE} FunctionalState;
a = DISABLE; // is work
a = ena;
When the Tokenizer meet the first "=" in your statement, it just SKIP to the "}".
That's the reason.
So, I think we can add this before we handling typedef.
m_Tokenizer.SetState(tsSkipNone);
I will do more testing.
Oh, my God, I found a bug in the Tokenizer::SkipUnWanted.
// skip the following = or ?
if(m_State&tsSkipEqual)
{
if(c == _T('='))
{
if (!SkipToOneOfChars(_T(";}"), true))
return false;
}
}
should be:
// skip the following = or ?
if(m_State&tsSkipEqual)
{
if(c == _T('='))
{
if (!SkipToOneOfChars(_T(",;}"), true))
return false;
}
}
Sorry! That's my fault.
Edit:
So, the problem Re: The 12 January 2010 build (6080) is out. (http://forums.codeblocks.org/index.php/topic,11844.msg80478.html#msg80478) can be solved.
I have IBPP (http://www.ibpp.org/ (http://www.ibpp.org/)) and CB. And I want CB to autocomplete names of members of IBPP classes. I have create external tag database for IBPP includes, attached this tags and re-tagged the current cpp-file but autocomplete not works well.
IBPP::/*CodeCompletion work*/Transaction tr = IBPP::/*CodeCompletion*/TransactionFactory();
IBPP::/*CodeCompletion*/Database db = IBPP::/*CodeCompletion*/DatabaseFactory();
IBPP::/*CodeCompletion*/Statement st = IBPP::/*CodeCompletion*/StatementFactory(db, tr);
tr->/*CodeCompletion NOT work*/
I have IBPP (http://www.ibpp.org/ (http://www.ibpp.org/)) and CB. And I want CB to autocomplete names of members of IBPP classes. I have create external tag database for IBPP includes, attached this tags and re-tagged the current cpp-file but autocomplete not works well.
Hi, sorry I can't fully catch your idea.
Did you use an external tag file?? How do you use them?
What does these code means???
IBPP::/*CodeCompletion work*/Transaction tr = IBPP::/*CodeCompletion*/TransactionFactory();
IBPP::/*CodeCompletion*/Database db = IBPP::/*CodeCompletion*/DatabaseFactory();
IBPP::/*CodeCompletion*/Statement st = IBPP::/*CodeCompletion*/StatementFactory(db, tr);
tr->/*CodeCompletion NOT work*/
??
Thanks for CC improvements. Go on in the same way, it's hard, but very useful work :P.
I have some problems :(.
I want automatical insertion of default code in new H and CPP files like in Anjuta IDE and others.
But `Default code` option in editor's preferences page doesn't support such expression:
//-----------------------------------------------------------
// File: $ACTIVE_EDITOR_STEM).$ACTIVE_EDITOR_EXT)
// Date: $WEEKDAY), $TODAY)
//
// Author: Lastname A.A.
// Email: my@email.org
//-----------------------------------------------------------
to evaluate it to (for example):
//-----------------------------------------------------------
// File: header_file.h
// Date: friday, 2010-01-15
//
// Author: Lastname A.A.
// Email: my@email.org
//----------------------------------------------------------
By the way, some of these items can be stored in project or IDE (the last is better, because only one developer use this copy of IDE):
Now I use the following abbreviation, but it doesn't work properly - problem with cursor positioning after insertion:
//-----------------------------------------------------------
// File: $ACTIVE_EDITOR_STEM).$ACTIVE_EDITOR_EXT)
// Date: $WEEKDAY), $TODAY)
//
// Author: Lastname A.A.
// Email: my@email.org
//-----------------------------------------------------------
|
Cursor appears in 5 symbols earlier, that is on the delimiter line.
But this variant is not handy - every time I create new file I need insert manually header. I think IDE can do this better.
Later. With regards, Mihail.