wxwidgets.cfg: Added support for wxMenu:Append().
This commit is contained in:
parent
6e737082da
commit
f1e5f64690
|
@ -882,6 +882,22 @@
|
|||
<noreturn>false</noreturn>
|
||||
<leak-ignore/>
|
||||
</function>
|
||||
<!-- http://docs.wxwidgets.org/3.1/classwx_menu.html-->
|
||||
<!-- wxMenuItem * Append (int id, const wxString &item=wxEmptyString, const wxString &helpString=wxEmptyString, wxItemKind kind=wxITEM_NORMAL) -->
|
||||
<function name="wxMenu::Append">
|
||||
<noreturn>false</noreturn>
|
||||
<leak-ignore/>
|
||||
<returnValue type="wxMenuItem *"/>
|
||||
<use-retval/>
|
||||
<arg nr="1">
|
||||
<not-uninit/>
|
||||
</arg>
|
||||
<arg nr="2" default="wxEmptyString"/>
|
||||
<arg nr="3" default="wxEmptyString"/>
|
||||
<arg nr="4" default="wxITEM_NORMAL">
|
||||
<not-uninit/>
|
||||
</arg>
|
||||
</function>
|
||||
<!-- Override macros which don't necessarily require semicolons at the end -->
|
||||
<define name="DECLARE_CLASS(n)" value=""/>
|
||||
<define name="DECLARE_DYNAMIC_CLASS(n)" value=""/>
|
||||
|
|
|
@ -292,9 +292,9 @@ void SymbolDatabase::createSymbolDatabaseFindAllScopes()
|
|||
|
||||
typeList.push_back(Type(tok, new_scope, scope));
|
||||
{
|
||||
Type* new_type = &typeList.back();
|
||||
new_scope->definedType = new_type;
|
||||
scope->definedTypesMap[new_type->name()] = new_type;
|
||||
Type* new_type = &typeList.back();
|
||||
new_scope->definedType = new_type;
|
||||
scope->definedTypesMap[new_type->name()] = new_type;
|
||||
}
|
||||
|
||||
scope->addVariable(varNameTok, tok, tok, access[scope], new_scope->definedType, scope, &_settings->library);
|
||||
|
@ -333,9 +333,9 @@ void SymbolDatabase::createSymbolDatabaseFindAllScopes()
|
|||
|
||||
typeList.push_back(Type(tok, new_scope, scope));
|
||||
{
|
||||
Type* new_type = &typeList.back();
|
||||
new_scope->definedType = new_type;
|
||||
scope->definedTypesMap[new_type->name()] = new_type;
|
||||
Type* new_type = &typeList.back();
|
||||
new_scope->definedType = new_type;
|
||||
scope->definedTypesMap[new_type->name()] = new_type;
|
||||
}
|
||||
|
||||
// make sure we have valid code
|
||||
|
@ -4350,13 +4350,10 @@ const Type* Scope::findType(const std::string & name) const
|
|||
{
|
||||
auto it = definedTypesMap.find(name);
|
||||
|
||||
if (definedTypesMap.end() == it)
|
||||
{
|
||||
return nullptr;
|
||||
}
|
||||
else
|
||||
{
|
||||
return (*it).second;
|
||||
if (definedTypesMap.end() == it) {
|
||||
return nullptr;
|
||||
} else {
|
||||
return (*it).second;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -240,12 +240,12 @@ public:
|
|||
_tokType = t;
|
||||
|
||||
bool memoizedIsName = (_tokType == eName || _tokType == eType || _tokType == eVariable ||
|
||||
_tokType == eFunction || _tokType == eKeyword || _tokType == eBoolean ||
|
||||
_tokType == eEnumerator); // TODO: "true"/"false" aren't really a name...
|
||||
_tokType == eFunction || _tokType == eKeyword || _tokType == eBoolean ||
|
||||
_tokType == eEnumerator); // TODO: "true"/"false" aren't really a name...
|
||||
setFlag(fIsName, memoizedIsName);
|
||||
|
||||
bool memoizedIsLiteral = (_tokType == eNumber || _tokType == eString || _tokType == eChar ||
|
||||
_tokType == eBoolean || _tokType == eLiteral || _tokType == eEnumerator);
|
||||
_tokType == eBoolean || _tokType == eLiteral || _tokType == eEnumerator);
|
||||
setFlag(fIsLiteral, memoizedIsLiteral);
|
||||
}
|
||||
void isKeyword(bool kwd) {
|
||||
|
|
Loading…
Reference in New Issue