<?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 elaborated-type-specifier.cpp</title>
    <description></description>
    <language>en</language>
    <copyright>Copyright 2015</copyright>
    <generator>Java</generator><item>
        <title>888673b6 - Revert &quot;[clang] Implement ElaboratedType sugaring for types written bare&quot;</title>
        <link>http://172.16.0.5:8080/history/llvm-project-15.0.7/clang/test/SemaCXX/elaborated-type-specifier.cpp#888673b6</link>
        <description>Revert &quot;[clang] Implement ElaboratedType sugaring for types written bare&quot;This reverts commit 7c51f02effdbd0d5e12bfd26f9c3b2ab5687c93f because itstills breaks the LLDB tests. This was  re-landed without addressing theissue or even agreement on how to address the issue. More details anddiscussion in https://reviews.llvm.org/D112374.

            List of files:
            /llvm-project-15.0.7/clang/test/SemaCXX/elaborated-type-specifier.cpp</description>
        <pubDate>Fri, 15 Jul 2022 04:13:57 +0000</pubDate>
        <dc:creator>Jonas Devlieghere &lt;jonas@devlieghere.com&gt;</dc:creator>
    </item>
<item>
        <title>7c51f02e - [clang] Implement ElaboratedType sugaring for types written bare</title>
        <link>http://172.16.0.5:8080/history/llvm-project-15.0.7/clang/test/SemaCXX/elaborated-type-specifier.cpp#7c51f02e</link>
        <description>[clang] Implement ElaboratedType sugaring for types written bareWithout this patch, clang will not wrap in an ElaboratedType node types writtenwithout a keyword and nested name qualifier, which goes against the intent thatwe should produce an AST which retains enough details to recover how things arewritten.The lack of this sugar is incompatible with the intent of the type printerdefault policy, which is to print types as written, but to fall back and printthem fully qualified when they are desugared.An ElaboratedTypeLoc without keyword / NNS uses no storage by itself, but stillrequires pointer alignment due to pre-existing bug in the TypeLoc bufferhandling.---Troubleshooting list to deal with any breakage seen with this patch:1) The most likely effect one would see by this patch is a change in how   a type is printed. The type printer will, by design and default,   print types as written. There are customization options there, but   not that many, and they mainly apply to how to print a type that we   somehow failed to track how it was written. This patch fixes a   problem where we failed to distinguish between a type   that was written without any elaborated-type qualifiers,   such as a &apos;struct&apos;/&apos;class&apos; tags and name spacifiers such as &apos;std::&apos;,   and one that has been stripped of any &apos;metadata&apos; that identifies such,   the so called canonical types.   Example:   ```   namespace foo {     struct A {};     A a;   };   ```   If one were to print the type of `foo::a`, prior to this patch, this   would result in `foo::A`. This is how the type printer would have,   by default, printed the canonical type of A as well.   As soon as you add any name qualifiers to A, the type printer would   suddenly start accurately printing the type as written. This patch   will make it print it accurately even when written without   qualifiers, so we will just print `A` for the initial example, as   the user did not really write that `foo::` namespace qualifier.2) This patch could expose a bug in some AST matcher. Matching types   is harder to get right when there is sugar involved. For example,   if you want to match a type against being a pointer to some type A,   then you have to account for getting a type that is sugar for a   pointer to A, or being a pointer to sugar to A, or both! Usually   you would get the second part wrong, and this would work for a   very simple test where you don&apos;t use any name qualifiers, but   you would discover is broken when you do. The usual fix is to   either use the matcher which strips sugar, which is annoying   to use as for example if you match an N level pointer, you have   to put N+1 such matchers in there, beginning to end and between   all those levels. But in a lot of cases, if the property you want   to match is present in the canonical type, it&apos;s easier and faster   to just match on that... This goes with what is said in 1), if   you want to match against the name of a type, and you want   the name string to be something stable, perhaps matching on   the name of the canonical type is the better choice.3) This patch could exposed a bug in how you get the source range of some   TypeLoc. For some reason, a lot of code is using getLocalSourceRange(),   which only looks at the given TypeLoc node. This patch introduces a new,   and more common TypeLoc node which contains no source locations on itself.   This is not an inovation here, and some other, more rare TypeLoc nodes could   also have this property, but if you use getLocalSourceRange on them, it&apos;s not   going to return any valid locations, because it doesn&apos;t have any. The right fix   here is to always use getSourceRange() or getBeginLoc/getEndLoc which will dive   into the inner TypeLoc to get the source range if it doesn&apos;t find it on the   top level one. You can use getLocalSourceRange if you are really into   micro-optimizations and you have some outside knowledge that the TypeLocs you are   dealing with will always include some source location.4) Exposed a bug somewhere in the use of the normal clang type class API, where you   have some type, you want to see if that type is some particular kind, you try a   `dyn_cast` such as `dyn_cast&lt;TypedefType&gt;` and that fails because now you have an   ElaboratedType which has a TypeDefType inside of it, which is what you wanted to match.   Again, like 2), this would usually have been tested poorly with some simple tests with   no qualifications, and would have been broken had there been any other kind of type sugar,   be it an ElaboratedType or a TemplateSpecializationType or a SubstTemplateParmType.   The usual fix here is to use `getAs` instead of `dyn_cast`, which will look deeper   into the type. Or use `getAsAdjusted` when dealing with TypeLocs.   For some reason the API is inconsistent there and on TypeLocs getAs behaves like a dyn_cast.5) It could be a bug in this patch perhaps.Let me know if you need any help!Signed-off-by: Matheus Izvekov &lt;mizvekov@gmail.com&gt;Differential Revision: https://reviews.llvm.org/D112374

            List of files:
            /llvm-project-15.0.7/clang/test/SemaCXX/elaborated-type-specifier.cpp</description>
        <pubDate>Mon, 11 Oct 2021 16:15:36 +0000</pubDate>
        <dc:creator>Matheus Izvekov &lt;mizvekov@gmail.com&gt;</dc:creator>
    </item>
<item>
        <title>3968936b - Revert &quot;[clang] Implement ElaboratedType sugaring for types written bare&quot;</title>
        <link>http://172.16.0.5:8080/history/llvm-project-15.0.7/clang/test/SemaCXX/elaborated-type-specifier.cpp#3968936b</link>
        <description>Revert &quot;[clang] Implement ElaboratedType sugaring for types written bare&quot;This reverts commit bdc6974f92304f4ed542241b9b89ba58ba6b20aa because itbreaks all the LLDB tests that import the std module.  import-std-module/array.TestArrayFromStdModule.py  import-std-module/deque-basic.TestDequeFromStdModule.py  import-std-module/deque-dbg-info-content.TestDbgInfoContentDequeFromStdModule.py  import-std-module/forward_list.TestForwardListFromStdModule.py  import-std-module/forward_list-dbg-info-content.TestDbgInfoContentForwardListFromStdModule.py  import-std-module/list.TestListFromStdModule.py  import-std-module/list-dbg-info-content.TestDbgInfoContentListFromStdModule.py  import-std-module/queue.TestQueueFromStdModule.py  import-std-module/stack.TestStackFromStdModule.py  import-std-module/vector.TestVectorFromStdModule.py  import-std-module/vector-bool.TestVectorBoolFromStdModule.py  import-std-module/vector-dbg-info-content.TestDbgInfoContentVectorFromStdModule.py  import-std-module/vector-of-vectors.TestVectorOfVectorsFromStdModule.pyhttps://green.lab.llvm.org/green/view/LLDB/job/lldb-cmake/45301/

            List of files:
            /llvm-project-15.0.7/clang/test/SemaCXX/elaborated-type-specifier.cpp</description>
        <pubDate>Wed, 13 Jul 2022 16:11:45 +0000</pubDate>
        <dc:creator>Jonas Devlieghere &lt;jonas@devlieghere.com&gt;</dc:creator>
    </item>
<item>
        <title>bdc6974f - [clang] Implement ElaboratedType sugaring for types written bare</title>
        <link>http://172.16.0.5:8080/history/llvm-project-15.0.7/clang/test/SemaCXX/elaborated-type-specifier.cpp#bdc6974f</link>
        <description>[clang] Implement ElaboratedType sugaring for types written bareWithout this patch, clang will not wrap in an ElaboratedType node types writtenwithout a keyword and nested name qualifier, which goes against the intent thatwe should produce an AST which retains enough details to recover how things arewritten.The lack of this sugar is incompatible with the intent of the type printerdefault policy, which is to print types as written, but to fall back and printthem fully qualified when they are desugared.An ElaboratedTypeLoc without keyword / NNS uses no storage by itself, but stillrequires pointer alignment due to pre-existing bug in the TypeLoc bufferhandling.Signed-off-by: Matheus Izvekov &lt;mizvekov@gmail.com&gt;Differential Revision: https://reviews.llvm.org/D112374

            List of files:
            /llvm-project-15.0.7/clang/test/SemaCXX/elaborated-type-specifier.cpp</description>
        <pubDate>Mon, 11 Oct 2021 16:15:36 +0000</pubDate>
        <dc:creator>Matheus Izvekov &lt;mizvekov@gmail.com&gt;</dc:creator>
    </item>
<item>
        <title>82057e3f - clang: Fix minor grammar-o in diag added in c354b2e3b</title>
        <link>http://172.16.0.5:8080/history/llvm-project-15.0.7/clang/test/SemaCXX/elaborated-type-specifier.cpp#82057e3f</link>
        <description>clang: Fix minor grammar-o in diag added in c354b2e3b

            List of files:
            /llvm-project-15.0.7/clang/test/SemaCXX/elaborated-type-specifier.cpp</description>
        <pubDate>Thu, 13 Aug 2020 14:06:27 +0000</pubDate>
        <dc:creator>Nico Weber &lt;thakis@chromium.org&gt;</dc:creator>
    </item>
<item>
        <title>c354b2e3 - [Clang] Add note for bad conversion when expression is pointer to forward-declared type</title>
        <link>http://172.16.0.5:8080/history/llvm-project-15.0.7/clang/test/SemaCXX/elaborated-type-specifier.cpp#c354b2e3</link>
        <description>[Clang] Add note for bad conversion when expression is pointer to forward-declared typeDifferential Revision: https://reviews.llvm.org/D85390

            List of files:
            /llvm-project-15.0.7/clang/test/SemaCXX/elaborated-type-specifier.cpp</description>
        <pubDate>Wed, 05 Aug 2020 18:48:36 +0000</pubDate>
        <dc:creator>Zequan Wu &lt;zequanwu@google.com&gt;</dc:creator>
    </item>
<item>
        <title>56f45356 - Test what happens when tag lookup and redeclaration lookup disagree</title>
        <link>http://172.16.0.5:8080/history/llvm-project-15.0.7/clang/test/SemaCXX/elaborated-type-specifier.cpp#56f45356</link>
        <description>Test what happens when tag lookup and redeclaration lookup disagreeClang has a diagnostic for the what happens when an elaborated typeimplicitly creates a tag declaration and the initial tag lookup fails,but the redeclaration lookup succeeds and finds a non-tag type. However,it wasn&apos;t tested, and looked like dead code. After much staring, wediscovered how to exercise it, and are now committing the test forposterity.In this example, the tag lookup will not find A, but then when we go toinsert a declaration of A at global scope, we discover the templatefriend, which is not a tag type.  struct C {    template &lt;typename&gt; friend struct A;  };  struct B {    struct A *p;  };llvm-svn: 283235

            List of files:
            /llvm-project-15.0.7/clang/test/SemaCXX/elaborated-type-specifier.cpp</description>
        <pubDate>Tue, 04 Oct 2016 18:10:23 +0000</pubDate>
        <dc:creator>Reid Kleckner &lt;rnk@google.com&gt;</dc:creator>
    </item>
<item>
        <title>a16fc892 - When we generate a redeclaration for an</title>
        <link>http://172.16.0.5:8080/history/llvm-project-15.0.7/clang/test/SemaCXX/elaborated-type-specifier.cpp#a16fc892</link>
        <description>When we generate a redeclaration for anelaborated-type-specifier, place it in the correctcontext.llvm-svn: 208799

            List of files:
            /llvm-project-15.0.7/clang/test/SemaCXX/elaborated-type-specifier.cpp</description>
        <pubDate>Wed, 14 May 2014 18:31:48 +0000</pubDate>
        <dc:creator>John McCall &lt;rjmccall@apple.com&gt;</dc:creator>
    </item>
<item>
        <title>493ea635 - Allow CorrectTypo to add/modify nested name qualifiers to typos that</title>
        <link>http://172.16.0.5:8080/history/llvm-project-15.0.7/clang/test/SemaCXX/elaborated-type-specifier.cpp#493ea635</link>
        <description>Allow CorrectTypo to add/modify nested name qualifiers to typos thatare otherwise too short to try to correct.The TODOs added to two of the tests are for existing deficiencies in thetypo correction code that could be exposed by using longer identifiers.llvm-svn: 158109

            List of files:
            /llvm-project-15.0.7/clang/test/SemaCXX/elaborated-type-specifier.cpp</description>
        <pubDate>Wed, 06 Jun 2012 20:54:51 +0000</pubDate>
        <dc:creator>Kaelyn Uhrain &lt;rikka@google.com&gt;</dc:creator>
    </item>
<item>
        <title>29d907de - When we run into an error parsing or type-checking the left-hand side</title>
        <link>http://172.16.0.5:8080/history/llvm-project-15.0.7/clang/test/SemaCXX/elaborated-type-specifier.cpp#29d907de</link>
        <description>When we run into an error parsing or type-checking the left-hand sideof a binary expression, continue on and parse the right-hand side ofthe binary expression anyway, but don&apos;t call the semantic actions totype-check. Previously, we would see the error and then, effectively,skip tokens until the end of the statement. The result should be more useful recovery, both in the normal case(we&apos;ll actually see errors beyond the first one in a statement), butit also helps code completion do a much better job, because we do&quot;real&quot; code completion on the right-hand side of an invalid binaryexpression rather than completing with the recovery completion. Forexample, given  x = p-&gt;yif there is no variable named &quot;x&quot;, we can still complete after the p-&gt;as a member expression. Along the recovery path, we would havecompleted after the &quot;-&gt;&quot; as if we were in an expression context, whichis mostly useless.llvm-svn: 114225

            List of files:
            /llvm-project-15.0.7/clang/test/SemaCXX/elaborated-type-specifier.cpp</description>
        <pubDate>Fri, 17 Sep 2010 22:25:06 +0000</pubDate>
        <dc:creator>Douglas Gregor &lt;dgregor@apple.com&gt;</dc:creator>
    </item>
<item>
        <title>4f4946aa - Whenever we complain about a failed initialization of a function or</title>
        <link>http://172.16.0.5:8080/history/llvm-project-15.0.7/clang/test/SemaCXX/elaborated-type-specifier.cpp#4f4946aa</link>
        <description>Whenever we complain about a failed initialization of a function ormethod parameter, provide a note pointing at the parameter itself sothe user does not have to manually look for the function/method beingcalled and match up parameters to arguments. For example, we now get:t.c:4:5: warning: incompatible pointer types passing &apos;long *&apos; toparameter of      type &apos;int *&apos; [-pedantic]  f(long_ptr);    ^~~~~~~~t.c:1:13: note: passing argument to parameter &apos;x&apos; herevoid f(int *x);            ^llvm-svn: 102038

            List of files:
            /llvm-project-15.0.7/clang/test/SemaCXX/elaborated-type-specifier.cpp</description>
        <pubDate>Thu, 22 Apr 2010 00:20:18 +0000</pubDate>
        <dc:creator>Douglas Gregor &lt;dgregor@apple.com&gt;</dc:creator>
    </item>
<item>
        <title>85f90559 - When pretty-printing tag types, only print the tag if we&apos;re in C (and</title>
        <link>http://172.16.0.5:8080/history/llvm-project-15.0.7/clang/test/SemaCXX/elaborated-type-specifier.cpp#85f90559</link>
        <description>When pretty-printing tag types, only print the tag if we&apos;re in C (andtherefore not creating ElaboratedTypes, which are still pretty-printedwith the written tag).Most of these testcase changes were done by script, so don&apos;t feel toosorry for my fingers.llvm-svn: 98149

            List of files:
            /llvm-project-15.0.7/clang/test/SemaCXX/elaborated-type-specifier.cpp</description>
        <pubDate>Wed, 10 Mar 2010 11:27:22 +0000</pubDate>
        <dc:creator>John McCall &lt;rjmccall@apple.com&gt;</dc:creator>
    </item>
<item>
        <title>96596c98 - Switch initialization of parameters in a call over to</title>
        <link>http://172.16.0.5:8080/history/llvm-project-15.0.7/clang/test/SemaCXX/elaborated-type-specifier.cpp#96596c98</link>
        <description>Switch initialization of parameters in a call over toInitializationSequence (when a FunctionDecl is present). This requireda few small fixes to initialization sequences:  - Make sure to use the adjusted parameter type for initialization of  function parameters.  - Implement transparent union calling semantics in Cllvm-svn: 91902

            List of files:
            /llvm-project-15.0.7/clang/test/SemaCXX/elaborated-type-specifier.cpp</description>
        <pubDate>Tue, 22 Dec 2009 07:24:36 +0000</pubDate>
        <dc:creator>Douglas Gregor &lt;dgregor@apple.com&gt;</dc:creator>
    </item>
<item>
        <title>8fbe78f6 - Update tests to use %clang_cc1 instead of &apos;clang-cc&apos; or &apos;clang -cc1&apos;.</title>
        <link>http://172.16.0.5:8080/history/llvm-project-15.0.7/clang/test/SemaCXX/elaborated-type-specifier.cpp#8fbe78f6</link>
        <description>Update tests to use %clang_cc1 instead of &apos;clang-cc&apos; or &apos;clang -cc1&apos;. - This is designed to make it obvious that %clang_cc1 is a &quot;test variable&quot;   which is substituted. It is &apos;%clang_cc1&apos; instead of &apos;%clang -cc1&apos; because it   can be useful to redefine what gets run as &apos;clang -cc1&apos; (for example, to set   a default target).llvm-svn: 91446

            List of files:
            /llvm-project-15.0.7/clang/test/SemaCXX/elaborated-type-specifier.cpp</description>
        <pubDate>Tue, 15 Dec 2009 20:14:24 +0000</pubDate>
        <dc:creator>Daniel Dunbar &lt;daniel@zuster.org&gt;</dc:creator>
    </item>
<item>
        <title>5b07c7ec - Implement support for comparing pointers with &lt;, &gt;, &lt;=, &gt;=, ==, and !=</title>
        <link>http://172.16.0.5:8080/history/llvm-project-15.0.7/clang/test/SemaCXX/elaborated-type-specifier.cpp#5b07c7ec</link>
        <description>Implement support for comparing pointers with &lt;, &gt;, &lt;=, &gt;=, ==, and !=in C++, taking into account conversions to the &quot;composite pointertype&quot; so that we can compare, e.g., a pointer to a derived class to apointer to a base class. Also, upgrade the &quot;comparing distinct pointer types&quot; from a warning toan error for C++, since this is clearly an error. Turns out that wehadn&apos;t gone through and audited this code for C++, ever. Fixes &lt;rdar://problem/6816420&gt;.llvm-svn: 70829

            List of files:
            /llvm-project-15.0.7/clang/test/SemaCXX/elaborated-type-specifier.cpp</description>
        <pubDate>Mon, 04 May 2009 06:07:12 +0000</pubDate>
        <dc:creator>Douglas Gregor &lt;dgregor@apple.com&gt;</dc:creator>
    </item>
<item>
        <title>a45cf5b6 - Rename clang to clang-cc.</title>
        <link>http://172.16.0.5:8080/history/llvm-project-15.0.7/clang/test/SemaCXX/elaborated-type-specifier.cpp#a45cf5b6</link>
        <description>Rename clang to clang-cc.Tests and drivers updated, still need to shuffle dirs.llvm-svn: 67602

            List of files:
            /llvm-project-15.0.7/clang/test/SemaCXX/elaborated-type-specifier.cpp</description>
        <pubDate>Tue, 24 Mar 2009 02:24:46 +0000</pubDate>
        <dc:creator>Daniel Dunbar &lt;daniel@zuster.org&gt;</dc:creator>
    </item>
<item>
        <title>975e6d0c - Print the context of tag types as part of pretty-printing, e.g.,</title>
        <link>http://172.16.0.5:8080/history/llvm-project-15.0.7/clang/test/SemaCXX/elaborated-type-specifier.cpp#975e6d0c</link>
        <description>Print the context of tag types as part of pretty-printing, e.g.,  struct N::M::foollvm-svn: 67284

            List of files:
            /llvm-project-15.0.7/clang/test/SemaCXX/elaborated-type-specifier.cpp</description>
        <pubDate>Thu, 19 Mar 2009 04:25:59 +0000</pubDate>
        <dc:creator>Douglas Gregor &lt;dgregor@apple.com&gt;</dc:creator>
    </item>
<item>
        <title>658b9550 - When we see a reference to a struct, class, or union like &quot;struct X&quot;</title>
        <link>http://172.16.0.5:8080/history/llvm-project-15.0.7/clang/test/SemaCXX/elaborated-type-specifier.cpp#658b9550</link>
        <description>When we see a reference to a struct, class, or union like &quot;struct X&quot;that is neither a definition nor a forward declaration and where X hasnot yet been declared as a tag, introduce a declarationinto the appropriate scope (which is likely *not* to be the currentscope). The rules for the placement of the declaration differ slightlyin C and C++, so we implement both and test the various cornercases. This implementation isn&apos;t 100% correct due to some lingeringissues with the function prototype scope (for a function parameterlist) not being the same scope as the scope of the functiondefinition. Testcase is FIXME&apos;d; this probably isn&apos;t an important issue.Addresses &lt;rdar://problem/6484805&gt;.llvm-svn: 62014

            List of files:
            /llvm-project-15.0.7/clang/test/SemaCXX/elaborated-type-specifier.cpp</description>
        <pubDate>Fri, 09 Jan 2009 22:42:13 +0000</pubDate>
        <dc:creator>Douglas Gregor &lt;dgregor@apple.com&gt;</dc:creator>
    </item>
</channel>
</rss>
