From 3a1c35975ab7e3293a452dea5a3c8223688666ac Mon Sep 17 00:00:00 2001 From: SooluThomas Date: Tue, 26 Mar 2024 13:19:46 -0400 Subject: [PATCH] Update diagnostic message --- lib/AST/ASTGates.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/AST/ASTGates.cpp b/lib/AST/ASTGates.cpp index d03d544..bfc219f 100644 --- a/lib/AST/ASTGates.cpp +++ b/lib/AST/ASTGates.cpp @@ -1133,7 +1133,9 @@ ASTGateNode::ASTGateNode(const ASTIdentifierNode *Id, if (C != Params.size()) { std::stringstream M; - M << "Inconsistent number of parameters in the gate call for the corresponding gate definition" << C; + M << "Inconsistent number of parameters in the gate call for the " + "corresponding gate definition" + << C; QasmDiagnosticEmitter::Instance().EmitDiagnostic( DIAGLineCounter::Instance().GetLocation(), M.str(), DiagLevel::Error); return; @@ -1371,7 +1373,9 @@ ASTGateNode::ASTGateNode(const ASTIdentifierNode *Id, if (C != Params.size()) { std::stringstream M; - M << "Inconsistent number of parameters in the gate call for the corresponding gate definition" << C; + M << "Inconsistent number of parameters in the gate call for the " + "corresponding gate definition" + << C; QasmDiagnosticEmitter::Instance().EmitDiagnostic( DIAGLineCounter::Instance().GetLocation(), M.str(), DiagLevel::Error); return;