isImplicit is currently for CXXConstructorDecls only, but there are other Decls that can be implicit.
I tried to write a small test, but if there is a better test let me know.
Differential D3775
[ASTMatchers] Allow isImplicit on all Decls. joey on May 15 2014, 1:16 AM. Authored by
Details
Diff Detail Event Timeline
Comment Actions LGTM The only comment I would make is that in principle the compiler could change the assumption you are making in the test case about the implicit assignment operator. But (1) that observation is equally true of the other test cases (2) it would be easy to fix, say by taking a member pointer reference to the assignment operator. |
This comment does not match what you are testing for.