Commit 36ec14c4 authored by Mathieu Faverge's avatar Mathieu Faverge

Remove xxxx_C_DECLS

parent effa7bed
......@@ -22,8 +22,7 @@ lcov_cobertura.py hqr.lcov --output hqr-coverage.xml
cat ./hqr-gcov.log
# Undefine this because not relevant in our configuration
export UNDEFINITIONS="-UWIN32 -UWIN64 -U_MSC_EXTENSIONS -U_MSC_VER -U__SUNPRO_C -U__SUNPRO_CC -U__sun -Usun"
export DEFINITIONS="-D__cplusplus"
export UNDEFINITIONS="-UWIN32 -UWIN64 -U_MSC_EXTENSIONS -U_MSC_VER -U__SUNPRO_C -U__SUNPRO_CC -U__sun -Usun -U__cplusplus"
# run cppcheck analysis
cppcheck -v -f --project=build/compile_commands.json --language=c --platform=unix64 --enable=all --xml --xml-version=2 --suppress=missingInclude ${UNDEFINITIONS} ${DEFINITIONS} --file-list=./filelist.txt 2> hqr-cppcheck.xml
......
......@@ -18,24 +18,10 @@
#ifndef _libhqr_h_
#define _libhqr_h_
#ifdef BEGIN_C_DECLS
#undef BEGIN_C_DECLS
#endif
#ifdef END_C_DECLS
#undef END_C_DECLS
#endif
#if defined(c_plusplus) || defined(__cplusplus)
# define BEGIN_C_DECLS extern "C" {
# define END_C_DECLS }
#else
# define BEGIN_C_DECLS /* empty */
# define END_C_DECLS /* empty */
extern "C" {
#endif
BEGIN_C_DECLS
/**
* @brief Define which tree level the tile belongs to.
*
......@@ -259,6 +245,8 @@ void libhqr_print_geqrt_k( const libhqr_tree_t *qrtree, int k );
* @}
*/
END_C_DECLS
#if defined(c_plusplus) || defined(__cplusplus)
}
#endif
#endif /* _libhqr_h_ */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment