[cfe-commits] r116413 - in /cfe/trunk: include/clang/AST/Type.h lib/AST/Type.cpp lib/Sema/SemaTemplate.cpp
Douglas Gregor
dgregor at apple.com
Wed Oct 13 13:09:29 PDT 2010
On Oct 13, 2010, at 12:32 PM, John McCall wrote:
>
> On Oct 13, 2010, at 11:05 AM, Douglas Gregor wrote:
>
>> Author: dgregor
>> Date: Wed Oct 13 13:05:20 2010
>> New Revision: 116413
>>
>> URL: http://llvm.org/viewvc/llvm-project?rev=116413&view=rev
>> Log:
>> Introduce a bit into Type that keeps track of whether there are any
>> unnamed or local types within that type. This bit is cached along with
>> the linkage of a type, so that it can be recomputed (e.g., when we see
>> that a typedef has given a name to an anonymous declaration).
>>
>> Use this bit when checking C++03 [temp.arg.type]p2, so that we don't
>> walk template argument types repeatedly.
>
> This looks awesome to me, but please update Type::BitsRemainingInType
> and check the users of that to make sure we're not bit-starving anything.
Ah, thanks. r116423.
- Doug
More information about the cfe-commits
mailing list