From 54ee53a0c4aaaae9e91af2ef1a11ea27a2dc2911 Mon Sep 17 00:00:00 2001 From: Alp Toker Date: Sat, 30 Nov 2013 23:33:14 +0000 Subject: [PATCH] Fix typo: s/Occurence/Occurrence/ This is a private class member so the fix shouldn't impact external projects. llvm-svn: 195985 --- clang/tools/libclang/IndexingContext.cpp | 6 +++--- clang/tools/libclang/IndexingContext.h | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/clang/tools/libclang/IndexingContext.cpp b/clang/tools/libclang/IndexingContext.cpp index 952c255cd960..2e0f7c20fc70 100644 --- a/clang/tools/libclang/IndexingContext.cpp +++ b/clang/tools/libclang/IndexingContext.cpp @@ -802,9 +802,9 @@ bool IndexingContext::markEntityOccurrenceInFile(const NamedDecl *D, const FileEntry *FE = SM.getFileEntryForID(FID); if (!FE) return true; - RefFileOccurence RefOccur(FE, D); - std::pair::iterator, bool> - res = RefFileOccurences.insert(RefOccur); + RefFileOccurrence RefOccur(FE, D); + std::pair::iterator, bool> + res = RefFileOccurrences.insert(RefOccur); if (!res.second) return true; // already in map. diff --git a/clang/tools/libclang/IndexingContext.h b/clang/tools/libclang/IndexingContext.h index 3437d55f0147..91a22a98a6fb 100644 --- a/clang/tools/libclang/IndexingContext.h +++ b/clang/tools/libclang/IndexingContext.h @@ -286,8 +286,8 @@ class IndexingContext { ContainerMapTy ContainerMap; EntityMapTy EntityMap; - typedef std::pair RefFileOccurence; - llvm::DenseSet RefFileOccurences; + typedef std::pair RefFileOccurrence; + llvm::DenseSet RefFileOccurrences; std::deque TUDeclsInObjCContainer;