Re: [cfe-users] How to check whether a type is_copy_assignable?

2020-02-20 Thread Weston Carvalho via cfe-users
Richard, Thanks for your response! I'm currently getting all the CXXRecordDecls using the ASTMatchFinfer. AFAICT, I can't access Sema since the MatchFinder is an ASTConsumer instead of a SemaConsumer. I guess I can make my own MatchFinderWithSema; do you know of a better way? Also, is_copy_assig

Re: [cfe-users] cfe-users Digest, Vol 85, Issue 8

2020-02-20 Thread Robert Ankeney via cfe-users
David - thanks for your suggestions, but no luck here. I had hoped for something like a isTemplateTypeParam() function in QualType, but no such luck. In many cases, if I do a getCanonicalType().getAsString() I get a "type-parameter-0-0" as a result. Though not always. I don't even always see "Type"

Re: [cfe-users] How to determine if variable is templated?

2020-02-20 Thread David Blaikie via cfe-users
I don't understand - you'll need to be more specific. (anything that's "this doesn't /always/ happen" sounds like there's a /lot/ going on that's not specified in your question... compilers in general and clang in particular are /very/ deterministic, so they do do the same thing every time - so if

Re: [cfe-users] How to check whether a type is_copy_assignable?

2020-02-20 Thread Richard Smith via cfe-users
On Thu, 20 Feb 2020 at 09:33, Weston Carvalho wrote: > Richard, > > Thanks for your response! > > I'm currently getting all the CXXRecordDecls using the ASTMatchFinfer. > AFAICT, I can't access Sema since the MatchFinder is an ASTConsumer instead > of a SemaConsumer. I guess I can make my own Mat