mirror of
https://github.com/google/pebble.git
synced 2025-09-03 22:25:45 -04:00
Import of the watch repository from Pebble
This commit is contained in:
commit
3b92768480
10334 changed files with 2564465 additions and 0 deletions
16
third_party/nanopb/tests/splint/SConscript
vendored
Normal file
16
third_party/nanopb/tests/splint/SConscript
vendored
Normal file
|
@ -0,0 +1,16 @@
|
|||
# Check the nanopb core using splint
|
||||
|
||||
Import('env')
|
||||
|
||||
p = env.WhereIs('splint')
|
||||
|
||||
if p:
|
||||
env.Command('pb_decode.splint', '$NANOPB/pb_decode.c',
|
||||
'splint -f splint/splint.rc $SOURCE 2> $TARGET')
|
||||
|
||||
env.Command('pb_encode.splint', '$NANOPB/pb_encode.c',
|
||||
'splint -f splint/splint.rc $SOURCE 2> $TARGET')
|
||||
|
||||
env.Command('pb_common.splint', '$NANOPB/pb_common.c',
|
||||
'splint -f splint/splint.rc $SOURCE 2> $TARGET')
|
||||
|
40
third_party/nanopb/tests/splint/splint.rc
vendored
Normal file
40
third_party/nanopb/tests/splint/splint.rc
vendored
Normal file
|
@ -0,0 +1,40 @@
|
|||
+checks
|
||||
+partial
|
||||
+matchanyintegral
|
||||
+strictlib
|
||||
-nullassign
|
||||
-predboolint
|
||||
-predboolptr
|
||||
+ptrnegate
|
||||
-switchloopbreak
|
||||
+ignoresigns
|
||||
-infloopsuncon
|
||||
-type
|
||||
|
||||
# splint's memory checks don't quite work without annotations
|
||||
-mustfreeonly
|
||||
-compmempass
|
||||
-nullret
|
||||
-observertrans
|
||||
-statictrans
|
||||
-compdestroy
|
||||
-nullpass
|
||||
-nullstate
|
||||
-compdef
|
||||
-usereleased
|
||||
-temptrans
|
||||
-dependenttrans
|
||||
-kepttrans
|
||||
-branchstate
|
||||
-immediatetrans
|
||||
-mustfreefresh
|
||||
-allimponly
|
||||
|
||||
# These tests give false positives, compiler typically has
|
||||
# better warnings for these.
|
||||
-noret
|
||||
-noeffect
|
||||
-usedef
|
||||
|
||||
# Splint doesn't support C11
|
||||
-DPB_C99_STATIC_ASSERT
|
Loading…
Add table
Add a link
Reference in a new issue