Formatted test/cfg files and updated 'runastyle' script. The generated test files are exclued, since they are not style-compliant.

This commit is contained in:
orbitcowboy 2018-03-31 13:49:47 +02:00
parent d7072136dc
commit e3977f7e51
2 changed files with 8 additions and 8 deletions

View File

@ -29,7 +29,7 @@ $ASTYLE $style $options -r gui/test/*.h
$ASTYLE $style $options lib/*.cpp
$ASTYLE $style $options lib/*.h
$ASTYLE $style $options test/*.cpp
$ASTYLE $style $options test/cfg/*.c
$ASTYLE $style $options test/cfg/{std,qt,windows,wxwidgets,posix,gnu,gtk}.c* # Exclude generated test files
$ASTYLE $style $options test/*.h
$ASTYLE $style $options --recursive "tools/*.cpp"

View File

@ -84,19 +84,19 @@ void uninitvar(void)
void uninitvar_SetMenuBar(wxFrame * const framePtr, wxMenuBar * const menuBarPtr)
{
wxMenuBar *menuBar;
// cppcheck-suppress uninitvar
framePtr->SetMenuBar(menuBar);
wxMenuBar *menuBar;
// cppcheck-suppress uninitvar
framePtr->SetMenuBar(menuBar);
framePtr->SetMenuBar(menuBarPtr);
}
void uninitvar_wxMenuBarAppend(wxMenuBar * const menuBarPtr, wxMenu * const menuPtr, const wxString &title)
{
wxMenu *menu;
// cppcheck-suppress uninitvar
menuBarPtr->Append(menu, title);
wxMenu *menu;
// cppcheck-suppress uninitvar
menuBarPtr->Append(menu, title);
menuBarPtr->Append(menuPtr, title);
}
}
void deprecatedFunctions_wxDataViewCustomRenderer(wxDataViewCustomRenderer &dataViewCustomRenderer, wxPoint cursor, wxRect cell, wxDataViewModel *model, const wxDataViewItem &item, unsigned int col)
{