Remove `//------...` horizontal separator comments
Modern editors provide plenty of ways to visually separate functions. Drop the explicit comments that previously served this purpose. Use the following command to automate the change: $ git ls-files -z -- \ "*.c" "*.cc" "*.cpp" "*.cxx" "*.h" "*.hh" "*.hpp" "*.hxx" | egrep -z -v "^Source/cmCommandArgumentLexer\." | egrep -z -v "^Source/cmCommandArgumentParser(\.y|\.cxx|Tokens\.h)" | egrep -z -v "^Source/cmDependsJavaLexer\." | egrep -z -v "^Source/cmDependsJavaParser(\.y|\.cxx|Tokens\.h)" | egrep -z -v "^Source/cmExprLexer\." | egrep -z -v "^Source/cmExprParser(\.y|\.cxx|Tokens\.h)" | egrep -z -v "^Source/cmFortranLexer\." | egrep -z -v "^Source/cmFortranParser(\.y|\.cxx|Tokens\.h)" | egrep -z -v "^Source/cmListFileLexer\." | egrep -z -v "^Source/cm_sha2" | egrep -z -v "^Source/(kwsys|CursesDialog/form)/" | egrep -z -v "^Utilities/(KW|cm).*/" | xargs -0 sed -i '/^\(\/\/---*\|\/\*---*\*\/\)$/ {d;}' This avoids modifying third-party sources and generated sources.
Showing
- Modules/CMakeCCompilerABI.c 0 additions, 2 deletionsModules/CMakeCCompilerABI.c
- Modules/CMakeCXXCompilerABI.cpp 0 additions, 2 deletionsModules/CMakeCXXCompilerABI.cpp
- Modules/CMakeCompilerABI.h 0 additions, 2 deletionsModules/CMakeCompilerABI.h
- Source/CPack/IFW/cmCPackIFWGenerator.cxx 0 additions, 22 deletionsSource/CPack/IFW/cmCPackIFWGenerator.cxx
- Source/CPack/IFW/cmCPackIFWInstaller.cxx 0 additions, 9 deletionsSource/CPack/IFW/cmCPackIFWInstaller.cxx
- Source/CPack/IFW/cmCPackIFWPackage.cxx 0 additions, 14 deletionsSource/CPack/IFW/cmCPackIFWPackage.cxx
- Source/CPack/cmCPack7zGenerator.cxx 0 additions, 2 deletionsSource/CPack/cmCPack7zGenerator.cxx
- Source/CPack/cmCPackArchiveGenerator.cxx 0 additions, 8 deletionsSource/CPack/cmCPackArchiveGenerator.cxx
- Source/CPack/cmCPackBundleGenerator.cxx 0 additions, 6 deletionsSource/CPack/cmCPackBundleGenerator.cxx
- Source/CPack/cmCPackComponentGroup.cxx 0 additions, 2 deletionsSource/CPack/cmCPackComponentGroup.cxx
- Source/CPack/cmCPackCygwinBinaryGenerator.cxx 0 additions, 4 deletionsSource/CPack/cmCPackCygwinBinaryGenerator.cxx
- Source/CPack/cmCPackCygwinSourceGenerator.cxx 0 additions, 4 deletionsSource/CPack/cmCPackCygwinSourceGenerator.cxx
- Source/CPack/cmCPackDebGenerator.cxx 0 additions, 7 deletionsSource/CPack/cmCPackDebGenerator.cxx
- Source/CPack/cmCPackDragNDropGenerator.cxx 0 additions, 9 deletionsSource/CPack/cmCPackDragNDropGenerator.cxx
- Source/CPack/cmCPackGenerator.cxx 0 additions, 38 deletionsSource/CPack/cmCPackGenerator.cxx
- Source/CPack/cmCPackGeneratorFactory.cxx 0 additions, 5 deletionsSource/CPack/cmCPackGeneratorFactory.cxx
- Source/CPack/cmCPackLog.cxx 0 additions, 5 deletionsSource/CPack/cmCPackLog.cxx
- Source/CPack/cmCPackNSISGenerator.cxx 0 additions, 13 deletionsSource/CPack/cmCPackNSISGenerator.cxx
- Source/CPack/cmCPackOSXX11Generator.cxx 0 additions, 7 deletionsSource/CPack/cmCPackOSXX11Generator.cxx
- Source/CPack/cmCPackPackageMakerGenerator.cxx 0 additions, 17 deletionsSource/CPack/cmCPackPackageMakerGenerator.cxx
Loading
Please register or sign in to comment