Skip to content

Instantly share code, notes, and snippets.

@stryku
Created August 22, 2017 21:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stryku/a45f62468f6ce7a72ad4fbd067a79009 to your computer and use it in GitHub Desktop.
Save stryku/a45f62468f6ce7a72ad4fbd067a79009 to your computer and use it in GitHub Desktop.
static bool formatRecusively() {
std::vector<std::string> files;
if (checkMultipleFilesPreconditions() || findMatchingFiles(files)) {
return false;
}
bool Error = false;
for (unsigned i = 0; i < files.size(); ++i) {
Error |= clang::format::format(files[i]);
}
return Error;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment