Do not emit leading spaces on blank lines (#3007)

This commit is contained in:
Geza Lore 2021-06-04 15:00:13 +01:00 committed by GitHub
parent fb561d925a
commit eea7e1bd2a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 30 additions and 30 deletions

View File

@ -692,7 +692,7 @@ int V3OutFormatter::endLevels(const char* strg) {
}
void V3OutFormatter::puts(const char* strg) {
if (m_prependIndent) {
if (m_prependIndent && strg[0] != '\n') {
putsNoTracking(indentSpaces(endLevels(strg)));
m_prependIndent = false;
}

View File

@ -45,7 +45,7 @@ module Vt_debug_emitv;
$display("stmt");
$display("stmt");
end
???? // CFUNC '_final_TOP'
$_CSTMT(Vt_debug_emitv* const __restrict vlTOPp VL_ATTR_UNUSED = vlSymsp->TOPp;
);

View File

@ -10,8 +10,8 @@
#ifdef __cplusplus
extern "C" {
#endif
// DPI EXPORTS
extern void e_array_2_state_1(svBitVecVal* x);
extern void e_array_2_state_128(svBitVecVal* x);
@ -79,7 +79,7 @@ extern "C" {
extern void e_union_4_state_33(svLogicVecVal* x);
extern void e_union_4_state_64(svLogicVecVal* x);
extern void e_union_4_state_65(svLogicVecVal* x);
// DPI IMPORTS
extern void check_exports();
extern void i_array_2_state_1(svBitVecVal* x);
@ -148,7 +148,7 @@ extern "C" {
extern void i_union_4_state_33(svLogicVecVal* x);
extern void i_union_4_state_64(svLogicVecVal* x);
extern void i_union_4_state_65(svLogicVecVal* x);
#ifdef __cplusplus
}
#endif

View File

@ -10,8 +10,8 @@
#ifdef __cplusplus
extern "C" {
#endif
// DPI EXPORTS
extern void e_bit121_0d(svBitVecVal* val);
extern void e_bit121_1d(svBitVecVal* val);
@ -93,7 +93,7 @@ extern "C" {
extern void e_time_1d(svLogicVecVal* val);
extern void e_time_2d(svLogicVecVal* val);
extern void e_time_3d(svLogicVecVal* val);
// DPI IMPORTS
extern void check_exports();
extern void* get_non_null();
@ -177,7 +177,7 @@ extern "C" {
extern void i_time_1d(svLogicVecVal* val);
extern void i_time_2d(svLogicVecVal* val);
extern void i_time_3d(svLogicVecVal* val);
#ifdef __cplusplus
}
#endif

View File

@ -10,8 +10,8 @@
#ifdef __cplusplus
extern "C" {
#endif
// DPI EXPORTS
extern void e_array_2_state_1(const svBitVecVal* i);
extern void e_array_2_state_128(const svBitVecVal* i);
@ -79,7 +79,7 @@ extern "C" {
extern void e_union_4_state_33(const svLogicVecVal* i);
extern void e_union_4_state_64(const svLogicVecVal* i);
extern void e_union_4_state_65(const svLogicVecVal* i);
// DPI IMPORTS
extern void check_exports();
extern void i_array_2_state_1(const svBitVecVal* i);
@ -148,7 +148,7 @@ extern "C" {
extern void i_union_4_state_33(const svLogicVecVal* i);
extern void i_union_4_state_64(const svLogicVecVal* i);
extern void i_union_4_state_65(const svLogicVecVal* i);
#ifdef __cplusplus
}
#endif

View File

@ -10,8 +10,8 @@
#ifdef __cplusplus
extern "C" {
#endif
// DPI EXPORTS
extern void e_bit121_0d(const svBitVecVal* val);
extern void e_bit121_1d(const svBitVecVal* val);
@ -93,7 +93,7 @@ extern "C" {
extern void e_time_1d(const svLogicVecVal* val);
extern void e_time_2d(const svLogicVecVal* val);
extern void e_time_3d(const svLogicVecVal* val);
// DPI IMPORTS
extern void check_exports();
extern void* get_non_null();
@ -177,7 +177,7 @@ extern "C" {
extern void i_time_1d(const svLogicVecVal* val);
extern void i_time_2d(const svLogicVecVal* val);
extern void i_time_3d(const svLogicVecVal* val);
#ifdef __cplusplus
}
#endif

View File

@ -10,8 +10,8 @@
#ifdef __cplusplus
extern "C" {
#endif
// DPI EXPORTS
extern void e_array_2_state_1(svBitVecVal* o);
extern void e_array_2_state_128(svBitVecVal* o);
@ -79,7 +79,7 @@ extern "C" {
extern void e_union_4_state_33(svLogicVecVal* o);
extern void e_union_4_state_64(svLogicVecVal* o);
extern void e_union_4_state_65(svLogicVecVal* o);
// DPI IMPORTS
extern void check_exports();
extern void i_array_2_state_1(svBitVecVal* o);
@ -148,7 +148,7 @@ extern "C" {
extern void i_union_4_state_33(svLogicVecVal* o);
extern void i_union_4_state_64(svLogicVecVal* o);
extern void i_union_4_state_65(svLogicVecVal* o);
#ifdef __cplusplus
}
#endif

View File

@ -10,8 +10,8 @@
#ifdef __cplusplus
extern "C" {
#endif
// DPI EXPORTS
extern void e_bit121_0d(svBitVecVal* val);
extern void e_bit121_1d(svBitVecVal* val);
@ -93,7 +93,7 @@ extern "C" {
extern void e_time_1d(svLogicVecVal* val);
extern void e_time_2d(svLogicVecVal* val);
extern void e_time_3d(svLogicVecVal* val);
// DPI IMPORTS
extern void check_exports();
extern void* get_non_null();
@ -177,7 +177,7 @@ extern "C" {
extern void i_time_1d(svLogicVecVal* val);
extern void i_time_2d(svLogicVecVal* val);
extern void i_time_3d(svLogicVecVal* val);
#ifdef __cplusplus
}
#endif

View File

@ -10,8 +10,8 @@
#ifdef __cplusplus
extern "C" {
#endif
// DPI EXPORTS
extern svBitVecVal e_array_2_state_1();
extern svBitVecVal e_array_2_state_32();
@ -46,7 +46,7 @@ extern "C" {
extern svBitVecVal e_union_2_state_1();
extern svBitVecVal e_union_2_state_32();
extern void e_void();
// DPI IMPORTS
extern void check_exports();
extern svBitVecVal i_array_2_state_1();
@ -82,7 +82,7 @@ extern "C" {
extern svBitVecVal i_union_2_state_1();
extern svBitVecVal i_union_2_state_32();
extern void i_void();
#ifdef __cplusplus
}
#endif