Code-style consistency improvement:

Apply clang-format-all.sh using the _clang-format file through all the cpp/.h files.
make sure not to apply it to certain serialization structures, since some parser expects the * as part of the name, instead of type.
This commit contains no other changes aside from adding and applying clang-format-all.sh
This commit is contained in:
erwincoumans
2018-09-23 14:17:31 -07:00
parent b73b05e9fb
commit ab8f16961e
1773 changed files with 1081087 additions and 474249 deletions

View File

@@ -3,31 +3,30 @@
inline void b3Swap16(unsigned char *ptr)
{
unsigned char val;
unsigned char val;
// Swap 1st and 2nd bytes
val = *(ptr);
*(ptr) = *(ptr+1);
*(ptr+1) = val;
// Swap 1st and 2nd bytes
val = *(ptr);
*(ptr) = *(ptr + 1);
*(ptr + 1) = val;
}
inline void b3Swap32(unsigned char *ptr)
{
unsigned char val;
unsigned char val;
// Swap 1st and 4th bytes
val = *(ptr);
*(ptr) = *(ptr+3);
*(ptr+3) = val;
// Swap 1st and 4th bytes
val = *(ptr);
*(ptr) = *(ptr + 3);
*(ptr + 3) = val;
//Swap 2nd and 3rd bytes
ptr += 1;
val = *(ptr);
*(ptr) = *(ptr+1);
*(ptr+1) = val;
//Swap 2nd and 3rd bytes
ptr += 1;
val = *(ptr);
*(ptr) = *(ptr + 1);
*(ptr + 1) = val;
}
inline void b3Swap64(unsigned char *ptr)
{
unsigned char val;
@@ -56,4 +55,4 @@ inline void b3Swap64(unsigned char *ptr)
*(ptr + 1) = val;
}
#endif //B3_SWAP_UTILS_H
#endif //B3_SWAP_UTILS_H