<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="/rss.xsl.xml"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
    <title>Changes in warn-large-by-value-copy.cpp</title>
    <description></description>
    <language>en</language>
    <copyright>Copyright 2015</copyright>
    <generator>Java</generator><item>
        <title>eb10b065 - [clang] Pass the NamedDecl* instead of the DeclarationName into many diagnostics.</title>
        <link>http://172.16.0.5:8080/history/llvm-project-15.0.7/clang/test/SemaCXX/warn-large-by-value-copy.cpp#eb10b065</link>
        <description>[clang] Pass the NamedDecl* instead of the DeclarationName into many diagnostics.Background:-----------There are two related argument types which can be sent into a diagnostic todisplay the name of an entity: DeclarationName (ak_declarationname) orNamedDecl* (ak_nameddecl) (there is also ak_identifierinfo forIdentifierInfo*, but we are not concerned with it here).A DeclarationName in a diagnostic will just be streamed to the output,which will directly result in a call to DeclarationName::print.A NamedDecl* in a diagnostic will also ultimately result in a call toDeclarationName::print, but with two customisation points along the way:The first customisation point is NamedDecl::getNameForDiagnostic which isoverloaded by FunctionDecl, ClassTemplateSpecializationDecl andVarTemplateSpecializationDecl to print the template arguments, if any.The second customisation point is NamedDecl::printName. By default it juststreams the stored DeclarationName into the output but it can be customisedto provide a user-friendly name for an entity. It is currently overloaded byDecompositionDecl and MSGuidDecl.What this patch does:---------------------For many diagnostics a DeclarationName is used instead of the NamedDecl*.This bypasses the two customisation points mentioned above. This patches fixthis for diagnostics in Sema.cpp, SemaCast.cpp, SemaChecking.cpp, SemaDecl.cpp,SemaDeclAttr.cpp, SemaDecl.cpp, SemaOverload.cpp and SemaStmt.cpp.I have only modified diagnostics where I could construct a test-case whichdemonstrates that the change is appropriate (either with this patch or the nextone).Reviewed By: erichkeane, aaron.ballmanDifferential Revision: https://reviews.llvm.org/D84656

            List of files:
            /llvm-project-15.0.7/clang/test/SemaCXX/warn-large-by-value-copy.cpp</description>
        <pubDate>Mon, 27 Jul 2020 22:22:21 +0000</pubDate>
        <dc:creator>Bruno Ricci &lt;riccibrun@gmail.com&gt;</dc:creator>
    </item>
<item>
        <title>7f21bd74 - Don&apos;t crash with -Wlarge-by-value-copy and a dependent type.  PR11726.</title>
        <link>http://172.16.0.5:8080/history/llvm-project-15.0.7/clang/test/SemaCXX/warn-large-by-value-copy.cpp#7f21bd74</link>
        <description>Don&apos;t crash with -Wlarge-by-value-copy and a dependent type.  PR11726.llvm-svn: 147812

            List of files:
            /llvm-project-15.0.7/clang/test/SemaCXX/warn-large-by-value-copy.cpp</description>
        <pubDate>Mon, 09 Jan 2012 23:46:59 +0000</pubDate>
        <dc:creator>Eli Friedman &lt;eli.friedman@gmail.com&gt;</dc:creator>
    </item>
<item>
        <title>ef6c8da5 - -Rename -Wargument-larger-than -&gt; -Wlarge-by-value-copy</title>
        <link>http://172.16.0.5:8080/history/llvm-project-15.0.7/clang/test/SemaCXX/warn-large-by-value-copy.cpp#ef6c8da5</link>
        <description>-Rename -Wargument-larger-than -&gt; -Wlarge-by-value-copy-Improve the diagnostic message-Add some commentsSuggestions by Chris.llvm-svn: 119594

            List of files:
            /llvm-project-15.0.7/clang/test/SemaCXX/warn-large-by-value-copy.cpp</description>
        <pubDate>Thu, 18 Nov 2010 00:20:36 +0000</pubDate>
        <dc:creator>Argyrios Kyrtzidis &lt;akyrtzi@gmail.com&gt;</dc:creator>
    </item>
</channel>
</rss>
