summaryrefslogtreecommitdiff
path: root/Source/bindexplib.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-12-14 09:25:11 -0500
committerBrad King <brad.king@kitware.com>2017-03-09 16:28:04 -0500
commit4f90e7931487195b5d540fbaa5dad1c90b26cee1 (patch)
tree47f87ee9b40e322f5407b4cca02e985e15fc94e0 /Source/bindexplib.cxx
parentf36eaf6a6eb8a7ef1127ad43e419896be89f0e39 (diff)
downloadcmake-4f90e7931487195b5d540fbaa5dad1c90b26cee1.tar.gz
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.
Diffstat (limited to 'Source/bindexplib.cxx')
-rw-r--r--Source/bindexplib.cxx20
1 files changed, 7 insertions, 13 deletions
diff --git a/Source/bindexplib.cxx b/Source/bindexplib.cxx
index e41850ac3f..7d61ea6053 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());
- }
+ }
}