1. 10 Jun, 2016 1 commit
    • 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
  2. 05 Nov, 2015 1 commit
  3. 27 Aug, 2015 1 commit
  4. 20 Feb, 2015 2 commits
  5. 19 Feb, 2015 2 commits
  6. 18 Feb, 2015 1 commit
  7. 20 Jul, 2014 1 commit
  8. 18 Jul, 2014 2 commits
  9. 09 Jul, 2014 1 commit
  10. 24 Jan, 2014 1 commit
  11. 11 Feb, 2013 1 commit
  12. 08 Feb, 2013 1 commit
  13. 10 Jun, 2011 5 commits
  14. 09 Jun, 2011 5 commits
  15. 08 Jun, 2011 6 commits
  16. 01 Jun, 2011 2 commits
  17. 29 May, 2011 2 commits
  18. 01 Mar, 2011 1 commit
  19. 21 Nov, 2010 3 commits
  20. 30 Sep, 2010 1 commit