Skip to content
Snippets Groups Projects
  1. Jun 07, 2018
  2. May 29, 2018
  3. Mar 30, 2018
  4. Mar 23, 2018
  5. Mar 12, 2018
  6. Nov 02, 2017
  7. Oct 27, 2017
  8. Oct 25, 2017
  9. Aug 24, 2017
  10. Jul 06, 2017
  11. Jun 13, 2017
  12. May 10, 2017
  13. Apr 25, 2017
  14. Apr 13, 2017
  15. Mar 08, 2017
  16. Jan 12, 2017
  17. Jan 11, 2017
  18. Oct 24, 2016
    • Manuel Grizonnet's avatar
      ENH: add ITK_OVERRIDE when missing · 8de50fda
      Manuel Grizonnet authored
      Add ITK_OVERRIDE msotly in Monteverdi
      
      save override in OTB (need to manually fix this after tidy)
        cd src/Modules ; grep -nR "override" * > ~/temporary/override_otb.txt
        cd ~/software
        python run-clang-tidy.py -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
        #rename override with ITK macro ITK_OVERRIDE
        cd src/Modules
        find . -path ./ThirdParty -prune -o -type f -print -name "*.h" -o -name "*.txx" | xargs perl -pi -e 's/\ override/\ ITK_OVERRIDE/g'
      8de50fda
  19. Sep 16, 2016
  20. Sep 15, 2016
  21. Sep 09, 2016
  22. Aug 12, 2016
  23. Aug 08, 2016
  24. Jul 05, 2016
  25. 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
  26. Jun 13, 2016
    • Manuel Grizonnet's avatar
      ENH: Remove double underscore in header guards (.txx & __otb*_h form) · 82842d15
      Manuel Grizonnet authored
      Used the following command:
      
      find . \( -iname *.txx -and ! -path *ThirdParty* \) -exec perl -pi -w -e 's/__otb(.*)_txx/otb$1_txx/g;' {} \;
      find . \( -iname *.h -and ! -path *ThirdParty* \) -exec perl -pi -w -e 's/__otb(.*)_h/otb$1_h/g;' {} \;
      
      Fixes many, but not all, clang -Wreserved-id-macro warnings.
      82842d15
  27. 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
  28. 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
  29. Nov 10, 2015
  30. Sep 21, 2015
    • Manuel Grizonnet's avatar
      "BUG: fix missing ITCopyright.txt" · c9a072d0
      Manuel Grizonnet authored
      Following remarks from debian packagers, the ITCopyright.txt was mentioned in
      several files but not available in the Copyright directory.  After contacting
      the contributor Gregoire Mercier, he has suggested to harmonize the copyright for his
      contributions.  Files with GET or IT copyright referenced now the
      IMTCopyright.txt file (Institut Mines Telecom) which was added to the Copyright directory.
      
      Moreover, Gregoire Mercier confirmed that he is not the author of 7 files which
      are mentioning the GET or IT copyright:
      
      Modules/Filtering/Projection/include/otbROIdataConversion.h
      Modules/Filtering/Projection/include/otbROIdataConversion.txx
      Modules/Segmentation/Conversion/test/otbVectorDataRasterizeFilter.cxx
      Modules/Segmentation/Conversion/test/otbVectorDataToLabelImageFilterWithoutReader.cxx
      Modules/Segmentation/Conversion/test/otbPolygonizationRasterizationTest.cxx
      Modules/Segmentation/Conversion/test/otbVectorDataToLabelImageFilter.cxx
      Modules/Segmentation/Conversion/test/otbOGRDataSourceToLabelImageFilter.cxx
      
      Thus, the copyright was also modified for these 7 files (CNES Copyright).
      c9a072d0
  31. Aug 27, 2015
Loading