[clang][analyzer] Cleanup tests of StdCLibraryFunctionsChecker (NFC)
authorBalázs Kéri <1.int32@gmail.com>
Fri, 12 May 2023 07:20:35 +0000 (09:20 +0200)
committerBalázs Kéri <balazs.keri@ericsson.com>
Fri, 12 May 2023 07:54:01 +0000 (09:54 +0200)
commit80a21ea8006fe7bc7ae2b1c9381625aa69b4dace
tree2c377770f595944d6b81d4a64d679182cb48c6dc
parentaf161ffc7fdd8a258c571fd50a4642011cf184de
[clang][analyzer] Cleanup tests of StdCLibraryFunctionsChecker (NFC)

Function declarations are moved into common header that can be reused
to avoid repetitions in different test files.
Some small problems in the tests were found and fixed.

Reviewed By: steakhal

Differential Revision: https://reviews.llvm.org/D149158
clang/test/Analysis/Inputs/std-c-library-functions-POSIX.h [new file with mode: 0644]
clang/test/Analysis/Inputs/std-c-library-functions.h [new file with mode: 0644]
clang/test/Analysis/std-c-library-functions-POSIX.c
clang/test/Analysis/std-c-library-functions-arg-constraints.c
clang/test/Analysis/std-c-library-functions.c