Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/checkexceptionsafety.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ void CheckExceptionSafety::rethrowNoCurrentException()

// Rethrow can be used in 'exception dispatcher' idiom which is FP in such case
// https://isocpp.org/wiki/faq/exceptions#throw-without-an-object
// We check the beggining of the function with idiom pattern
// We check the beginning of the function with idiom pattern
if (Token::simpleMatch(function->functionScope->bodyStart->next(), "try { throw ; } catch ("))
continue;

Expand Down
2 changes: 1 addition & 1 deletion lib/forwardanalyzer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ struct ForwardTraversal {
}

if (allAnalysis.isModified() || !forkContinue) {
// TODO: Dont bail on missing condition
// TODO: Don't bail on missing condition
if (!condTok)
return Break(Analyzer::Terminate::Bail);
if (analyzer->isConditional() && stopUpdates())
Expand Down
2 changes: 1 addition & 1 deletion lib/tokenlist.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1661,7 +1661,7 @@ void TokenList::validateAst() const
// Check for endless recursion
const Token* parent = tok->astParent();
if (parent) {
std::set < const Token* > astTokens; // list of anchestors
std::set < const Token* > astTokens; // list of ancestors
astTokens.insert(tok);
do {
if (safeAstTokens.find(parent) != safeAstTokens.end())
Expand Down
2 changes: 1 addition & 1 deletion lib/valueflow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6422,7 +6422,7 @@ static std::vector<ValueFlow::Value> getInitListSize(const Token* tok,
bool known = true)
{
std::vector<const Token*> args = getArguments(tok);
// Strings dont use an init list
// Strings don't use an init list
if (!args.empty() && container->stdStringLike) {
if (astIsIntegral(args[0], false)) {
if (args.size() > 1)
Expand Down
4 changes: 2 additions & 2 deletions lib/valueflow.h
Original file line number Diff line number Diff line change
Expand Up @@ -328,9 +328,9 @@ namespace ValueFlow {
Object,
// A member of object points to the lifetime
SubObject,
// Lambda has captured lifetime(similiar to SubObject)
// Lambda has captured lifetime(similar to SubObject)
Lambda,
// Iterator points to the lifetime of a container(similiar to Object)
// Iterator points to the lifetime of a container(similar to Object)
Iterator,
// A pointer that holds the address of the lifetime
Address
Expand Down
2 changes: 1 addition & 1 deletion test/testbufferoverrun.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3527,7 +3527,7 @@ class TestBufferOverrun : public TestFixture {
"}", settings);
ASSERT_EQUALS("", errout.str());

// #3124 - multidimension array
// #3124 - multidimensional array
check("int main() {\n"
" char b[5][6];\n"
" mymemset(b, 0, 5 * 6);\n"
Expand Down