diff options
author | Brad King <brad.king@kitware.com> | 2016-12-14 14:25:11 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-03-09 21:28:04 (GMT) |
commit | 4f90e7931487195b5d540fbaa5dad1c90b26cee1 (patch) | |
tree | 47f87ee9b40e322f5407b4cca02e985e15fc94e0 | |
parent | f36eaf6a6eb8a7ef1127ad43e419896be89f0e39 (diff) | |
download | CMake-4f90e7931487195b5d540fbaa5dad1c90b26cee1.zip CMake-4f90e7931487195b5d540fbaa5dad1c90b26cee1.tar.gz CMake-4f90e7931487195b5d540fbaa5dad1c90b26cee1.tar.bz2 |
bindexplib: Revise coding style of CMake-specific methods
We exclude this source from `clang-format` due to use of third-party
code. However, we can manually format the CMake-specific part of the
code using our current style.
-rw-r--r-- | Source/bindexplib.cxx | 20 |
1 files changed, 7 insertions, 13 deletions
diff --git a/Source/bindexplib.cxx b/Source/bindexplib.cxx index e41850a..7d61ea6 100644 --- a/Source/bindexplib.cxx +++ b/Source/bindexplib.cxx @@ -426,24 +426,18 @@ DumpFile(const char* filename, bool bindexplib::AddObjectFile(const char* filename) { - if(!DumpFile(filename, this->Symbols, this->DataSymbols)) - { - return false; - } - return true; + return DumpFile(filename, this->Symbols, this->DataSymbols); } void bindexplib::WriteFile(FILE* file) { fprintf(file,"EXPORTS \n"); - for(std::set<std::string>::const_iterator i = this->DataSymbols.begin(); - i!= this->DataSymbols.end(); ++i) - { + for (std::set<std::string>::const_iterator i = this->DataSymbols.begin(); + i != this->DataSymbols.end(); ++i) { fprintf(file, "\t%s \t DATA\n", i->c_str()); - } - for(std::set<std::string>::const_iterator i = this->Symbols.begin(); - i!= this->Symbols.end(); ++i) - { + } + for (std::set<std::string>::const_iterator i = this->Symbols.begin(); + i != this->Symbols.end(); ++i) { fprintf(file, "\t%s\n", i->c_str()); - } + } } |