]> granicus.if.org Git - clang/commit
Support "<p>" as a short-hand for "id<p>". Here's a comment from GCC (the only docume...
authorSteve Naroff <snaroff@apple.com>
Thu, 5 Jun 2008 00:02:44 +0000 (00:02 +0000)
committerSteve Naroff <snaroff@apple.com>
Thu, 5 Jun 2008 00:02:44 +0000 (00:02 +0000)
commitd3ded1ffacf1a47ffae151e10c7f74b19c2ef57d
treea72bae6523a5462d55f53cb5a26f47355f6fa446
parentcb28be6e82809f9f514585ac2692fa04bb56978a
Support "<p>" as a short-hand for "id<p>". Here's a comment from GCC (the only documentation I could find on it).

/* Make "<SomeProtocol>" equivalent to "id <SomeProtocol>" - nisse@lysator.liu.se.  */

This commit adds the parser magic. The type associated with <p> is still incorrect. Will discuss with Chris.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@51972 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Parse/ParseDecl.cpp
test/Sema/bogus-gcc-protocol-extension.m [new file with mode: 0644]