]> granicus.if.org Git - clang/commitdiff
Fix typo: s/Occurence/Occurrence/
authorAlp Toker <alp@nuanti.com>
Sat, 30 Nov 2013 23:33:14 +0000 (23:33 +0000)
committerAlp Toker <alp@nuanti.com>
Sat, 30 Nov 2013 23:33:14 +0000 (23:33 +0000)
This is a private class member so the fix shouldn't impact external projects.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@195985 91177308-0d34-0410-b5e6-96231b3b80d8

tools/libclang/IndexingContext.cpp
tools/libclang/IndexingContext.h

index 952c255cd96092138536b36e124c64b410518309..2e0f7c20fc70e4dbd2b528109af7cba90093c7fa 100644 (file)
@@ -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<llvm::DenseSet<RefFileOccurence>::iterator, bool>
-  res = RefFileOccurences.insert(RefOccur);
+  RefFileOccurrence RefOccur(FE, D);
+  std::pair<llvm::DenseSet<RefFileOccurrence>::iterator, bool>
+  res = RefFileOccurrences.insert(RefOccur);
   if (!res.second)
     return true; // already in map.
 
index 3437d55f0147af107e70a84b211b65df9cdf9e09..91a22a98a6fb9dcc915a0ac53b7d9386cead6a7c 100644 (file)
@@ -286,8 +286,8 @@ class IndexingContext {
   ContainerMapTy ContainerMap;
   EntityMapTy EntityMap;
 
-  typedef std::pair<const FileEntry *, const Decl *> RefFileOccurence;
-  llvm::DenseSet<RefFileOccurence> RefFileOccurences;
+  typedef std::pair<const FileEntry *, const Decl *> RefFileOccurrence;
+  llvm::DenseSet<RefFileOccurrence> RefFileOccurrences;
 
   std::deque<DeclGroupRef> TUDeclsInObjCContainer;