aboutsummaryrefslogtreecommitdiff
path: root/docs/source
diff options
context:
space:
mode:
authorMike Taves <mwtoews@gmail.com>2019-09-25 21:34:45 +1200
committerGitHub <noreply@github.com>2019-09-25 21:34:45 +1200
commitb21f2b98b44a89f9d548b868ad6fa8f7d1dff717 (patch)
tree8251c9f5295c3d600e14316ea0e6aaadb1b2f827 /docs/source
parentda2163996edcf9383d32261e48f11bafc273b9d7 (diff)
parent4013aeaaf7796cfff6b97668870ce4a2af3d509a (diff)
downloadPROJ-b21f2b98b44a89f9d548b868ad6fa8f7d1dff717.tar.gz
PROJ-b21f2b98b44a89f9d548b868ad6fa8f7d1dff717.zip
Merge pull request #1634 from mwtoews/ci
Upgrade Travis CI distribution
Diffstat (limited to 'docs/source')
-rw-r--r--docs/source/community/code_contributions.rst18
1 files changed, 7 insertions, 11 deletions
diff --git a/docs/source/community/code_contributions.rst b/docs/source/community/code_contributions.rst
index c3e835c8..7e354a70 100644
--- a/docs/source/community/code_contributions.rst
+++ b/docs/source/community/code_contributions.rst
@@ -88,12 +88,7 @@ cppcheck static analyzer
~~~~~~~~~~~~~~~~~~~~~~~~
You can run locally ``scripts/cppcheck.sh`` that is a wrapper script around the
-cppcheck utility. It is known to work with cppcheck 1.61 of Ubuntu Trusty 14.0,
-since this is what is currently used on Travis-CI
-(``travis/linux_gcc/before_install.sh``).
-At the time of writing, this also works with cppcheck 1.72 of Ubuntu Xenial
-16.04, and latest cppcheck
-master.
+cppcheck utility. This tool is used as part of the quality control of the code.
cppcheck can have false positives. In general, it is preferable to rework the
code a bit to make it more 'obvious' and avoid those false positives. When not
@@ -115,20 +110,21 @@ Preliminary step: install clang. For example:
::
- wget http://releases.llvm.org/6.0.0/clang+llvm-6.0.0-x86_64-linux-gnu-ubuntu-14.04.tar.xz
- tar xJf clang+llvm-6.0.0-x86_64-linux-gnu-ubuntu-14.04.tar.xz
+ wget http://releases.llvm.org/6.0.0/clang+llvm-6.0.0-x86_64-linux-gnu-ubuntu-16.04.tar.xz
+ tar xJf clang+llvm-6.0.0-x86_64-linux-gnu-ubuntu-16.04.tar.xz
+ mv clang+llvm-6.0.0-x86_64-linux-gnu-ubuntu-16.04 clang+llvm-6
Run configure under the scan-build utility of clang:
::
- ./clang+llvm-6.0.0-x86_64-linux-gnu-ubuntu-14.04/bin/scan-build ./configure
+ ./clang+llvm-6/bin/scan-build ./configure
Build under scan-build:
::
- ./clang+llvm-6.0.0-x86_64-linux-gnu-ubuntu-14.04/bin/scan-build make [-j8]
+ ./clang+llvm-6/bin/scan-build make [-j8]
If CSA finds errors, they will be emitted during the build. And in which case,
at the end of the build process, scan-build will emit a warning message
@@ -137,7 +133,7 @@ is with someling like
::
- ./clang+llvm-6.0.0-x86_64-linux-gnu-ubuntu-14.04/bin/scan-view /tmp/scan-build-2018-03-15-121416-17476-1
+ ./clang+llvm-6/bin/scan-view /tmp/scan-build-2018-03-15-121416-17476-1
This will open a web browser with the interactive report.