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/cmListCommand.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/cmListCommand.cxx')
-rw-r--r-- | Source/cmListCommand.cxx | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/Source/cmListCommand.cxx b/Source/cmListCommand.cxx index 05be9e5..feecb1e 100644 --- a/Source/cmListCommand.cxx +++ b/Source/cmListCommand.cxx @@ -19,7 +19,6 @@ #include <assert.h> #include <ctype.h> #include <stdlib.h> // required for atoi -//---------------------------------------------------------------------------- bool cmListCommand ::InitialPass(std::vector<std::string> const& args, cmExecutionStatus &) { @@ -80,7 +79,6 @@ bool cmListCommand return false; } -//---------------------------------------------------------------------------- bool cmListCommand::GetListString(std::string& listString, const std::string& var) { @@ -95,7 +93,6 @@ bool cmListCommand::GetListString(std::string& listString, return true; } -//---------------------------------------------------------------------------- bool cmListCommand::GetList(std::vector<std::string>& list, const std::string& var) { @@ -155,7 +152,6 @@ bool cmListCommand::GetList(std::vector<std::string>& list, return true; } -//---------------------------------------------------------------------------- bool cmListCommand::HandleLengthCommand(std::vector<std::string> const& args) { if(args.size() != 3) @@ -179,7 +175,6 @@ bool cmListCommand::HandleLengthCommand(std::vector<std::string> const& args) return true; } -//---------------------------------------------------------------------------- bool cmListCommand::HandleGetCommand(std::vector<std::string> const& args) { if(args.size() < 4) @@ -233,7 +228,6 @@ bool cmListCommand::HandleGetCommand(std::vector<std::string> const& args) return true; } -//---------------------------------------------------------------------------- bool cmListCommand::HandleAppendCommand(std::vector<std::string> const& args) { assert(args.size() >= 2); @@ -259,7 +253,6 @@ bool cmListCommand::HandleAppendCommand(std::vector<std::string> const& args) return true; } -//---------------------------------------------------------------------------- bool cmListCommand::HandleFindCommand(std::vector<std::string> const& args) { if(args.size() != 4) @@ -292,7 +285,6 @@ bool cmListCommand::HandleFindCommand(std::vector<std::string> const& args) return true; } -//---------------------------------------------------------------------------- bool cmListCommand::HandleInsertCommand(std::vector<std::string> const& args) { if(args.size() < 4) @@ -341,7 +333,6 @@ bool cmListCommand::HandleInsertCommand(std::vector<std::string> const& args) return true; } -//---------------------------------------------------------------------------- bool cmListCommand ::HandleRemoveItemCommand(std::vector<std::string> const& args) { @@ -374,7 +365,6 @@ bool cmListCommand return true; } -//---------------------------------------------------------------------------- bool cmListCommand ::HandleReverseCommand(std::vector<std::string> const& args) { @@ -401,7 +391,6 @@ bool cmListCommand return true; } -//---------------------------------------------------------------------------- bool cmListCommand ::HandleRemoveDuplicatesCommand(std::vector<std::string> const& args) { @@ -433,7 +422,6 @@ bool cmListCommand return true; } -//---------------------------------------------------------------------------- bool cmListCommand ::HandleSortCommand(std::vector<std::string> const& args) { @@ -461,7 +449,6 @@ bool cmListCommand return true; } -//---------------------------------------------------------------------------- bool cmListCommand::HandleRemoveAtCommand( std::vector<std::string> const& args) { @@ -523,7 +510,6 @@ bool cmListCommand::HandleRemoveAtCommand( return true; } -//---------------------------------------------------------------------------- bool cmListCommand::HandleFilterCommand( std::vector<std::string> const& args) { @@ -586,7 +572,6 @@ bool cmListCommand::HandleFilterCommand( return false; } -//---------------------------------------------------------------------------- class MatchesRegex { public: MatchesRegex(cmsys::RegularExpression& in_regex, bool in_includeMatches) |