Internals: clangtidy cleanups. No functional change intended (#7343)

This commit is contained in:
Wilson Snyder
2026-03-27 23:14:18 -04:00
committed by GitHub
parent 82c817d425
commit 31757df229
139 changed files with 1089 additions and 1238 deletions
+3 -3
View File
@@ -174,7 +174,7 @@ void EmitCFunc::emitOpName(AstNode* nodep, const string& format, AstNode* lhsp,
putOut();
}
bool EmitCFunc::displayEmitHeader(AstNode* nodep, bool isScan) {
bool EmitCFunc::displayEmitHeader(AstNode* nodep) {
bool isStmt = false;
if (const AstFScanF* const dispp = VN_CAST(nodep, FScanF)) {
isStmt = false;
@@ -258,7 +258,7 @@ void EmitCFunc::displayNode(AstNode* nodep, AstSFormatF* fmtp, // fmtp is nullp
if (vformat.empty() && VN_IS(nodep, Display)) // not fscanf etc, as they need to return value
return; // NOP
const bool isStmt = displayEmitHeader(nodep, isScan);
const bool isStmt = displayEmitHeader(nodep);
if (exprFormat) {
UASSERT_OBJ(exprsp, nodep, "Missing format expression");
@@ -366,7 +366,7 @@ void EmitCFunc::emitCCallArgs(const AstNodeCCall* nodep, const string& selfPoint
puts(")");
}
std::string EmitCFunc::dereferenceString(const std::string& pointer) {
std::string EmitCFunc::dereferenceString(const std::string& pointer) const {
if (pointer[0] == '(' && pointer[1] == '&') {
// remove "address of" followed by immediate dereference
// Note: this relies on only the form '(&OBJECT)' being used by Verilator