Update some 2015 sources to .clang-tidy

This commit is contained in:
2021-12-02 19:57:58 +00:00
parent 7ab7ecb00a
commit 9ecc3ff53d
27 changed files with 305 additions and 336 deletions

View File

@@ -1,12 +1,7 @@
#include <cassert>
#include <functional>
#include <iostream>
#include <map>
#include <regex>
#include <string>
#include <variant>
std::string escape(std::string const& s)
auto escape(std::string const& s) -> std::string
{
std::string escaped;
escaped += '"';
@@ -20,7 +15,7 @@ std::string escape(std::string const& s)
return escaped;
}
int main(int argc, char** argv)
auto main() -> int
{
unsigned len = 0;