5505: FP: Array accessed out of bounds

CheckBufferOverrun::checkFunctionParameter alreacy considered usage of a
function parameter inside an if block as a special case.

With the patch the same is done for switch statements.

A test is added.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Ticket #5373: Keep track whether tokens come from a C or C++ file to properly handle %type% in Token::Match with "delete"
Fixed #5537 (crash: clang ./lib/Basic/FileManager.cpp , since 354e84e7c85b01e5d1fc29ecb4f2e504271cb2e0 , /lib/symboldatabase.h:288)
Merge pull request #257 from simartin/ticket_5373_2

Ticket #5373: delete can match %type% in C (take #2)
daca2: made mainpage report sortable
Merge pull request #256 from xypron/5505

5505: FP: Array accessed out of bounds
astyle formatting