User Activity

  • Modified a comment on discussion Development on cppcheck

    The following generates a false positive knownConditionTrueFalse; struct Task { int state() const; void poll_for_run_complete(); }; struct TaskList { std::vector<Task*>::iterator active_task_; void do_something() { auto current_active_task_state = (*active_task_)->state(); (*active_task_)->poll_for_run_complete(); auto new_active_task_state = (*active_task_)->state(); // Generates [knownConditionTrueFalse] style warning if (current_active_task_state == new_active_task_state) return; } } If the iterator...

  • Posted a comment on discussion Development on cppcheck

    The following generates a false positive knownConditionTrueFalse; struct Task { int state() const; void poll_for_run_complete(); }; struct TaskList { std::vector<Task*>::iterator active_task_; void do_something() { auto current_active_task_state = (*active_task_)->state(); (*active_task_)->poll_for_run_complete(); auto new_active_task_state = (*active_task_)->state(); // Generates [knownConditionTrueFalse] style warning if (current_active_task_state == new_active_task_state) return; } }

View All

Personal Data

Username:
d-at-e
Joined:
2022-11-24 23:17:55.625000

Projects

  • No projects to display.

Personal Tools