-
- Downloads
ENH: Explicitly recognize virtual functions
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'
Showing
- Examples/Application/ApplicationExample.cxx 3 additions, 3 deletionsExamples/Application/ApplicationExample.cxx
- Examples/ChangeDetection/ChangeDetectionFrameworkExample.cxx 1 addition, 1 deletionExamples/ChangeDetection/ChangeDetectionFrameworkExample.cxx
- Examples/Filtering/CompositeFilterExample.cxx 2 additions, 2 deletionsExamples/Filtering/CompositeFilterExample.cxx
- Examples/Filtering/GeometriesChangeSpatialReference.cxx 2 additions, 2 deletionsExamples/Filtering/GeometriesChangeSpatialReference.cxx
- Examples/Registration/ImageRegistration1.cxx 2 additions, 2 deletionsExamples/Registration/ImageRegistration1.cxx
- Examples/Registration/ImageRegistration2.cxx 2 additions, 2 deletionsExamples/Registration/ImageRegistration2.cxx
- Examples/Registration/ImageRegistration5.cxx 2 additions, 2 deletionsExamples/Registration/ImageRegistration5.cxx
- Examples/Registration/ImageRegistration9.cxx 2 additions, 2 deletionsExamples/Registration/ImageRegistration9.cxx
- Examples/Simulation/LAIAndPROSAILToSensorResponse.cxx 4 additions, 4 deletionsExamples/Simulation/LAIAndPROSAILToSensorResponse.cxx
- Modules/Adapters/CurlAdapters/include/otbCurlHelper.h 6 additions, 6 deletionsModules/Adapters/CurlAdapters/include/otbCurlHelper.h
- Modules/Adapters/CurlAdapters/include/otbCurlHelperInterface.h 1 addition, 1 deletion...es/Adapters/CurlAdapters/include/otbCurlHelperInterface.h
- Modules/Adapters/CurlAdapters/include/otbCurlHelperStub.h 6 additions, 6 deletionsModules/Adapters/CurlAdapters/include/otbCurlHelperStub.h
- Modules/Adapters/CurlAdapters/src/otbCurlHelper.cxx 3 additions, 3 deletionsModules/Adapters/CurlAdapters/src/otbCurlHelper.cxx
- Modules/Adapters/GdalAdapters/include/otbGeometriesSet.h 2 additions, 2 deletionsModules/Adapters/GdalAdapters/include/otbGeometriesSet.h
- Modules/Adapters/GdalAdapters/include/otbGeometriesSource.h 2 additions, 2 deletionsModules/Adapters/GdalAdapters/include/otbGeometriesSource.h
- Modules/Adapters/GdalAdapters/include/otbGeometriesToGeometriesFilter.h 5 additions, 5 deletions...rs/GdalAdapters/include/otbGeometriesToGeometriesFilter.h
- Modules/Adapters/GdalAdapters/include/otbOGRDataSourceWrapper.h 3 additions, 3 deletions...s/Adapters/GdalAdapters/include/otbOGRDataSourceWrapper.h
- Modules/Adapters/GdalAdapters/include/otbOGRFieldWrapper.txx 2 additions, 2 deletionsModules/Adapters/GdalAdapters/include/otbOGRFieldWrapper.txx
- Modules/Adapters/OSSIMAdapters/include/otbDEMConvertAdapter.h 1 addition, 1 deletion...les/Adapters/OSSIMAdapters/include/otbDEMConvertAdapter.h
- Modules/Adapters/OSSIMAdapters/include/otbDEMHandler.h 2 additions, 2 deletionsModules/Adapters/OSSIMAdapters/include/otbDEMHandler.h
Loading
Please register or sign in to comment