Page MenuHomePhabricator

[ASTMatchers] Add isAssignmentOperator matcher
ClosedPublic

Authored by szepet on Mar 26 2018, 3:27 AM.

Details

Summary

Adding a matcher for BinaryOperator and cxxOperatorCallExpr to be able to decide whether it is any kind of assignment operator or not. This would be useful since allows us to easily detect assignments via matchers for static analysis (Tidy, SA) purposes.

Diff Detail

Repository
rC Clang

Event Timeline

szepet created this revision.Mar 26 2018, 3:27 AM
This revision is now accepted and ready to land.Mar 26 2018, 8:56 AM
NoQ added a subscriber: NoQ.Mar 26 2018, 1:16 PM
This revision was automatically updated to reflect the committed changes.