<div>What about if I want to include implicitly defined constructor and destructor with other user-defined method for a class that is defined in the source? Like I don't want to have ios_base constructor but I want Employee constructor that is either implicitly or explicitly defined because the class is user-defined.</div><br><br><div><signature id="local-530a8c7c-1bd1"><table cellpadding="0" cellspacing="0"><tbody><tr><td style="vertical-align:top;width:1px"></td><td><div><strong>Mustakimur Rahman Khandaker</strong></div><div>Graduate Research Assistant<br>Department of Computer Science<br>Florida State University</div></td></tr><tr><td colspan="2"><div style="font-size:0.9em;border-top:1px dashed gray;min-width:250px;max-width:400px;margin-top:10px;padding-top:4px"><div><a style="margin-right:8px" href="https://link.getmailspring.com/link/1528984836.local-a442f1ab-2f19-v1.2.2-96fb3a99@getmailspring.com/0?redirect=mailto%3Amustakcsecuet%40gmail.com&recipient=Y2ZlLWRldkBsaXN0cy5sbHZtLm9yZw%3D%3D">mrk15e@my.fsu.edu</a></div><div><a style="margin-right:8px" href="https://link.getmailspring.com/link/1528984836.local-a442f1ab-2f19-v1.2.2-96fb3a99@getmailspring.com/1?redirect=http%3A%2F%2Fwww.dreamlandcoder.com%2F&recipient=Y2ZlLWRldkBsaXN0cy5sbHZtLm9yZw%3D%3D">http://www.dreamlandcoder.com/</a></div><div></div></div></td></tr></tbody></table></signature></div><div class="gmail_quote_attribution">On Jun 14 2018, at 9:58 am, paul.robinson@sony.com wrote:</div><blockquote><br><div><div> </div><div><div><span style="color:rgb(31, 73, 125)"><font style="font-size:11pt"><font style="font-family:Calibri, sans-serif">You probably want the `isUserProvided()` predicate, which is false for things like implicitly defined constructors and destructors.</font></font></span></div><br><div><span style="color:rgb(31, 73, 125)"><font style="font-size:11pt"><font style="font-family:Calibri, sans-serif">--paulr</font></font></span></div><br><div><a><span style="color:rgb(31, 73, 125)"><font style="font-size:11pt"><font style="font-family:Calibri, sans-serif"> </font></font></span></a></div><br><div><div><div><div><div><strong><font style="font-size:10pt"><font style="font-family:Tahoma, sans-serif">From:</font></font></strong><font style="font-size:10pt"><font style="font-family:Tahoma, sans-serif"> cfe-dev [mailto:cfe-dev-bounces@lists.llvm.org] </font></font><font style="font-size:10pt"><font style="font-family:Tahoma, sans-serif"><strong>On Behalf Of </strong></font></font><font style="font-size:10pt"><font style="font-family:Tahoma, sans-serif">Mustakimur Rahman Khandaker via cfe-dev</font></font></div><div><font style="font-size:10pt"><font style="font-family:Tahoma, sans-serif"><strong>Sent:</strong></font></font><font style="font-size:10pt"><font style="font-family:Tahoma, sans-serif"> Thursday, June 14, 2018 9:36 AM</font></font></div><div><font style="font-size:10pt"><font style="font-family:Tahoma, sans-serif"><strong>To:</strong></font></font><font style="font-size:10pt"><font style="font-family:Tahoma, sans-serif"> cfe-dev@lists.llvm.org</font></font></div><div><font style="font-size:10pt"><font style="font-family:Tahoma, sans-serif"><strong>Subject:</strong></font></font><font style="font-size:10pt"><font style="font-family:Tahoma, sans-serif"> [cfe-dev] Best way to know if a method declaration is defined in the source</font></font></div></div></div></div><div> </div><br><div><div>Hi</div></div><div> </div><br><div><div>I am working on clang codegen module and I would like to know how anyone can identify a <span style="color:rgb(51, 51, 51)"><font style="font-family:"Courier New"">CXXMethodDecl</font></span> is defined in the compiled source. In the codegen, I have encountered number of methods thats are not part of my test source code, so if I try to modify them in codegen, they have broken down. Is there any flag or other way using sourcelocation to discard those method declaration from modification.</div></div><div> </div><br><div><div><table border="0" cellspacing="0" cellpadding="0" style="border-collapse: separate; border-color: gray;"><tbody style="display: table-row-group; vertical-align: middle; border-color: inherit;"><tr style="display: table-row; vertical-align: inherit; border-color: inherit;"><td width="1" valign="top" style="display: table-cell; vertical-align: inherit; width: .75pt; padding: 0in 0in 0in 0in;"></td><td style="display: table-cell; vertical-align: inherit; padding: 0in 0in 0in 0in;"><div style="display: block;"><p style="display: block; -webkit-margin-before: 1__qem; -webkit-margin-after: 1__qem; -webkit-margin-start: 0; -webkit-margin-end: 0;"><strong style="font-weight: bold;">Mustakimur Rahman Khandaker</strong><span></span></p></div><div style="display: block;"><p style="display: block; -webkit-margin-before: 1__qem; -webkit-margin-after: 1__qem; -webkit-margin-start: 0; -webkit-margin-end: 0;">Graduate Research Assistant<br>Department of Computer Science<br>Florida State University<span></span></p></div></td></tr><tr style="display: table-row; vertical-align: inherit; border-color: inherit;"><td colspan="2" style="display: table-cell; vertical-align: inherit; padding: 0in 0in 0in 0in;"><div style="display: block; border: none; border-top: dashed gray 1.0pt; padding: 3.0pt 0in 0in 0in; margin-top: 7.5pt; min-width: 250px; max-width: 400px;"><div style="display: block;"><p style="display: block; -webkit-margin-before: 1__qem; -webkit-margin-after: 1__qem; -webkit-margin-start: 0; -webkit-margin-end: 0;"><span style="font-size:11.0pt"><a href="https://link.getmailspring.com/link/1528984836.local-a442f1ab-2f19-v1.2.2-96fb3a99@getmailspring.com/2?redirect=https%3A%2F%2Flink.getmailspring.com%2Flink%2F1528982998.local-dae38628-7a1f-v1.2.2-96fb3a99%40getmailspring.com%2F0%3Fredirect%3Dmailto%253Amustakcsecuet%2540gmail.com%26recipient%3DY2ZlLWRldkBsaXN0cy5sbHZtLm9yZw%253D%253D&recipient=Y2ZlLWRldkBsaXN0cy5sbHZtLm9yZw%3D%3D">mrk15e@my.fsu.edu</a><span></span></span></p></div><div style="display: block;"><p style="display: block; -webkit-margin-before: 1__qem; -webkit-margin-after: 1__qem; -webkit-margin-start: 0; -webkit-margin-end: 0;"><span style="font-size:11.0pt"><a href="https://link.getmailspring.com/link/1528984836.local-a442f1ab-2f19-v1.2.2-96fb3a99@getmailspring.com/3?redirect=https%3A%2F%2Flink.getmailspring.com%2Flink%2F1528982998.local-dae38628-7a1f-v1.2.2-96fb3a99%40getmailspring.com%2F1%3Fredirect%3Dhttp%253A%252F%252Fwww.dreamlandcoder.com%252F%26recipient%3DY2ZlLWRldkBsaXN0cy5sbHZtLm9yZw%253D%253D&recipient=Y2ZlLWRldkBsaXN0cy5sbHZtLm9yZw%3D%3D">http://www.dreamlandcoder.com/</a><span></span></span></p></div></div></td></tr></tbody></table></div></div><div><div><img border="0" id="_x0000_i1025" src="https://link.getmailspring.com/open/1528982998.local-dae38628-7a1f-v1.2.2-96fb3a99@getmailspring.com?recipient=Y2ZlLWRldkBsaXN0cy5sbHZtLm9yZw%3D%3D" alt="Open Tracking"></div></div></div></div></div></blockquote><img class="mailspring-open" alt="Open Tracking" width="0" height="0" style="border:0; width:0; height:0;" src="https://link.getmailspring.com/open/1528984836.local-a442f1ab-2f19-v1.2.2-96fb3a99@getmailspring.com?recipient=Y2ZlLWRldkBsaXN0cy5sbHZtLm9yZw%3D%3D">