Browse Source

Code fortmat with new clang formater (3.7)

gkostka 11 năm trước cách đây
mục cha
commit
2d734d7ea8
4 tập tin đã thay đổi với 3 bổ sung6 xóa
  1. 3 1
      .clang-format
  2. 0 2
      lwext4/ext4.c
  3. 0 2
      lwext4/ext4_fs.c
  4. 0 1
      lwext4/ext4_hash.c

+ 3 - 1
.clang-format

@@ -1,6 +1,8 @@
+#clang-format-3.7 -style=file -i lwext4/*
+
 BasedOnStyle: LLVM
 IndentWidth: 4
 UseTab: Never
-BreakBeforeBraces: Stroustrup
+BreakBeforeBraces: Linux
 AllowShortIfStatementsOnASingleLine: false
 IndentCaseLabels: false

+ 0 - 2
lwext4/ext4.c

@@ -49,8 +49,6 @@
 #include <stdlib.h>
 #include <string.h>
 
-
-
 /**@brief   Mount point OS dependent lock*/
 #define EXT4_MP_LOCK(_m)                                                       \
     do {                                                                       \

+ 0 - 2
lwext4/ext4_fs.c

@@ -633,7 +633,6 @@ int ext4_fs_alloc_inode(struct ext4_fs *fs, struct ext4_inode_ref *inode_ref,
         mode |= EXT4_INODE_MODE_DIRECTORY;
         ext4_inode_set_mode(&fs->sb, inode, mode);
         ext4_inode_set_links_count(inode, 0);
-
     } else {
         /*
          * Default file permissions to be compatible with other systems
@@ -861,7 +860,6 @@ int ext4_fs_truncate_inode(struct ext4_inode_ref *inode_ref, uint64_t new_size)
             inode_ref, old_blocks_count - diff_blocks_count);
         if (rc != EOK)
             return rc;
-
     } else
 #endif
     {

+ 0 - 1
lwext4/ext4_hash.c

@@ -67,7 +67,6 @@
 
 #include <string.h>
 
-
 /* F, G, and H are MD4 functions */
 #define F(x, y, z) (((x) & (y)) | ((~x) & (z)))
 #define G(x, y, z) (((x) & (y)) | ((x) & (z)) | ((y) & (z)))