[PATCH] D37200: [AST] Traverse CXXOperatorCallExpr in LexicallyOrderedRecursiveASTVisitor

Johannes Altmanninger via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sun Aug 27 15:57:39 PDT 2017


johannes created this revision.
Herald added a subscriber: klimek.

This affects overloaded operators, which are represented by a
CXXOperatorCallExpr whose first child is always a DeclRefExpr referring to the
operator. For infix, postfix and call operators we want the first argument
to be traversed before the operator.


https://reviews.llvm.org/D37200

Files:
  include/clang/AST/LexicallyOrderedRecursiveASTVisitor.h
  include/clang/AST/RecursiveASTVisitor.h
  unittests/Tooling/LexicallyOrderedRecursiveASTVisitorTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D37200.112843.patch
Type: text/x-patch
Size: 6911 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170827/8ee74561/attachment-0001.bin>


More information about the cfe-commits mailing list