Skip to content
Snippets Groups Projects
  1. Apr 23, 2020
  2. May 16, 2019
  3. Feb 20, 2019
  4. Feb 14, 2019
  5. Feb 13, 2019
  6. Feb 08, 2019
  7. Jan 14, 2019
  8. Jan 09, 2019
  9. Dec 14, 2018
  10. Oct 16, 2018
  11. Aug 30, 2018
  12. Aug 02, 2018
  13. Jun 07, 2018
  14. Mar 08, 2017
  15. Sep 15, 2016
  16. Jun 16, 2016
    • Manuel Grizonnet's avatar
      STYLE: Use ITK_NULLPTR to utilize c++11 features · 0f26e689
      Manuel Grizonnet authored
          Where available, use c++11 features to identify
          potential nullptr usage errors.
      
          python run-clang-tidy.py -clang-tidy-binary ~/software/clang+llvm-3.8.0-x86_64-linux-gnu-ubuntu-14.04/bin/clang-tidy -checks=-*,modernize-use-nullptr -header-filter=/home/grizonnetm/projets/otb/src/OTB/Modules/.*/.*/include/.* -j8 -fix -p ~/projets/otb/bin/release/OTB-clang3.8/ ~/projets/otb/src/OTB/Modules/*/*/src/*.cxx ~/projets/otb/src/OTB/Modules/*/*/app/*.cxx ~/projets/otb/src/OTB/Examples/*/*.cxx ~/projets/otb/src/OTB/Modules/*/*/test/*.cxx > ~/temporary/run-clang-tidy-nullptr-log.txt
      
          find . -type f -print -name "*.h" -o -name "*.txx" -o -name "*.cxx" |xargs perl -pi -e 's/nullptr/ITK_NULLPTR/g'
      0f26e689
  17. Jun 13, 2016
  18. Jun 10, 2016
    • Manuel Grizonnet's avatar
      ENH: Explicitly recognize virtual functions · 3de2b346
      Manuel Grizonnet authored
          clang-tidy tool can insert missing override keyword as a macro so that missing [optional] virtual identifiers can be easily added.
      
          build otb with clang 3.8 and use cmake option CMAKE_EXPORT_COMPILE_COMMANDS=ON. Most modules and third parties have been activated.
      
          #Save override occurences in otb code
          cd src/Modules ; grep -nR "override" * > ~/temporary/override_otb.txt
      
          #Run clang modernize check using utility script which allow to process the code in parallel
          python run-clang-tidy.py -clang-tidy-binary ~/software/clang+llvm-3.8.0-x86_64-linux-gnu-ubuntu-14.04/bin/clang-tidy -checks=-*,modernize-use-override -header-filter=/home/grizonnetm/projets/otb/src/OTB/Modules/.*/.*/include/.* -j8 -fix -p ~/projets/otb/bin/release/OTB-clang3.8/ ~/projets/otb/src/OTB/Modules/*/*/src/*.cxx ~/projets/otb/src/OTB/Examples/*/*.cxx ~/projets/otb/src/OTB/Modules/*/*/test/*.cxx > ~/temporary/run-clang-tidy-log.txt
      
          #Replace override by ITK macro (to maintain compat with c++98)
          find . -type f -print -name "*.h" -o -name "*.txx" |xargs perl -pi -e 's/\ override/\ ITK_OVERRIDE/g'
      3de2b346
  19. Jan 04, 2016
    • Rashad Kanavath's avatar
      ENH: apply spelling.patch from DebianGIS · 8cafd175
      Rashad Kanavath authored
      This is a big one without much harm. It fixes incorrect spelling
      and grammer when packaging OTB 5.0.0 and 5.2.0 for Debian.
      Most of these changes are done by developers at DebianGIS.
      For more info, I include the original patch header below.
      Description: Fix some spelling errors to silence lintian
      enabling  to concentrate on the real problem.
      Author: Andreas Tille <tille@debian.org>
      Author: Rashad Kanavath <rashad.kanavath@c-s.fr>
      Author: Bas Couwenberg <sebastic@xs4all.nl>
      Last-Update: 2015-12-22
      8cafd175
  20. Nov 02, 2015
  21. May 04, 2015
  22. Mar 20, 2015
  23. Feb 26, 2015
  24. Feb 22, 2015
  25. Feb 21, 2015
  26. Feb 19, 2015
  27. Feb 18, 2015
  28. Dec 09, 2014
  29. Oct 28, 2014
  30. Aug 02, 2014
  31. Jul 28, 2014
  32. Jul 16, 2014
  33. Nov 15, 2013
    • OTB Bot's avatar
      STYLE · 6f95da76
      OTB Bot authored
      6f95da76
    • Julien Malik's avatar
      e82a5ec5
    • Julien Malik's avatar
      STYLE: Remove CMake-language block-end arguments · e84f23c4
      Julien Malik authored
      Ancient versions of CMake required else(), endif(), and similar block
      termination commands to have arguments matching the command starting the
      block.  This is no longer the preferred style.
      
      NOTE: MUST USE GNU compliant version of sed
      Run the following shell code (Adopted from Brad King scripts for CMake):
      
      for c in else endif endforeach endfunction endmacro endwhile; do
          echo 's/\b'"$c"'\(\s*\)(.\+)/'"$c"'\1()/'
      done >convert.sed \
      && git ls-files -z -- bootstrap '*.cmake' '*.cmake.in' '*CMakeLists.txt' \
         | xargs sed -i -f convert.sed \
      && rm convert.sed
      
      
      This has been adapted from ITK commit e52dbe7fa476f6283c9b9d1507fca052355113a4
      e84f23c4
Loading