summaryrefslogtreecommitdiffstats
path: root/clang/include
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2016-10-20 00:55:15 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2016-10-20 00:55:15 +0000
commit6609443f2f82a0e17d838e6d521eec2188b4a309 (patch)
treeaac3c35178ecd20ef81cff349ef62377dc1cf2c9 /clang/include
parent11eabd4cde8e03155b3bd78204c1db1746bf0bf1 (diff)
downloadbcm5719-llvm-6609443f2f82a0e17d838e6d521eec2188b4a309.tar.gz
bcm5719-llvm-6609443f2f82a0e17d838e6d521eec2188b4a309.zip
PR26276: Fix detection of non-cast-expressions as operands of fold-expressions.
llvm-svn: 284684
Diffstat (limited to 'clang/include')
-rw-r--r--clang/include/clang/AST/ExprCXX.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/include/clang/AST/ExprCXX.h b/clang/include/clang/AST/ExprCXX.h
index af45b161f6b..4778b6cc696 100644
--- a/clang/include/clang/AST/ExprCXX.h
+++ b/clang/include/clang/AST/ExprCXX.h
@@ -86,6 +86,9 @@ public:
}
bool isAssignmentOp() const { return isAssignmentOp(getOperator()); }
+ /// \brief Is this written as an infix binary operator?
+ bool isInfixBinaryOp() const;
+
/// \brief Returns the location of the operator symbol in the expression.
///
/// When \c getOperator()==OO_Call, this is the location of the right
OpenPOWER on IntegriCloud