@@ -127,7 +127,7 @@ TagEntryPtr CxxCodeCompletion::resolve_compound_expression(std::vector<CxxExpres
127127 // return a dummy entry representing the global scope
128128 return create_global_scope_tag ();
129129 } else if (expression.size () >= 2 && expression[0 ].type_name ().empty () && expression[0 ].operand_string () == " ::" ) {
130- // explicity requesting for the global namespace
130+ // explicitly requesting for the global namespace
131131 // clear the `scopes` and use only the global namespace (empty string)
132132 scopes.clear ();
133133 scopes.push_back (wxEmptyString);
@@ -174,7 +174,7 @@ void CxxCodeCompletion::shrink_scope(const wxString& text, std::unordered_map<wx
174174 m_lookup->GetParameters (m_current_function_tag->GetPath (), parameters);
175175 m_lookup->GetLambdas (m_current_function_tag->GetPath (), all_lambdas);
176176
177- // read all lambdas paramteres
177+ // read all lambdas parameters
178178 std::unordered_map<wxString, TagEntryPtr> lambda_parameters_map;
179179 std::unordered_map<wxString, TagEntryPtr> function_parameters_map;
180180
@@ -188,12 +188,12 @@ void CxxCodeCompletion::shrink_scope(const wxString& text, std::unordered_map<wx
188188 std::vector<TagEntryPtr> lambda_parameters;
189189 m_lookup->GetParameters (lambda->GetPath (), lambda_parameters);
190190 for (auto param : lambda_parameters) {
191- // if a function parameter with this name alrady exists, skip it
191+ // if a function parameter with this name already exists, skip it
192192 if (function_parameters_map.count (param->GetName ())) {
193193 continue ;
194194 }
195195
196- // if we already encoutered a lambda parameter with this name, replace it
196+ // if we already encountered a lambda parameter with this name, replace it
197197 if (lambda_parameters_map.count (param->GetName ())) {
198198 lambda_parameters_map.erase (param->GetName ());
199199 }
@@ -202,7 +202,7 @@ void CxxCodeCompletion::shrink_scope(const wxString& text, std::unordered_map<wx
202202 }
203203 }
204204
205- // all the lambda paramters to the list of parameters
205+ // all the lambda parameters to the list of parameters
206206 for (const auto & vt : lambda_parameters_map) {
207207 parameters.emplace_back (vt.second );
208208 }
@@ -382,7 +382,7 @@ void CxxCodeCompletion::update_template_table(TagEntryPtr resolved, CxxExpressio
382382 return ;
383383 }
384384
385- // simple template instantiaion line
385+ // simple template instantiation line
386386 if (curexpr.is_template ()) {
387387 curexpr.parse_template_placeholders (resolved->GetTemplateDefinition ());
388388 wxStringMap_t M = curexpr.get_template_placeholders_map ();
@@ -670,7 +670,7 @@ TagEntryPtr CxxCodeCompletion::resolve_expression(CxxExpression& curexp, TagEntr
670670TagEntryPtr CxxCodeCompletion::on_typedef (CxxExpression& curexp, TagEntryPtr tag,
671671 const std::vector<wxString>& visible_scopes)
672672{
673- // substitude the type with the typeref
673+ // substitute the type with the typedef
674674 wxString new_expr;
675675 if (!resolve_user_type (tag->GetPath (), visible_scopes, &new_expr)) {
676676 new_expr = typedef_from_tag (tag);
@@ -1102,7 +1102,7 @@ void TemplateManager::add_placeholders(const wxStringMap_t& table, const std::ve
11021102 // lets try and avoid pushing values that are templates
11031103 // consider
11041104 // template <typename _Tp> class vector : protected _Vector_base<_Tp> {..}
1105- // Looking at the definitio of _Vector_base:
1105+ // Looking at the definition of _Vector_base:
11061106 // template <typename _Tp> class _Vector_base {...}
11071107 // this will cause us to push {"_Tp", "_Tp"} (where _Tp is both the key and value)
11081108 // if the resolve will fail, it will return vt.second unmodified
@@ -1210,7 +1210,7 @@ void CxxCodeCompletion::sort_tags(const std::vector<TagEntryPtr>& tags, std::vec
12101210 } else if (access == " public" ) {
12111211 if (tag->GetName ().StartsWith (" _" ) || tag->GetName ().Contains (" operator" )) {
12121212 // methods starting with _ usually are meant to be private
1213- // and also, put the "operator" methdos at the bottom
1213+ // and also, put the "operator" methods at the bottom
12141214 privateTags.push_back (tag);
12151215 } else {
12161216 publicTags.push_back (tag);
@@ -1385,7 +1385,7 @@ size_t CxxCodeCompletion::find_definition(const wxString& filepath, int line, co
13851385 word_complete (filepath, line, expression, text, visible_scopes, true , candidates);
13861386 // filter all the tags
13871387 if (candidates.empty () || (candidates.size () == 1 && (candidates[0 ]->GetLine () == wxNOT_FOUND))) {
1388- clDEBUG () << " Unable to complete, checking on the current lcoation " << endl;
1388+ clDEBUG () << " Unable to complete, checking on the current location " << endl;
13891389 candidates.clear ();
13901390 m_lookup->GetTagsByFileAndLine (filepath, line, candidates);
13911391 if (candidates.empty ()) {
0 commit comments