ci/coverity-model.cpp (30 lines of code) (raw):

/** Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ // This is for PCRE, where the offsets vector is considered uninitialized, but it's an // output vector only (input doesn't matter). extern "C" { #define PCRE_SPTR const char * struct real_pcre; /* declaration; the definition is private */ typedef struct real_pcre pcre; typedef struct pcre_extra { } pcre_extra; int pcre_exec(const pcre *argument_re, const pcre_extra *extra_data, PCRE_SPTR subject, int length, int start_offset, int options, int *offsets, int offsetcount) { __coverity_panic__(); } // Indicate that our abort function really is that ... void ink_abort(const char *message_format, ...) { __coverity_panic__(); } // Teach Coverity that this aborts in all compilation modes. void _TSReleaseAssert(const char* txt, const char* f, int l) { __coverity_panic__(); } } /* extern "C" */ // Teach Coverity that the my_exit() in logstats.cc exits ... struct ExitStatus { }; void my_exit(const ExitStatus &status) { __coverity_panic__(); }