]> granicus.if.org Git - clang/commitdiff
Fixes a typo, reported by Doug.
authorFariborz Jahanian <fjahanian@apple.com>
Tue, 17 Nov 2009 17:15:16 +0000 (17:15 +0000)
committerFariborz Jahanian <fjahanian@apple.com>
Tue, 17 Nov 2009 17:15:16 +0000 (17:15 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89107 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Parse/Parser.h
lib/Parse/ParseObjc.cpp
lib/Sema/ParseAST.cpp

index f436a75e290b8573a373b629e3e33e54fe8beec5..e7dabdbd5b660ef28e3c21f34ce8cc56397d7fab 100644 (file)
@@ -179,7 +179,7 @@ public:
   /// the EOF was encountered.
   bool ParseTopLevelDecl(DeclGroupPtrTy &Result);
 
-  DeclGroupPtrTy RetreivePendingObjCImpDecl();
+  DeclGroupPtrTy RetrievePendingObjCImpDecl();
 
 private:
   //===--------------------------------------------------------------------===//
index 2ae0c690cad15ed71dbd2dc28d9ec2705db6937e..6ca2314ef4f1d46bf65a36d799e0a140080870db 100644 (file)
@@ -1137,7 +1137,7 @@ Parser::DeclPtrTy Parser::ParseObjCAtEndDeclaration(SourceLocation atLoc) {
   return Result;
 }
 
-Parser::DeclGroupPtrTy Parser::RetreivePendingObjCImpDecl() {
+Parser::DeclGroupPtrTy Parser::RetrievePendingObjCImpDecl() {
   if (PendingObjCImpDecl.empty())
     return Actions.ConvertDeclToDeclGroup(DeclPtrTy());
   DeclPtrTy ImpDecl = PendingObjCImpDecl.pop_back_val();
index dc0daae4dcfc872c618bea0c1194f6b9602991ec..7b223a8fa3b63d241ddfd02661ffe846d9a78d78 100644 (file)
@@ -72,7 +72,7 @@ void clang::ParseAST(Preprocessor &PP, ASTConsumer *Consumer,
       Consumer->HandleTopLevelDecl(ADecl.getAsVal<DeclGroupRef>());
   };
   // Check for any pending objective-c implementation decl.
-  while ((ADecl = P.RetreivePendingObjCImpDecl()))
+  while ((ADecl = P.RetrievePendingObjCImpDecl()))
     Consumer->HandleTopLevelDecl(ADecl.getAsVal<DeclGroupRef>());
 
   // process any TopLevelDecls generated by #pragma weak