diff options
author | Chris Lattner <sabre@nondot.org> | 2008-07-21 22:17:28 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-07-21 22:17:28 +0000 |
commit | d7352d6801f3bae265c75e9d2d9d2eba3d1c802d (patch) | |
tree | 37aa3d0164d3e6eb9dca920a3c84f4c38442ecd8 /clang/lib/Parse/MinimalAction.cpp | |
parent | 5224e6a81d110faeba866ab2fef8458b6bcac111 (diff) | |
download | bcm5719-llvm-d7352d6801f3bae265c75e9d2d9d2eba3d1c802d.tar.gz bcm5719-llvm-d7352d6801f3bae265c75e9d2d9d2eba3d1c802d.zip |
minor cleanup to the actions interface to pass around SmallVectorImpl instead
of a specific smallvector size.
Fix protocol lists to pass down proper location info, so we get diagnostics
like this:
t.m:3:35: error: cannot find protocol definition for 'NSCopying', referenced by 'NSWhatever'
@interface NSWhatever : NSObject <NSCopying>
^
instead of this:
t.m:3:44: error: cannot find protocol definition for 'NSCopying', referenced by 'NSWhatever'
@interface NSWhatever : NSObject <NSCopying>
^
Add a new IdentifierLocPair typedef which is just a pair<IdentifierInfo*, SourceLocation>
llvm-svn: 53883
Diffstat (limited to 'clang/lib/Parse/MinimalAction.cpp')
-rw-r--r-- | clang/lib/Parse/MinimalAction.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Parse/MinimalAction.cpp b/clang/lib/Parse/MinimalAction.cpp index f48e8461666..91f3c6e4a4d 100644 --- a/clang/lib/Parse/MinimalAction.cpp +++ b/clang/lib/Parse/MinimalAction.cpp @@ -91,7 +91,8 @@ Action::DeclTy * MinimalAction::ActOnStartClassInterface(SourceLocation AtInterfaceLoc, IdentifierInfo *ClassName, SourceLocation ClassLoc, IdentifierInfo *SuperName, SourceLocation SuperLoc, - IdentifierInfo **ProtocolNames, unsigned NumProtocols, + const IdentifierLocPair *ProtocolNames, + unsigned NumProtocols, SourceLocation EndProtoLoc, AttributeList *AttrList) { TypeNameInfo *TI = new TypeNameInfo(1, ClassName->getFETokenInfo<TypeNameInfo>()); |