mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-20 21:28:23 -05:00
d7204e649e
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.
22 lines
414 B
C
22 lines
414 B
C
|
|
// Visual Studio allows only one set of flags for C and C++.
|
|
// In a target using C++ we pick the C++ flags even for C sources.
|
|
#ifdef TEST_LANG_DEFINES_FOR_VISUAL_STUDIO_OR_XCODE
|
|
# include "cxx_only.h"
|
|
|
|
# ifndef CXX_ONLY_DEFINE
|
|
# error Expected CXX_ONLY_DEFINE
|
|
# endif
|
|
#else
|
|
# include "c_only.h"
|
|
|
|
# ifndef C_ONLY_DEFINE
|
|
# error Expected C_ONLY_DEFINE
|
|
# endif
|
|
#endif
|
|
|
|
int consumer_c()
|
|
{
|
|
return 0;
|
|
}
|