Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(616)

Unified Diff: runtime/bin/file.h

Issue 2480793002: clang-format runtime/bin (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/bin/fdutils_macos.cc ('k') | runtime/bin/file.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/file.h
diff --git a/runtime/bin/file.h b/runtime/bin/file.h
index 3cce143d95aa435225fa849c86e1bd811a631c25..300e56103c68765741c5afece830324bd08af7e5 100644
--- a/runtime/bin/file.h
+++ b/runtime/bin/file.h
@@ -43,18 +43,9 @@ class File : public ReferenceCounted<File> {
kDartWriteOnlyAppend = 4
};
- enum Type {
- kIsFile = 0,
- kIsDirectory = 1,
- kIsLink = 2,
- kDoesNotExist = 3
- };
+ enum Type { kIsFile = 0, kIsDirectory = 1, kIsLink = 2, kDoesNotExist = 3 };
- enum Identical {
- kIdentical = 0,
- kDifferent = 1,
- kError = 2
- };
+ enum Identical { kIdentical = 0, kDifferent = 1, kError = 2 };
enum StdioHandleType {
kTerminal = 0,
@@ -105,9 +96,7 @@ class File : public ReferenceCounted<File> {
// occurred the result will be set to false.
bool ReadFully(void* buffer, int64_t num_bytes);
bool WriteFully(const void* buffer, int64_t num_bytes);
- bool WriteByte(uint8_t byte) {
- return WriteFully(&byte, 1);
- }
+ bool WriteByte(uint8_t byte) { return WriteFully(&byte, 1); }
// Get the length of the file. Returns a negative value if the length cannot
// be determined (e.g. not seekable device).
@@ -217,10 +206,8 @@ class File : public ReferenceCounted<File> {
static CObject* LockRequest(const CObjectArray& request);
private:
- explicit File(FileHandle* handle) :
- ReferenceCounted(),
- handle_(handle),
- weak_handle_(NULL) {}
+ explicit File(FileHandle* handle)
+ : ReferenceCounted(), handle_(handle), weak_handle_(NULL) {}
~File();
« no previous file with comments | « runtime/bin/fdutils_macos.cc ('k') | runtime/bin/file.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698