From 4df96f299fe97d88f9381c47d9bb9113a3522a3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Tue, 25 Nov 2008 18:11:02 +0000 Subject: [PATCH] Function usage: Report which file the missing function is implemented in --- CheckFunctionUsage.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CheckFunctionUsage.cpp b/CheckFunctionUsage.cpp index 136a1939a..056974e5b 100644 --- a/CheckFunctionUsage.cpp +++ b/CheckFunctionUsage.cpp @@ -146,7 +146,9 @@ void CheckFunctionUsage::check() continue; if ( ! func.usedSameFile ) { - std::ostringstream errmsg; + std::ostringstream errmsg; + if ( func.filename != "+" ) + errmsg << "[" << func.filename << "] "; errmsg << "The function '" << it->first << "' is never used."; _errorLogger->reportErr( errmsg.str() ); }