Skip to content

Commit

Permalink
[Support][Compiler] Add LLVM_HAS_VARIADIC_TEMPLATES.
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174913 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
Bigcheese committed Feb 11, 2013
1 parent b4b4fa8 commit 86f18eb
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions include/llvm/Support/Compiler.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,16 @@
#define LLVM_HAS_CXX11_STDLIB 0
#endif

/// \macro LLVM_HAS_VARIADIC_TEMPLATES
/// \brief Does this compiler support variadic templates.
///
/// Implies LLVM_HAS_RVALUE_REFERENCES and the existence of std::forward.
#if __has_feature(cxx_variadic_templates)
# define LLVM_HAS_VARIADIC_TEMPLATES 1
#else
# define LLVM_HAS_VARIADIC_TEMPLATES 0
#endif

/// llvm_move - Expands to ::std::move if the compiler supports
/// r-value references; otherwise, expands to the argument.
#if LLVM_HAS_RVALUE_REFERENCES
Expand Down

0 comments on commit 86f18eb

Please sign in to comment.