Skip to content

Commit

Permalink
[pstl] Move to single underscore-capital for macros and include guards
Browse files Browse the repository at this point in the history
Summary: Per the LLVM convention.

Reviewers: rodgert

Subscribers: jkorous, dexonsmith, jdoerfert, libcxx-commits

Tags: #libc

Differential Revision: https://reviews.llvm.org/D60521

llvm-svn: 358131
  • Loading branch information
ldionne committed Apr 10, 2019
1 parent 0352f20 commit 3dee12e
Show file tree
Hide file tree
Showing 63 changed files with 495 additions and 495 deletions.
10 changes: 5 additions & 5 deletions pstl/include/pstl/algorithm
Expand Up @@ -7,18 +7,18 @@
//
//===----------------------------------------------------------------------===//

#ifndef __PSTL_algorithm
#define __PSTL_algorithm
#ifndef _PSTL_ALGORITHM
#define _PSTL_ALGORITHM

#include "internal/pstl_config.h"

#if __PSTL_EXECUTION_POLICIES_DEFINED
#if _PSTL_EXECUTION_POLICIES_DEFINED
// If <execution> has already been included, pull in implementations
# include "internal/glue_algorithm_impl.h"
#else
// Otherwise just pull in forward declarations
# include "internal/glue_algorithm_defs.h"
# define __PSTL_ALGORITHM_FORWARD_DECLARED 1
# define _PSTL_ALGORITHM_FORWARD_DECLARED 1
#endif

#endif /* __PSTL_algorithm */
#endif /* _PSTL_ALGORITHM */
22 changes: 11 additions & 11 deletions pstl/include/pstl/execution
Expand Up @@ -7,31 +7,31 @@
//
//===----------------------------------------------------------------------===//

#ifndef __PSTL_execution
#define __PSTL_execution
#ifndef _PSTL_EXECUTION
#define _PSTL_EXECUTION

#include "internal/pstl_config.h"
#include "internal/execution_defs.h"

#define __PSTL_EXECUTION_POLICIES_DEFINED 1
#define _PSTL_EXECUTION_POLICIES_DEFINED 1

#if __PSTL_ALGORITHM_FORWARD_DECLARED
#if _PSTL_ALGORITHM_FORWARD_DECLARED
# include "internal/glue_algorithm_impl.h"
#endif

#if __PSTL_MEMORY_FORWARD_DECLARED
#if _PSTL_MEMORY_FORWARD_DECLARED
# include "internal/glue_memory_impl.h"
#endif

#if __PSTL_NUMERIC_FORWARD_DECLARED
#if _PSTL_NUMERIC_FORWARD_DECLARED
# include "internal/glue_numeric_impl.h"
#endif

#if __PSTL_CPP17_EXECUTION_POLICIES_PRESENT
__PSTL_PRAGMA_MESSAGE_POLICIES("The <Parallel STL> execution policies are defined in the namespace __pstl::execution")
#if _PSTL_CPP17_EXECUTION_POLICIES_PRESENT
_PSTL_PRAGMA_MESSAGE_POLICIES("The <Parallel STL> execution policies are defined in the namespace __pstl::execution")
#else
# include "internal/glue_execution_defs.h"
__PSTL_PRAGMA_MESSAGE_POLICIES(
_PSTL_PRAGMA_MESSAGE_POLICIES(
"The <Parallel STL> execution policies are injected into the standard namespace std::execution")
#endif

Expand All @@ -43,6 +43,6 @@ namespace execution
{
using namespace __pstl::execution;
}
}
} // namespace pstl

#endif /* __PSTL_execution */
#endif /* _PSTL_EXECUTION */
110 changes: 55 additions & 55 deletions pstl/include/pstl/internal/algorithm_fwd.h

Large diffs are not rendered by default.

0 comments on commit 3dee12e

Please sign in to comment.