LCOV - code coverage report
Current view: top level - Python - getcompiler.c (source / functions) Hit Total Coverage
Test: CPython lcov report Lines: 2 2 100.0 %
Date: 2022-07-07 18:19:46 Functions: 1 1 100.0 %

          Line data    Source code
       1             : 
       2             : /* Return the compiler identification, if possible. */
       3             : 
       4             : #include "Python.h"
       5             : 
       6             : #ifndef COMPILER
       7             : 
       8             : // Note the __clang__ conditional has to come before the __GNUC__ one because
       9             : // clang pretends to be GCC.
      10             : #if defined(__clang__)
      11             : #define COMPILER "[Clang " __clang_version__ "]"
      12             : #elif defined(__GNUC__)
      13             : #define COMPILER "[GCC " __VERSION__ "]"
      14             : // Generic fallbacks.
      15             : #elif defined(__cplusplus)
      16             : #define COMPILER "[C++]"
      17             : #else
      18             : #define COMPILER "[C]"
      19             : #endif
      20             : 
      21             : #endif /* !COMPILER */
      22             : 
      23             : const char *
      24        3153 : Py_GetCompiler(void)
      25             : {
      26        3153 :     return COMPILER;
      27             : }

Generated by: LCOV version 1.14