diff options
author | Brad King <brad.king@kitware.com> | 2016-05-06 18:30:06 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-05-09 13:41:43 (GMT) |
commit | 0ac18d40c8c29a17f1acfcaca506f41a26185901 (patch) | |
tree | 88b5d3c4b8c587d7979231d0e6ce9b03b0685a74 /Source/cmLocalVisualStudio7Generator.cxx | |
parent | d95fbdb70944a8f9a7e6ac11bc51f410a99aafcd (diff) | |
download | CMake-0ac18d40c8c29a17f1acfcaca506f41a26185901.zip CMake-0ac18d40c8c29a17f1acfcaca506f41a26185901.tar.gz CMake-0ac18d40c8c29a17f1acfcaca506f41a26185901.tar.bz2 |
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.
Diffstat (limited to 'Source/cmLocalVisualStudio7Generator.cxx')
-rw-r--r-- | Source/cmLocalVisualStudio7Generator.cxx | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/Source/cmLocalVisualStudio7Generator.cxx b/Source/cmLocalVisualStudio7Generator.cxx index 3c01a70..897fce1 100644 --- a/Source/cmLocalVisualStudio7Generator.cxx +++ b/Source/cmLocalVisualStudio7Generator.cxx @@ -53,7 +53,6 @@ static void cmConvertToWindowsSlash(std::string& s) } } -//---------------------------------------------------------------------------- cmLocalVisualStudio7Generator ::cmLocalVisualStudio7Generator(cmGlobalGenerator* gg, cmMakefile* mf): cmLocalVisualStudioGenerator(gg, mf) @@ -193,7 +192,6 @@ void cmLocalVisualStudio7Generator::WriteProjectFiles() } } -//---------------------------------------------------------------------------- void cmLocalVisualStudio7Generator::WriteStampFiles() { // Touch a timestamp file used to determine when the project file is @@ -224,7 +222,6 @@ void cmLocalVisualStudio7Generator::WriteStampFiles() } } -//---------------------------------------------------------------------------- void cmLocalVisualStudio7Generator ::CreateSingleVCProj(const std::string& lname, cmGeneratorTarget *target) { @@ -271,7 +268,6 @@ void cmLocalVisualStudio7Generator gg->SetVersion(realVersion); } -//---------------------------------------------------------------------------- cmSourceFile* cmLocalVisualStudio7Generator::CreateVCProjBuildRule() { std::string stampName = this->GetCurrentBinaryDirectory(); @@ -593,7 +589,6 @@ cmVS7FlagTable cmLocalVisualStudio7GeneratorFortranLinkFlagTable[] = {0,0,0,0,0} }; -//---------------------------------------------------------------------------- // Helper class to write build event <Tool .../> elements. class cmLocalVisualStudio7Generator::EventWriter { @@ -646,7 +641,6 @@ private: bool First; }; -//---------------------------------------------------------------------------- void cmLocalVisualStudio7Generator::WriteConfiguration(std::ostream& fout, const std::string& configName, const std::string& libName, @@ -1034,7 +1028,6 @@ void cmLocalVisualStudio7Generator::WriteConfiguration(std::ostream& fout, fout << "\t\t</Configuration>\n"; } -//---------------------------------------------------------------------------- std::string cmLocalVisualStudio7Generator ::GetBuildTypeLinkerFlags(std::string rootLinkerFlags, @@ -1423,7 +1416,6 @@ void cmLocalVisualStudio7Generator::OutputDeploymentDebuggerTool( } } -//---------------------------------------------------------------------------- void cmLocalVisualStudio7Generator ::WriteTargetVersionAttribute(std::ostream& fout, cmGeneratorTarget* gt) @@ -1434,7 +1426,6 @@ cmLocalVisualStudio7Generator fout << "\t\t\t\tVersion=\"" << major << "." << minor << "\"\n"; } -//---------------------------------------------------------------------------- void cmLocalVisualStudio7GeneratorInternals ::OutputLibraries(std::ostream& fout, ItemVector const& libs) @@ -1457,7 +1448,6 @@ cmLocalVisualStudio7GeneratorInternals } } -//---------------------------------------------------------------------------- void cmLocalVisualStudio7GeneratorInternals ::OutputObjects(std::ostream& fout, cmGeneratorTarget* gt, const char* isep) @@ -1479,7 +1469,6 @@ cmLocalVisualStudio7GeneratorInternals } } -//---------------------------------------------------------------------------- void cmLocalVisualStudio7Generator ::OutputLibraryDirectories(std::ostream& fout, @@ -1735,7 +1724,6 @@ cmLocalVisualStudio7GeneratorFCInfo } } -//---------------------------------------------------------------------------- std::string cmLocalVisualStudio7Generator ::ComputeLongestObjectDirectory(cmGeneratorTarget const* target) const @@ -2420,7 +2408,6 @@ void cmLocalVisualStudio7Generator::ReadAndStoreExternalGUID( } -//---------------------------------------------------------------------------- std::string cmLocalVisualStudio7Generator ::GetTargetDirectory(cmGeneratorTarget const* target) const { @@ -2430,7 +2417,6 @@ std::string cmLocalVisualStudio7Generator return dir; } -//---------------------------------------------------------------------------- #include <windows.h> static bool cmLVS7G_IsFAT(const char* dir) { |