diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-02-02 13:01:49 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-02-02 13:01:49 +0300 |
commit | 81bd48dee406603164f35170bb2aa1e82c9fc338 (patch) | |
tree | 4cf85194e83ad29b91699f61210bcd3eec3fcffd | |
parent | 5c3746562bafd61603c67958fc82ff097a69e3a4 (diff) | |
download | manaverse-81bd48dee406603164f35170bb2aa1e82c9fc338.tar.gz manaverse-81bd48dee406603164f35170bb2aa1e82c9fc338.tar.bz2 manaverse-81bd48dee406603164f35170bb2aa1e82c9fc338.tar.xz manaverse-81bd48dee406603164f35170bb2aa1e82c9fc338.zip |
Add basic rules for cppcheck.
-rw-r--r-- | cppcheck/sdl.cfg | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/cppcheck/sdl.cfg b/cppcheck/sdl.cfg new file mode 100644 index 000000000..a8eaeabb8 --- /dev/null +++ b/cppcheck/sdl.cfg @@ -0,0 +1,45 @@ +<?xml version="1.0"?> +<def> + <function name="SDL_mutexP"> <noreturn>false</noreturn> <arg nr="1"><not-bool/><not-null/></arg> </function> + <function name="SDL_mutexV"> <noreturn>false</noreturn> <arg nr="1"><not-bool/><not-null/></arg> </function> + <function name="SDL_RWsize"> <noreturn>false</noreturn> <arg nr="1"><not-bool/><not-null/></arg> </function> + <function name="SDL_RWread"> <noreturn>false</noreturn> <arg nr="1"><not-bool/><not-null/></arg><arg nr="2"><not-bool/><not-null/></arg> </function> + <function name="IMG_isPNG"> <noreturn>false</noreturn> <arg nr="1"><not-bool/><not-null/></arg> </function> + <function name="IMG_isJPG"> <noreturn>false</noreturn> <arg nr="1"><not-bool/><not-null/></arg> </function> + + <resource> + <dealloc>SDL_FreeSurface</dealloc> + <alloc init="true">SDL_CreateRGBSurface</alloc> + <alloc init="true">SDL_ConvertSurface</alloc> + <alloc init="true">TTF_RenderUTF8_Blended</alloc> + <alloc init="true">IMG_LoadPNG_RW</alloc> + <alloc init="true">IMG_LoadJPG_RW</alloc> + <alloc init="true">IMG_Load</alloc> + </resource> + + <resource> + <dealloc>SDL_DestroyMutex</dealloc> + <alloc init="true">SDL_CreateMutex</alloc> + </resource> + + <resource> + <dealloc>SDL_WaitThread</dealloc> + <alloc init="true">SDL_CreateThread</alloc> + </resource> + + <resource> + <dealloc>SDL_RWclose</dealloc> + <alloc init="true">SDL_RWFromFile</alloc> + </resource> + + <resource> + <dealloc>SDL_FreeRW</dealloc> + <alloc init="true">SDL_AllocRW</alloc> + </resource> + + <resource> + <dealloc>Mix_FreeMusic</dealloc> + <alloc init="true">Mix_LoadMUSType_RW</alloc> + </resource> +</def> + |