mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-23 00:48:55 +08:00
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.
This commit is contained in:
@@ -426,24 +426,18 @@ DumpFile(const char* filename,
|
|||||||
|
|
||||||
bool bindexplib::AddObjectFile(const char* filename)
|
bool bindexplib::AddObjectFile(const char* filename)
|
||||||
{
|
{
|
||||||
if(!DumpFile(filename, this->Symbols, this->DataSymbols))
|
return DumpFile(filename, this->Symbols, this->DataSymbols);
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void bindexplib::WriteFile(FILE* file)
|
void bindexplib::WriteFile(FILE* file)
|
||||||
{
|
{
|
||||||
fprintf(file,"EXPORTS \n");
|
fprintf(file,"EXPORTS \n");
|
||||||
for(std::set<std::string>::const_iterator i = this->DataSymbols.begin();
|
for (std::set<std::string>::const_iterator i = this->DataSymbols.begin();
|
||||||
i!= this->DataSymbols.end(); ++i)
|
i != this->DataSymbols.end(); ++i) {
|
||||||
{
|
|
||||||
fprintf(file, "\t%s \t DATA\n", i->c_str());
|
fprintf(file, "\t%s \t DATA\n", i->c_str());
|
||||||
}
|
}
|
||||||
for(std::set<std::string>::const_iterator i = this->Symbols.begin();
|
for (std::set<std::string>::const_iterator i = this->Symbols.begin();
|
||||||
i!= this->Symbols.end(); ++i)
|
i != this->Symbols.end(); ++i) {
|
||||||
{
|
|
||||||
fprintf(file, "\t%s\n", i->c_str());
|
fprintf(file, "\t%s\n", i->c_str());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user