Skip to content

Commit

Permalink
Reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
bernardnormier committed Jan 10, 2025
1 parent c9b749e commit 0aae767
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 13 deletions.
11 changes: 10 additions & 1 deletion .clang-tidy
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
Checks:
'-*,
modernize-use-equals-default,
clang-analyzer-*,
-clang-diagnostic-shadow-uncaptured-local,
-clang-analyzer-optin.core.EnumCastOutOfRange,
cert-*,
modernize-*,
-modernize-avoid-c-arrays,
-modernize-use-trailing-return-type,
-modernize-concat-nested-namespaces,
performance-*,
-performance-avoid-endl
'
WarningsAsErrors: '*'
HeaderFilterRegex: '.*'
Expand Down
24 changes: 12 additions & 12 deletions cpp/src/Ice/DynamicLibrary.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,21 @@ using namespace std;
IceInternal::DynamicLibrary::DynamicLibrary() : _hnd(nullptr) {}

IceInternal::DynamicLibrary::~DynamicLibrary() = default;
/*
* Closing the library here can cause a crash at program exit if
* the application holds references to library resources in global
* or static variables. Instead, we let the process discard the
* library.
*
if(_hnd != 0)
{
/*
* Closing the library here can cause a crash at program exit if
* the application holds references to library resources in global
* or static variables. Instead, we let the process discard the
* library.
*
if(_hnd != 0)
{
#ifdef _WIN32
FreeLibrary(_hnd);
FreeLibrary(_hnd);
#else
dlclose(_hnd);
dlclose(_hnd);
#endif
}
*/
}
*/

IceInternal::DynamicLibrary::symbol_type
IceInternal::DynamicLibrary::loadEntryPoint(const string& entryPoint, bool useIceVersion)
Expand Down

0 comments on commit 0aae767

Please sign in to comment.