mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-13 01:29:02 -05:00
Revise C++ coding style using clang-format-6.0
Run the `clang-format.bash` script to update all our C and C++ code to a new style defined by `.clang-format`. Use `clang-format` version 6.0. * If you reached this commit for a line in `git blame`, re-run the blame operation starting at the parent of this commit to see older history for the content. * See the parent commit for instructions to rebase a change across this style transition commit.
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
#include <stdlib.h>
|
||||
|
||||
#ifdef __QNX__
|
||||
#include <malloc.h> /* for malloc/free on QNX */
|
||||
# include <malloc.h> /* for malloc/free on QNX */
|
||||
#endif
|
||||
|
||||
extern "C" {
|
||||
@@ -395,9 +395,10 @@ void CCONV cmAddLibrary(void* arg, const char* libname, int shared,
|
||||
for (i = 0; i < numSrcs; ++i) {
|
||||
srcs2.push_back(srcs[i]);
|
||||
}
|
||||
mf->AddLibrary(libname, (shared ? cmStateEnums::SHARED_LIBRARY
|
||||
: cmStateEnums::STATIC_LIBRARY),
|
||||
srcs2);
|
||||
mf->AddLibrary(
|
||||
libname,
|
||||
(shared ? cmStateEnums::SHARED_LIBRARY : cmStateEnums::STATIC_LIBRARY),
|
||||
srcs2);
|
||||
}
|
||||
|
||||
char CCONV* cmExpandVariablesInString(void* arg, const char* source,
|
||||
|
||||
Reference in New Issue
Block a user