Debian Codegraph @

src/c/coverity/model.c

raw symbols SCIP
1 /* -*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*- */
2 /* vim: set filetype=c tabstop=8 shiftwidth=4 expandtab: */
3
4 /* This is free and unencumbered software released into the public domain. */
5
6 /**
7 * Coverity Scan model for ECL.
8 *
9 * This is a modeling file for the Coverity Scan static analysis service.
10 * Modeling helps to avoid false positives. Some rules for model files:
11 *
12 * - A model file cannot import any header files.
13 * - Therefore only built-in standard language symbols are available;
14 * for example, `char`, `int`, and `void` are defined, `NULL` isn't.
15 * - Modeling doesn't require genuine definitions for structs and typedefs.
16 * Typedefs that expand to rudimentary structs will suffice.
17 * - Uninitialized local pointers are not errors, but rather signify that
18 * a variable could either be `NULL` or point at some data.
19 *
20 * Note that Coverity Scan doesn't automatically pick up changes to this
21 * file. New versions of the model file must be uploaded by an admin at:
22 * https://scan.coverity.com/projects/3235?tab=analysis_settings
23 *
24 * @author Arto Bendiken <[email protected]>
25 * @see https://scan.coverity.com/tune
26 */
27
28 #define NULL ((void*)0)
29
30 typedef void* cl_object;
31 typedef int cl_narg;
32
33 void
34 FEwrong_type_nth_arg(cl_object function, cl_narg narg, cl_object value, cl_object type) {
35 __coverity_panic__();
36 }