Formatted code (#1007)

* Updated style

* Updated files

* fixed new line

* Updated spacing

* File fix WIP

* Updated to clang 13

* updated comment style

* Removed old comment code
This commit is contained in:
jLynx 2023-05-19 08:16:05 +12:00 committed by GitHub
parent 7aca7ce74d
commit 033c4e9a5b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
599 changed files with 70746 additions and 66896 deletions

View file

@ -33,21 +33,21 @@ using namespace lpc43xx;
#define LOG_ROOT_DIR "LOGS"
class LogFile {
public:
Optional<File::Error> append(const std::filesystem::path& filename) {
auto result = ensure_directory(filename.parent_path());
if (result.code())
return { result };
return file.append(filename);
}
public:
Optional<File::Error> append(const std::filesystem::path& filename) {
auto result = ensure_directory(filename.parent_path());
if (result.code())
return {result};
Optional<File::Error> write_entry(const rtc::RTC& datetime, const std::string& entry);
return file.append(filename);
}
private:
File file { };
Optional<File::Error> write_entry(const rtc::RTC& datetime, const std::string& entry);
Optional<File::Error> write_line(const std::string& message);
private:
File file{};
Optional<File::Error> write_line(const std::string& message);
};
#endif/*__LOG_FILE_H__*/
#endif /*__LOG_FILE_H__*/