]> granicus.if.org Git - clang/commit
Refinements to Sema::GetObjcIdType()...
authorSteve Naroff <snaroff@apple.com>
Wed, 10 Oct 2007 23:24:43 +0000 (23:24 +0000)
committerSteve Naroff <snaroff@apple.com>
Wed, 10 Oct 2007 23:24:43 +0000 (23:24 +0000)
commite21b573bbfa7f53de694b81455d0627b7a3b6554
tree956ee03510e27ea792cd8964ac3b9fe952f09ef8
parent98f19b69c920a35064cccddac1c6c66bfaa1e0f4
Refinements to Sema::GetObjcIdType()...

- Cache the typedef, not the type (avoids importing AST/Type.h).
- Emit an error if "id" cannot be found.
- Comment the routine and add a FIXME to reconsider how we emulate GCC's new fangled behavior. This isn't a priority for now, since almost no code depends on having "id" built-in.
- Add a test.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@42845 91177308-0d34-0410-b5e6-96231b3b80d8
Sema/Sema.cpp
Sema/Sema.h
Sema/SemaDecl.cpp
clang.xcodeproj/project.pbxproj
include/clang/Basic/DiagnosticKinds.def
test/Sema/id_not_builtin.m [new file with mode: 0644]