summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaExpr.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2014-11-08 05:07:16 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2014-11-08 05:07:16 +0000
commit0f0af19b058151690ec02d781d0039fb1fc38426 (patch)
tree628729499c9190870f32a30ddfea3d8c9db273fd /clang/lib/Sema/SemaExpr.cpp
parent8f6dd44056ceb2821b7692f1a110f91866b1bf2b (diff)
downloadbcm5719-llvm-0f0af19b058151690ec02d781d0039fb1fc38426.tar.gz
bcm5719-llvm-0f0af19b058151690ec02d781d0039fb1fc38426.zip
[c++1z] N4295: fold-expressions.
This is a new form of expression of the form: (expr op ... op expr) where one of the exprs is a parameter pack. It expands into (expr1 op (expr2onwards op ... op expr)) (and likewise if the pack is on the right). The non-pack operand can be omitted; in that case, an empty pack gives a fallback value or an error, depending on the operator. llvm-svn: 221573
Diffstat (limited to 'clang/lib/Sema/SemaExpr.cpp')
-rw-r--r--clang/lib/Sema/SemaExpr.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/Sema/SemaExpr.cpp b/clang/lib/Sema/SemaExpr.cpp
index a8e4407f34f..5a4c7e6b778 100644
--- a/clang/lib/Sema/SemaExpr.cpp
+++ b/clang/lib/Sema/SemaExpr.cpp
@@ -9164,8 +9164,7 @@ static QualType CheckIndirectionOperand(Sema &S, Expr *Op, ExprValueKind &VK,
return Result;
}
-static inline BinaryOperatorKind ConvertTokenKindToBinaryOpcode(
- tok::TokenKind Kind) {
+BinaryOperatorKind Sema::ConvertTokenKindToBinaryOpcode(tok::TokenKind Kind) {
BinaryOperatorKind Opc;
switch (Kind) {
default: llvm_unreachable("Unknown binop!");
OpenPOWER on IntegriCloud