summaryrefslogtreecommitdiff
path: root/src/util.cpp
diff options
context:
space:
mode:
authorWouter van Oortmerssen <aardappel@gmail.com>2017-12-21 10:54:28 -0800
committerWouter van Oortmerssen <aardappel@gmail.com>2017-12-21 11:45:02 -0800
commit89711c9c470b8ad4e2a4cbc890743852ea9d7235 (patch)
tree83c41dccca7bb199c773becc1a56b286ba4f894e /src/util.cpp
parent5d9930aa0de203b2059cb3cfe3874fa0196fe975 (diff)
downloadflatbuffers-89711c9c470b8ad4e2a4cbc890743852ea9d7235.tar.gz
flatbuffers-89711c9c470b8ad4e2a4cbc890743852ea9d7235.tar.bz2
flatbuffers-89711c9c470b8ad4e2a4cbc890743852ea9d7235.zip
Made all C++ files clang-formatted.
Also added missing generated files. Change-Id: Ifd22a643a08e3f2edfce92812ed57b87fc0e1875
Diffstat (limited to 'src/util.cpp')
-rw-r--r--src/util.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/util.cpp b/src/util.cpp
index f4aecb5c..2c8f2d04 100644
--- a/src/util.cpp
+++ b/src/util.cpp
@@ -57,6 +57,7 @@ bool FileExists(const char *name) {
}
bool DirExists(const char *name) {
+ // clang-format off
#ifdef _WIN32
#define flatbuffers_stat _stat
#define FLATBUFFERS_S_IFDIR _S_IFDIR
@@ -64,6 +65,7 @@ bool DirExists(const char *name) {
#define flatbuffers_stat stat
#define FLATBUFFERS_S_IFDIR S_IFDIR
#endif
+ // clang-format on
struct flatbuffers_stat file_info;
if (flatbuffers_stat(name, &file_info) != 0) return false;
return (file_info.st_mode & FLATBUFFERS_S_IFDIR) != 0;
@@ -78,8 +80,8 @@ LoadFileFunction SetLoadFileFunction(LoadFileFunction load_file_function) {
FileExistsFunction SetFileExistsFunction(
FileExistsFunction file_exists_function) {
FileExistsFunction previous_function = g_file_exists_function;
- g_file_exists_function = file_exists_function ?
- file_exists_function : FileExistsRaw;
+ g_file_exists_function =
+ file_exists_function ? file_exists_function : FileExistsRaw;
return previous_function;
}