Do not emit leading spaces on blank lines (#3007)
This commit is contained in:
parent
fb561d925a
commit
eea7e1bd2a
|
|
@ -692,7 +692,7 @@ int V3OutFormatter::endLevels(const char* strg) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void V3OutFormatter::puts(const char* strg) {
|
void V3OutFormatter::puts(const char* strg) {
|
||||||
if (m_prependIndent) {
|
if (m_prependIndent && strg[0] != '\n') {
|
||||||
putsNoTracking(indentSpaces(endLevels(strg)));
|
putsNoTracking(indentSpaces(endLevels(strg)));
|
||||||
m_prependIndent = false;
|
m_prependIndent = false;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -45,7 +45,7 @@ module Vt_debug_emitv;
|
||||||
$display("stmt");
|
$display("stmt");
|
||||||
$display("stmt");
|
$display("stmt");
|
||||||
end
|
end
|
||||||
|
|
||||||
???? // CFUNC '_final_TOP'
|
???? // CFUNC '_final_TOP'
|
||||||
$_CSTMT(Vt_debug_emitv* const __restrict vlTOPp VL_ATTR_UNUSED = vlSymsp->TOPp;
|
$_CSTMT(Vt_debug_emitv* const __restrict vlTOPp VL_ATTR_UNUSED = vlSymsp->TOPp;
|
||||||
);
|
);
|
||||||
|
|
|
||||||
|
|
@ -10,8 +10,8 @@
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
// DPI EXPORTS
|
// DPI EXPORTS
|
||||||
extern void e_array_2_state_1(svBitVecVal* x);
|
extern void e_array_2_state_1(svBitVecVal* x);
|
||||||
extern void e_array_2_state_128(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_33(svLogicVecVal* x);
|
||||||
extern void e_union_4_state_64(svLogicVecVal* x);
|
extern void e_union_4_state_64(svLogicVecVal* x);
|
||||||
extern void e_union_4_state_65(svLogicVecVal* x);
|
extern void e_union_4_state_65(svLogicVecVal* x);
|
||||||
|
|
||||||
// DPI IMPORTS
|
// DPI IMPORTS
|
||||||
extern void check_exports();
|
extern void check_exports();
|
||||||
extern void i_array_2_state_1(svBitVecVal* x);
|
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_33(svLogicVecVal* x);
|
||||||
extern void i_union_4_state_64(svLogicVecVal* x);
|
extern void i_union_4_state_64(svLogicVecVal* x);
|
||||||
extern void i_union_4_state_65(svLogicVecVal* x);
|
extern void i_union_4_state_65(svLogicVecVal* x);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -10,8 +10,8 @@
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
// DPI EXPORTS
|
// DPI EXPORTS
|
||||||
extern void e_bit121_0d(svBitVecVal* val);
|
extern void e_bit121_0d(svBitVecVal* val);
|
||||||
extern void e_bit121_1d(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_1d(svLogicVecVal* val);
|
||||||
extern void e_time_2d(svLogicVecVal* val);
|
extern void e_time_2d(svLogicVecVal* val);
|
||||||
extern void e_time_3d(svLogicVecVal* val);
|
extern void e_time_3d(svLogicVecVal* val);
|
||||||
|
|
||||||
// DPI IMPORTS
|
// DPI IMPORTS
|
||||||
extern void check_exports();
|
extern void check_exports();
|
||||||
extern void* get_non_null();
|
extern void* get_non_null();
|
||||||
|
|
@ -177,7 +177,7 @@ extern "C" {
|
||||||
extern void i_time_1d(svLogicVecVal* val);
|
extern void i_time_1d(svLogicVecVal* val);
|
||||||
extern void i_time_2d(svLogicVecVal* val);
|
extern void i_time_2d(svLogicVecVal* val);
|
||||||
extern void i_time_3d(svLogicVecVal* val);
|
extern void i_time_3d(svLogicVecVal* val);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -10,8 +10,8 @@
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
// DPI EXPORTS
|
// DPI EXPORTS
|
||||||
extern void e_array_2_state_1(const svBitVecVal* i);
|
extern void e_array_2_state_1(const svBitVecVal* i);
|
||||||
extern void e_array_2_state_128(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_33(const svLogicVecVal* i);
|
||||||
extern void e_union_4_state_64(const svLogicVecVal* i);
|
extern void e_union_4_state_64(const svLogicVecVal* i);
|
||||||
extern void e_union_4_state_65(const svLogicVecVal* i);
|
extern void e_union_4_state_65(const svLogicVecVal* i);
|
||||||
|
|
||||||
// DPI IMPORTS
|
// DPI IMPORTS
|
||||||
extern void check_exports();
|
extern void check_exports();
|
||||||
extern void i_array_2_state_1(const svBitVecVal* i);
|
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_33(const svLogicVecVal* i);
|
||||||
extern void i_union_4_state_64(const svLogicVecVal* i);
|
extern void i_union_4_state_64(const svLogicVecVal* i);
|
||||||
extern void i_union_4_state_65(const svLogicVecVal* i);
|
extern void i_union_4_state_65(const svLogicVecVal* i);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -10,8 +10,8 @@
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
// DPI EXPORTS
|
// DPI EXPORTS
|
||||||
extern void e_bit121_0d(const svBitVecVal* val);
|
extern void e_bit121_0d(const svBitVecVal* val);
|
||||||
extern void e_bit121_1d(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_1d(const svLogicVecVal* val);
|
||||||
extern void e_time_2d(const svLogicVecVal* val);
|
extern void e_time_2d(const svLogicVecVal* val);
|
||||||
extern void e_time_3d(const svLogicVecVal* val);
|
extern void e_time_3d(const svLogicVecVal* val);
|
||||||
|
|
||||||
// DPI IMPORTS
|
// DPI IMPORTS
|
||||||
extern void check_exports();
|
extern void check_exports();
|
||||||
extern void* get_non_null();
|
extern void* get_non_null();
|
||||||
|
|
@ -177,7 +177,7 @@ extern "C" {
|
||||||
extern void i_time_1d(const svLogicVecVal* val);
|
extern void i_time_1d(const svLogicVecVal* val);
|
||||||
extern void i_time_2d(const svLogicVecVal* val);
|
extern void i_time_2d(const svLogicVecVal* val);
|
||||||
extern void i_time_3d(const svLogicVecVal* val);
|
extern void i_time_3d(const svLogicVecVal* val);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -10,8 +10,8 @@
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
// DPI EXPORTS
|
// DPI EXPORTS
|
||||||
extern void e_array_2_state_1(svBitVecVal* o);
|
extern void e_array_2_state_1(svBitVecVal* o);
|
||||||
extern void e_array_2_state_128(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_33(svLogicVecVal* o);
|
||||||
extern void e_union_4_state_64(svLogicVecVal* o);
|
extern void e_union_4_state_64(svLogicVecVal* o);
|
||||||
extern void e_union_4_state_65(svLogicVecVal* o);
|
extern void e_union_4_state_65(svLogicVecVal* o);
|
||||||
|
|
||||||
// DPI IMPORTS
|
// DPI IMPORTS
|
||||||
extern void check_exports();
|
extern void check_exports();
|
||||||
extern void i_array_2_state_1(svBitVecVal* o);
|
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_33(svLogicVecVal* o);
|
||||||
extern void i_union_4_state_64(svLogicVecVal* o);
|
extern void i_union_4_state_64(svLogicVecVal* o);
|
||||||
extern void i_union_4_state_65(svLogicVecVal* o);
|
extern void i_union_4_state_65(svLogicVecVal* o);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -10,8 +10,8 @@
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
// DPI EXPORTS
|
// DPI EXPORTS
|
||||||
extern void e_bit121_0d(svBitVecVal* val);
|
extern void e_bit121_0d(svBitVecVal* val);
|
||||||
extern void e_bit121_1d(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_1d(svLogicVecVal* val);
|
||||||
extern void e_time_2d(svLogicVecVal* val);
|
extern void e_time_2d(svLogicVecVal* val);
|
||||||
extern void e_time_3d(svLogicVecVal* val);
|
extern void e_time_3d(svLogicVecVal* val);
|
||||||
|
|
||||||
// DPI IMPORTS
|
// DPI IMPORTS
|
||||||
extern void check_exports();
|
extern void check_exports();
|
||||||
extern void* get_non_null();
|
extern void* get_non_null();
|
||||||
|
|
@ -177,7 +177,7 @@ extern "C" {
|
||||||
extern void i_time_1d(svLogicVecVal* val);
|
extern void i_time_1d(svLogicVecVal* val);
|
||||||
extern void i_time_2d(svLogicVecVal* val);
|
extern void i_time_2d(svLogicVecVal* val);
|
||||||
extern void i_time_3d(svLogicVecVal* val);
|
extern void i_time_3d(svLogicVecVal* val);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -10,8 +10,8 @@
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
// DPI EXPORTS
|
// DPI EXPORTS
|
||||||
extern svBitVecVal e_array_2_state_1();
|
extern svBitVecVal e_array_2_state_1();
|
||||||
extern svBitVecVal e_array_2_state_32();
|
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_1();
|
||||||
extern svBitVecVal e_union_2_state_32();
|
extern svBitVecVal e_union_2_state_32();
|
||||||
extern void e_void();
|
extern void e_void();
|
||||||
|
|
||||||
// DPI IMPORTS
|
// DPI IMPORTS
|
||||||
extern void check_exports();
|
extern void check_exports();
|
||||||
extern svBitVecVal i_array_2_state_1();
|
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_1();
|
||||||
extern svBitVecVal i_union_2_state_32();
|
extern svBitVecVal i_union_2_state_32();
|
||||||
extern void i_void();
|
extern void i_void();
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue