Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: UAVCAN UAVCAN_Subscriber
libuavcan_drivers/linux/cppcheck.sh@0:dfe6edabb8ec, 2018-04-14 (annotated)
- Committer:
- RuslanUrya
- Date:
- Sat Apr 14 10:25:32 2018 +0000
- Revision:
- 0:dfe6edabb8ec
Initial commit
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
RuslanUrya | 0:dfe6edabb8ec | 1 | #!/bin/sh |
RuslanUrya | 0:dfe6edabb8ec | 2 | |
RuslanUrya | 0:dfe6edabb8ec | 3 | num_cores=$(grep -c ^processor /proc/cpuinfo) |
RuslanUrya | 0:dfe6edabb8ec | 4 | if [ -z "$num_cores" ]; then |
RuslanUrya | 0:dfe6edabb8ec | 5 | echo "num_cores=? WTF?" |
RuslanUrya | 0:dfe6edabb8ec | 6 | num_cores=4 |
RuslanUrya | 0:dfe6edabb8ec | 7 | fi |
RuslanUrya | 0:dfe6edabb8ec | 8 | |
RuslanUrya | 0:dfe6edabb8ec | 9 | cppcheck . --error-exitcode=1 --quiet --enable=all --platform=unix64 --std=c99 --std=c++11 \ |
RuslanUrya | 0:dfe6edabb8ec | 10 | --inline-suppr --force --template=gcc -j$num_cores \ |
RuslanUrya | 0:dfe6edabb8ec | 11 | -Iinclude $@ |