mirror of
https://github.com/reactos/CMake.git
synced 2024-12-14 07:09:22 +00: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.
41 lines
742 B
C
41 lines
742 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
|
|
# ifndef CONSUMER_LANG_CXX
|
|
# error Expected CONSUMER_LANG_CXX
|
|
# endif
|
|
|
|
# ifdef CONSUMER_LANG_C
|
|
# error Unexpected CONSUMER_LANG_C
|
|
# endif
|
|
|
|
# if !LANG_IS_CXX
|
|
# error Expected LANG_IS_CXX
|
|
# endif
|
|
|
|
# if LANG_IS_C
|
|
# error Unexpected LANG_IS_C
|
|
# endif
|
|
#else
|
|
# ifdef CONSUMER_LANG_CXX
|
|
# error Unexpected CONSUMER_LANG_CXX
|
|
# endif
|
|
|
|
# ifndef CONSUMER_LANG_C
|
|
# error Expected CONSUMER_LANG_C
|
|
# endif
|
|
|
|
# if !LANG_IS_C
|
|
# error Expected LANG_IS_C
|
|
# endif
|
|
|
|
# if LANG_IS_CXX
|
|
# error Unexpected LANG_IS_CXX
|
|
# endif
|
|
#endif
|
|
|
|
void consumer_c()
|
|
{
|
|
}
|