Codacy cleanups. No functional change.

This commit is contained in:
Wilson Snyder 2020-04-20 22:01:47 -04:00
parent b12413e42f
commit 174fd1bf0e
2 changed files with 5 additions and 4 deletions

View File

@ -46,6 +46,7 @@
// Allow user to specify their own include file
#ifdef VL_VERILATED_INCLUDE
// cppcheck-suppress preprocessorErrorDirective
# include VL_VERILATED_INCLUDE
#endif
// clang-format on

View File

@ -131,13 +131,13 @@ void i_shortreal(float* o) {
void i_chandle(void** o) {
static int n = 0;
printf("i_chandle %d\n", n);
*o = n++ % 2 ? reinterpret_cast<void*>(&i_chandle) : NULL;
*o = (n++ % 2) ? reinterpret_cast<void*>(&i_chandle) : NULL;
}
void i_string(const char** o) {
static int n = 0;
printf("i_string %d\n", n);
*o = n++ % 2 ? "Hello" : "World";
*o = (n++ % 2) ? "Hello" : "World";
}
void i_bit(svBit* o) {
@ -247,13 +247,13 @@ void i_shortreal_t(float* o) {
void i_chandle_t(void** o) {
static int n = 0;
printf("i_chandle_t %d\n", n);
*o = n++ % 2 ? reinterpret_cast<void*>(&i_chandle) : NULL;
*o = (n++ % 2) ? reinterpret_cast<void*>(&i_chandle) : NULL;
}
void i_string_t(const char** o) {
static int n = 0;
printf("i_string_t %d\n", n);
*o = n++ % 2 ? "Hello" : "World";
*o = (n++ % 2) ? "Hello" : "World";
}
void i_bit_t(svBit* o) {