mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-26 00:00:39 -05:00
4ac17cff42
Code extracted from:
https://gitlab.kitware.com/utils/kwsys.git
at commit be3c441e46e091a7606565221bb5ae7c9a9b684f (master).
Upstream Shortlog
-----------------
Brad King (4):
6c66ba9e clang-format.bash: Use generic clang-format attribute
82ae3f28 clang-format.bash: update to clang-format-15
a61d0ad6 Empty commit at end of history preceding clang-format-15 style transition
3cb35bf3 CONTRIBUTING: Update documented clang-format version to 15
Kitware Robot (1):
f685d817 Revise C++ coding style using clang-format-15
Sean McBride (1):
d6c6fd82 testDirectory: Rename functions to fix -Wreserved-identifier warnings
35 lines
1.1 KiB
C
35 lines
1.1 KiB
C
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
|
file Copyright.txt or https://cmake.org/licensing#kwsys for details. */
|
|
#ifndef KWSYS_NAMESPACE
|
|
# error "Do not include kwsysPrivate.h outside of kwsys c and cxx files."
|
|
#endif
|
|
|
|
#ifndef _kwsysPrivate_h
|
|
# define _kwsysPrivate_h
|
|
|
|
/*
|
|
Define KWSYS_HEADER macro to help the c and cxx files include kwsys
|
|
headers from the configured namespace directory. The macro can be
|
|
used like this:
|
|
|
|
#include KWSYS_HEADER(Directory.hxx)
|
|
#include KWSYS_HEADER(std/vector)
|
|
*/
|
|
/* clang-format off */
|
|
#define KWSYS_HEADER(x) KWSYS_HEADER0(KWSYS_NAMESPACE/x)
|
|
/* clang-format on */
|
|
# define KWSYS_HEADER0(x) KWSYS_HEADER1(x)
|
|
# define KWSYS_HEADER1(x) <x>
|
|
|
|
/*
|
|
Define KWSYS_NAMESPACE_STRING to be a string constant containing the
|
|
name configured for this instance of the kwsys library.
|
|
*/
|
|
# define KWSYS_NAMESPACE_STRING KWSYS_NAMESPACE_STRING0(KWSYS_NAMESPACE)
|
|
# define KWSYS_NAMESPACE_STRING0(x) KWSYS_NAMESPACE_STRING1(x)
|
|
# define KWSYS_NAMESPACE_STRING1(x) #x
|
|
|
|
#else
|
|
# error "kwsysPrivate.h included multiple times."
|
|
#endif
|