Skip to content

Commit

Permalink
run astyle
Browse files Browse the repository at this point in the history
  • Loading branch information
GiovanniBussi committed Sep 19, 2024
1 parent 5b31d29 commit c10179e
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions src/config/Config.inc.in
Original file line number Diff line number Diff line change
Expand Up @@ -29,20 +29,20 @@ namespace PLMD {
namespace config {

namespace {
/// local tool that, given a string, returns a new string which is:
/// - enclosed in single quotes (')
/// - with all single quotes escaped
std::string escapeForSingleQuote(const std::string& input) {
std::string escaped;
for (char c : input) {
if (c == '\'') {
escaped += "'\\''";
} else {
escaped += c;
}
/// local tool that, given a string, returns a new string which is:
/// - enclosed in single quotes (')
/// - with all single quotes escaped
std::string escapeForSingleQuote(const std::string& input) {
std::string escaped;
for (char c : input) {
if (c == '\'') {
escaped += "'\\''";
} else {
escaped += c;
}
return "'" + escaped + "'";
}
return "'" + escaped + "'";
}
}

// This is a fix to allow conda to correctly replace paths in binary files.
Expand Down

1 comment on commit c10179e

@PlumedBot
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Found broken examples in automatic/a-masterclass-22-09.txt
Found broken examples in automatic/a-masterclass-22-11.txt
Found broken examples in automatic/a-masterclass-22-12.txt
Found broken examples in automatic/performance-optimization.txt
Found broken examples in automatic/a-trieste-6.txt
Found broken examples in automatic/munster.txt
Found broken examples in automatic/ANN.tmp
Found broken examples in automatic/EDS.tmp
Found broken examples in automatic/EMMI.tmp
Found broken examples in automatic/ENVIRONMENTSIMILARITY.tmp
Found broken examples in automatic/FOURIER_TRANSFORM.tmp
Found broken examples in automatic/FUNCPATHGENERAL.tmp
Found broken examples in automatic/FUNCPATHMSD.tmp
Found broken examples in automatic/FUNNEL.tmp
Found broken examples in automatic/FUNNEL_PS.tmp
Found broken examples in automatic/GHBFIX.tmp
Found broken examples in automatic/INCLUDE.tmp
Found broken examples in automatic/MAZE_OPTIMIZER_BIAS.tmp
Found broken examples in automatic/MAZE_RANDOM_ACCELERATION_MD.tmp
Found broken examples in automatic/MAZE_SIMULATED_ANNEALING.tmp
Found broken examples in automatic/MAZE_STEERED_MD.tmp
Found broken examples in automatic/PIV.tmp
Found broken examples in automatic/PLUMED.tmp
Found broken examples in MiscelaneousPP.md

Please sign in to comment.