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/cmSetPropertyCommand.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/cmSetPropertyCommand.cxx')
-rw-r--r-- | Source/cmSetPropertyCommand.cxx | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/Source/cmSetPropertyCommand.cxx b/Source/cmSetPropertyCommand.cxx index fb13a19..a03f608 100644 --- a/Source/cmSetPropertyCommand.cxx +++ b/Source/cmSetPropertyCommand.cxx @@ -16,7 +16,6 @@ #include "cmSetTestsPropertiesCommand.h" -//---------------------------------------------------------------------------- cmSetPropertyCommand::cmSetPropertyCommand() { this->AppendMode = false; @@ -24,7 +23,6 @@ cmSetPropertyCommand::cmSetPropertyCommand() this->Remove = true; } -//---------------------------------------------------------------------------- bool cmSetPropertyCommand ::InitialPass(std::vector<std::string> const& args, cmExecutionStatus &) { @@ -149,7 +147,6 @@ bool cmSetPropertyCommand return true; } -//---------------------------------------------------------------------------- bool cmSetPropertyCommand::HandleGlobalMode() { if(!this->Names.empty()) @@ -178,7 +175,6 @@ bool cmSetPropertyCommand::HandleGlobalMode() return true; } -//---------------------------------------------------------------------------- bool cmSetPropertyCommand::HandleDirectoryMode() { if(this->Names.size() > 1) @@ -237,7 +233,6 @@ bool cmSetPropertyCommand::HandleDirectoryMode() return true; } -//---------------------------------------------------------------------------- bool cmSetPropertyCommand::HandleTargetMode() { for(std::set<std::string>::const_iterator ni = this->Names.begin(); @@ -268,7 +263,6 @@ bool cmSetPropertyCommand::HandleTargetMode() return true; } -//---------------------------------------------------------------------------- bool cmSetPropertyCommand::HandleTarget(cmTarget* target) { // Set or append the property. @@ -293,7 +287,6 @@ bool cmSetPropertyCommand::HandleTarget(cmTarget* target) return true; } -//---------------------------------------------------------------------------- bool cmSetPropertyCommand::HandleSourceMode() { for(std::set<std::string>::const_iterator ni = this->Names.begin(); @@ -318,7 +311,6 @@ bool cmSetPropertyCommand::HandleSourceMode() return true; } -//---------------------------------------------------------------------------- bool cmSetPropertyCommand::HandleSource(cmSourceFile* sf) { // Set or append the property. @@ -340,7 +332,6 @@ bool cmSetPropertyCommand::HandleSource(cmSourceFile* sf) return true; } -//---------------------------------------------------------------------------- bool cmSetPropertyCommand::HandleTestMode() { // Look for tests with all names given. @@ -379,7 +370,6 @@ bool cmSetPropertyCommand::HandleTestMode() return true; } -//---------------------------------------------------------------------------- bool cmSetPropertyCommand::HandleTest(cmTest* test) { // Set or append the property. @@ -401,7 +391,6 @@ bool cmSetPropertyCommand::HandleTest(cmTest* test) return true; } -//---------------------------------------------------------------------------- bool cmSetPropertyCommand::HandleCacheMode() { if(this->PropertyName == "ADVANCED") @@ -466,7 +455,6 @@ bool cmSetPropertyCommand::HandleCacheMode() return true; } -//---------------------------------------------------------------------------- bool cmSetPropertyCommand::HandleCacheEntry(std::string const& cacheKey) { // Set or append the property. @@ -490,7 +478,6 @@ bool cmSetPropertyCommand::HandleCacheEntry(std::string const& cacheKey) return true; } -//---------------------------------------------------------------------------- bool cmSetPropertyCommand::HandleInstallMode() { cmake* cm = this->Makefile->GetCMakeInstance(); @@ -517,7 +504,6 @@ bool cmSetPropertyCommand::HandleInstallMode() return true; } -//---------------------------------------------------------------------------- bool cmSetPropertyCommand::HandleInstall(cmInstalledFile* file) { // Set or append the property. |