zephyr/scripts
Himanshu Jha dce9141fb1 Coccinelle: Add support for Coccinelle infrastructure
'coccicheck' target is used to initiate Coccinelle checker. It
can be called via four different modes that generate different
output corresponding the mode.

The four modes are:

* 'patch' proposes a fix, when possible.
* 'report' generates a list in the following format:
	file:line:column-column: message
* 'context' highlights lines of interest and their context in
   a diff-like style. Lines of interest are indicated with '-'.
* 'org' generates a report in the Org mode format of Emacs.

The 'coccicheck' front-end can be called with suitable arguments:

* --mode=<mode>: specify the mode for processsing.
* --cocci=<path/to/foo.cocci>: specify the SmPL file to use.
* --verbose=<1>: enable verbose output.

Run `./scripts/coccicheck --help` for more detailed info
on various options available.

With the above arguments the coccinelle transformation engine
runs on the entire/part of the source code tree depending on
various options supplied to the coccicheck sanity checker.

More detailed documentation can be found at:
doc/application/coccinelle.rst

Cc: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Himanshu Jha <himanshujha199640@gmail.com>
2018-10-02 14:03:39 -07:00
..
checkpatch scripts: cleanup scripts directory 2018-04-03 09:28:09 -04:00
ci scripts: ci: Set SOC_DIR for check-compliance.py 2018-09-14 17:45:56 +02:00
cmake
coccinelle coccicnelle: Ignore return of memset 2018-09-14 16:55:37 -04:00
cross_compiler
dts scripts/dts/extract/flash.py: fix load offset 2018-10-02 10:00:04 -07:00
footprint size_report: Don't assume all paths start with ZEPHYR_BASE 2018-01-29 23:59:16 +05:30
gitlint gitlint: accept "'" in committer names 2018-09-21 12:49:23 -04:00
kconfig Kconfig: Improve error messages for mismatched endchoice/endif/endmenu 2018-09-29 22:01:00 +02:00
meta/west scripts: update west to latest upstream version. 2018-09-25 17:51:22 +02:00
sanity_chk sanitycheck: update release data 2018-09-09 21:07:19 -04:00
support scripts: make runner a west subpackage 2018-05-19 07:01:39 +03:00
.gitignore
check_host_is_ok.py cmake: Give descriptive error to user when cloned with core.autocrlf 2018-01-10 22:12:27 -05:00
check_link_map.py scripts: python: cleanup script and fix PEP8 issues 2018-01-03 19:03:41 -05:00
checkpatch.pl checkpatch: downgrade COMPLEX_MACRO to a warning 2018-05-08 08:56:12 -07:00
checkstack.pl
coccicheck Coccinelle: Add support for Coccinelle infrastructure 2018-10-02 14:03:39 -07:00
dir_is_writeable.py cmake: Add function for checking if a directory is write-able 2018-04-27 12:06:02 +02:00
elf_helper.py scripts: elf_helper.py: run through flake8 2018-09-17 09:40:02 -04:00
file2hex.py scripts: python: cleanup script and fix PEP8 issues 2018-01-03 19:03:41 -05:00
filter-known-issues.py scripts: filter-known-issues: Add extra newline 2018-07-12 23:11:46 -04:00
gen_alignment_script.py arm: Add app data section alignment constraints 2018-02-06 15:31:16 -08:00
gen_app_partitions.py subsys: app_memory: Fixed the build issue wrt ARC. 2018-09-28 08:09:23 +05:30
gen_gdt.py cmake: Fix "make VERBOSE=1" 2018-01-10 22:14:53 -05:00
gen_idt.py gen_isr_tables: Delete the dead code accompanying .intList.num_isrs 2018-06-25 12:54:49 -07:00
gen_kobject_list.py kernel: Make If statement have essentially Boolean type 2018-09-18 13:57:15 -04:00
gen_mmu_x86.py cmake: Fix "make VERBOSE=1" 2018-01-10 22:14:53 -05:00
gen_offset_header.py scripts: python: cleanup script and fix PEP8 issues 2018-01-03 19:03:41 -05:00
gen_priv_stacks.py scripts: gen_priv_stacks.py: run through flake8 2018-09-17 09:40:02 -04:00
gen_syscall_header.py kernel: syscalls: Change handlers namespace 2018-09-28 07:58:19 +05:30
gen_syscalls.py kernel: syscalls: Change handlers namespace 2018-09-28 07:58:19 +05:30
parse_syscalls.py userspace: adjust syscall generation scripts 2018-07-24 14:39:38 -04:00
process_gperf.py arm: Generate privileged stacks 2018-02-06 15:31:16 -08:00
qemu-machine-hack.py scripts: python: cleanup script and fix PEP8 issues 2018-01-03 19:03:41 -05:00
requirements.txt scripts: add colorama to requirements.txt 2018-09-27 05:52:39 +05:30
sanitycheck sanitycheck: remove special ansi charachters from xml 2018-09-23 13:04:05 -04:00
spelling.txt
subfolder_list.py cmake: Using symlinks on unix like os'es for dependencies 2018-06-19 17:00:27 +02:00
tags.sh scripts: fix tags.sh to current source tree 2018-01-15 18:30:28 -05:00
waitpid
west scripts: fix west launcher for macOS 2018-09-26 00:33:45 +02:00