diff options
author | Aaron Ballman <aaron@aaronballman.com> | 2016-01-23 17:49:18 +0000 |
---|---|---|
committer | Aaron Ballman <aaron@aaronballman.com> | 2016-01-23 17:49:18 +0000 |
commit | a681151ebd6fd1a3c561edfad83b1f3118a1ee3f (patch) | |
tree | b0118177acfc401bf1297e6bff00894794bcea9b /clang/docs/LibASTMatchersReference.html | |
parent | 1235d280d82e5fb0eb7033b4a2eafc8b7b52ceb0 (diff) | |
download | bcm5719-llvm-a681151ebd6fd1a3c561edfad83b1f3118a1ee3f.tar.gz bcm5719-llvm-a681151ebd6fd1a3c561edfad83b1f3118a1ee3f.zip |
Improving documentation for the isMoveAssignmentOperator AST matcher.
Patch by Jonathan Coe.
llvm-svn: 258628
Diffstat (limited to 'clang/docs/LibASTMatchersReference.html')
-rw-r--r-- | clang/docs/LibASTMatchersReference.html | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/clang/docs/LibASTMatchersReference.html b/clang/docs/LibASTMatchersReference.html index 2bb6915e92d..75deea40e13 100644 --- a/clang/docs/LibASTMatchersReference.html +++ b/clang/docs/LibASTMatchersReference.html @@ -1820,11 +1820,13 @@ matches A and C::f, but not B, C, or B::f operator. Given - struct S { - S(const S &); #1 - S& operator=(S &&); #2 - }; -cxxMethodDecl(isMoveAssignmentOperator()) will match #2, but not #1. +struct A { + A &operator=(const A &); + A &operator=(A &&); +}; + +cxxMethodDecl(isMoveAssignmentOperator()) matches the second method but not +the first one. </pre></td></tr> |