diff options
author | Malcolm Parsons <malcolm.parsons@gmail.com> | 2018-01-24 10:26:09 +0000 |
---|---|---|
committer | Malcolm Parsons <malcolm.parsons@gmail.com> | 2018-01-24 10:26:09 +0000 |
commit | 51d3fb045ea859002ff68aa60ce4ffdcfda47c31 (patch) | |
tree | 84fd2f751afea23cf43a742e1c29faa61aa4e023 /clang/lib/Analysis/CloneDetection.cpp | |
parent | 09bc73d11f86f7127ddfac1bd5d49e1ed596092d (diff) | |
download | bcm5719-llvm-51d3fb045ea859002ff68aa60ce4ffdcfda47c31.tar.gz bcm5719-llvm-51d3fb045ea859002ff68aa60ce4ffdcfda47c31.zip |
Fix typos of occurred and occurrence
llvm-svn: 323316
Diffstat (limited to 'clang/lib/Analysis/CloneDetection.cpp')
-rw-r--r-- | clang/lib/Analysis/CloneDetection.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Analysis/CloneDetection.cpp b/clang/lib/Analysis/CloneDetection.cpp index 098803f9a41..3c64f14387a 100644 --- a/clang/lib/Analysis/CloneDetection.cpp +++ b/clang/lib/Analysis/CloneDetection.cpp @@ -534,14 +534,14 @@ void VariablePattern::addVariableOccurence(const VarDecl *VarDecl, // First check if we already reference this variable for (size_t KindIndex = 0; KindIndex < Variables.size(); ++KindIndex) { if (Variables[KindIndex] == VarDecl) { - // If yes, add a new occurence that points to the existing entry in + // If yes, add a new occurrence that points to the existing entry in // the Variables vector. Occurences.emplace_back(KindIndex, Mention); return; } } // If this variable wasn't already referenced, add it to the list of - // referenced variables and add a occurence that points to this new entry. + // referenced variables and add a occurrence that points to this new entry. Occurences.emplace_back(Variables.size(), Mention); Variables.push_back(VarDecl); } |