summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-02-02 13:01:49 +0300
committerAndrei Karas <akaras@inbox.ru>2014-02-02 13:01:49 +0300
commit81bd48dee406603164f35170bb2aa1e82c9fc338 (patch)
tree4cf85194e83ad29b91699f61210bcd3eec3fcffd
parent5c3746562bafd61603c67958fc82ff097a69e3a4 (diff)
downloadplus-81bd48dee406603164f35170bb2aa1e82c9fc338.tar.gz
plus-81bd48dee406603164f35170bb2aa1e82c9fc338.tar.bz2
plus-81bd48dee406603164f35170bb2aa1e82c9fc338.tar.xz
plus-81bd48dee406603164f35170bb2aa1e82c9fc338.zip
Add basic rules for cppcheck.
-rw-r--r--cppcheck/sdl.cfg45
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>
+