From 4fb7865f49bc6741a0627637f59d37e037b243d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonathan=20Neusch=C3=A4fer?= Date: Thu, 13 Oct 2011 20:55:55 +0200 Subject: [PATCH] fix typos using codespell Codespell is available at http://git.profusion.mobi/cgit.cgi/lucas/codespell/. --- lib/checkmemoryleak.cpp | 2 +- lib/tokenize.cpp | 4 ++-- test/testmemleak.cpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/checkmemoryleak.cpp b/lib/checkmemoryleak.cpp index 77757dca8..78cc95660 100644 --- a/lib/checkmemoryleak.cpp +++ b/lib/checkmemoryleak.cpp @@ -43,7 +43,7 @@ namespace { /** List of functions that can be ignored when searching for memory leaks. * These functions don't take the address of the given pointer * This list needs to be alphabetically sorted so we can run bsearch on it. - * This list contains function names whith const parameters e.g.: atof(const char *) + * This list contains function names with const parameters e.g.: atof(const char *) * Reference: http://www.aquaphoenix.com/ref/gnu_c_library/libc_492.html#SEC492 */ static const char * const call_func_white_list[] = { diff --git a/lib/tokenize.cpp b/lib/tokenize.cpp index c589a1239..e9463383f 100644 --- a/lib/tokenize.cpp +++ b/lib/tokenize.cpp @@ -819,7 +819,7 @@ static Token *splitDefinitionFromTypedef(Token *tok) /* This function is called when processing function related typedefs. * If simplifyTypedef generates an "Internal Error" message and the * code that generated it deals in some way with functions, then this - * fucntion will probably need to be extended to handle a new function + * function will probably need to be extended to handle a new function * related pattern */ static Token *processFunc(Token *tok2, bool inOperator) { @@ -2817,7 +2817,7 @@ void Tokenizer::simplifyTemplatesInstantiate(const Token *tok, std::set &expandedtemplates) { // this variable is not used at the moment. the intention was to - // allow continous instantiations until all templates has been expanded + // allow continuous instantiations until all templates has been expanded bool done = false; std::vector type; diff --git a/test/testmemleak.cpp b/test/testmemleak.cpp index 17cee2906..821534e21 100644 --- a/test/testmemleak.cpp +++ b/test/testmemleak.cpp @@ -858,7 +858,7 @@ private: void simple7() { - // A garbage collector may delete f automaticly + // A garbage collector may delete f automatically check("class Fred;\n" "void foo()\n" "{\n"