Format like smack-a-brother, and write comments as sentences
Four-space indents, braces on their own lines, and one-statement bodies without braces. Semicolons in comments became full stops. Designated initializers may leave fields out without a warning.
This commit is contained in:
1 parent
40f6b554b5
commit
7afdf709c3
176 files changed
+20500
-19048
No files matched your search
+7
-7
@@ -4,9 +4,9 @@
|
||||
#include <string>
|
||||
#include <string_view>
|
||||
|
||||
class File
|
||||
{
|
||||
public:
|
||||
class File
|
||||
{
|
||||
public:
|
||||
File() = default;
|
||||
File(const std::filesystem::path&, const char* mode);
|
||||
~File();
|
||||
@@ -16,9 +16,9 @@
|
||||
FILE* get() const;
|
||||
explicit operator bool() const;
|
||||
|
||||
private:
|
||||
private:
|
||||
FILE* handle = nullptr;
|
||||
};
|
||||
};
|
||||
|
||||
bool file_text_load(const std::filesystem::path&, std::string*, const char* mode = "rb");
|
||||
bool file_text_save(const std::filesystem::path&, std::string_view, const char* mode = "wb");
|
||||
bool file_text_load(const std::filesystem::path&, std::string*, const char* mode = "rb");
|
||||
bool file_text_save(const std::filesystem::path&, std::string_view, const char* mode = "wb");
|
||||
Reference in new issue
Block a user