Skip to content

Commit 605a04e

Browse files
committed
Fix formatting of files
1 parent fd7f078 commit 605a04e

File tree

11 files changed

+16
-21
lines changed

11 files changed

+16
-21
lines changed

include/fs.hpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
#pragma once
22

3-
#if ((defined(_MSVC_LANG) && _MSVC_LANG >= 201703L) || \
4-
(defined(__cplusplus) && __cplusplus >= 201703L)) && \
5-
defined(__has_include)
3+
#if ((defined(_MSVC_LANG) && _MSVC_LANG >= 201703L) || (defined(__cplusplus) && __cplusplus >= 201703L)) && defined(__has_include)
64
#if __has_include(<filesystem>) && (!defined(__MAC_OS_X_VERSION_MIN_REQUIRED) || __MAC_OS_X_VERSION_MIN_REQUIRED >= 101500)
75
#define GHC_USE_STD_FS
86
#include <filesystem>

src/project_parser.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ static std::string format_key_message(const std::string &message, const toml::ke
3636
auto loc = value.location();
3737
auto line_number_str = std::to_string(loc.line());
3838
auto line_width = line_number_str.length();
39-
const auto& line_str = loc.line_str();
39+
const auto &line_str = loc.line_str();
4040

4141
std::ostringstream oss;
4242
oss << message << "\n";

tests/conditions/src/main.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
int main() { }
1+
int main() {
2+
}
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
#include <Windows.h>
22

3-
void foo() { }
3+
void foo() {
4+
}

tests/cxx-standard/src/main.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
#include <cstdio>
22
#include <tuple>
33

4-
int main()
5-
{
4+
int main() {
65
auto tpl = std::make_tuple(1, 2);
76
printf("Hello from C++11 %d\n", std::get<0>(tpl));
87
}

tests/fetch-content/src/main.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#include <fmt/core.h>
22

3-
int main()
4-
{
3+
int main() {
54
fmt::print("Hello, world!\n");
65
}

tests/globbing/mylib/include/mylib/mylib.hpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
#include <string>
44

5-
namespace mylib
6-
{
5+
namespace mylib {
76
std::string message();
87
}
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#include <mylib/mylib.hpp>
22

3-
std::string mylib::message()
4-
{
3+
std::string mylib::message() {
54
return "cmkr is awesome!";
65
}
Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
namespace mylib
2-
{
3-
static const char* version() { return "v1.0"; }
1+
namespace mylib {
2+
static const char *version() {
3+
return "v1.0";
4+
}
45
} // namespace mylib

tests/interface/src/main.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
#include "mylib/mylib.hpp"
44

5-
int main()
6-
{
5+
int main() {
76
printf("mylib version: %s\n", mylib::version());
87
}

0 commit comments

Comments
 (0)