LCOV - code coverage report
Current view: top level - autotest/cpp - test_c_include_from_cpp_file.cpp (source / functions) Hit Total Coverage
Test: gdal_filtered.info Lines: 2 2 100.0 %
Date: 2024-05-14 13:00:50 Functions: 1 1 100.0 %

          Line data    Source code
       1             : /******************************************************************************
       2             :  * Project:  GDAL Core
       3             :  * Purpose:  Test including all public C headers as extern C from .cpp file
       4             :  * Author:   Even Rouault, <even dot rouault at spatialys dot com>
       5             :  *
       6             :  ******************************************************************************
       7             :  * Copyright (c) 2017, Even Rouault <even dot rouault at spatialys dot com>
       8             :  *
       9             :  * Permission is hereby granted, free of charge, to any person obtaining a
      10             :  * copy of this software and associated documentation files (the "Software"),
      11             :  * to deal in the Software without restriction, including without limitation
      12             :  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
      13             :  * and/or sell copies of the Software, and to permit persons to whom the
      14             :  * Software is furnished to do so, subject to the following conditions:
      15             :  *
      16             :  * The above copyright notice and this permission notice shall be included
      17             :  * in all copies or substantial portions of the Software.
      18             :  *
      19             :  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
      20             :  * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
      21             :  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
      22             :  * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
      23             :  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
      24             :  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
      25             :  * DEALINGS IN THE SOFTWARE.
      26             :  ****************************************************************************/
      27             : 
      28             : extern "C"
      29             : {
      30             : #include "cpl_atomic_ops.h"
      31             : #include "cpl_conv.h"
      32             : #include "cpl_csv.h"
      33             : #include "cpl_error.h"
      34             : #include "cpl_hash_set.h"
      35             : #include "cpl_list.h"
      36             : #include "cpl_minixml.h"
      37             : #include "cpl_port.h"
      38             : #include "cpl_progress.h"
      39             : #include "cpl_quad_tree.h"
      40             : #include "cpl_vsi.h"
      41             : #include "gdal_alg.h"
      42             : #include "gdal_version.h"
      43             : #include "gdal.h"
      44             : #include "ogr_api.h"
      45             : #include "ogr_core.h"
      46             : #include "ogr_srs_api.h"
      47             : }
      48             : 
      49           1 : int main()
      50             : {
      51           1 :     return 0;
      52             : }

Generated by: LCOV version 1.14