[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdevelop/languages/cpp
From: Andreas Pakulat <apaku () gmx ! de>
Date: 2007-09-28 20:58:41
Message-ID: 1191013121.150258.30725.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 718498 by apaku:
use proper area in warnings as well
M +2 -2 duchainbuilder/contextbuilder.cpp
M +1 -1 duchainbuilder/cpptypes.cpp
M +1 -1 duchainbuilder/typerepository.cpp
M +1 -1 duchainbuilder/usebuilder.cpp
M +10 -10 parser/rpp/pp-engine.cpp
M +1 -1 parser/rpp/pp-environment.cpp
M +1 -1 parser/rpp/pp-macro-expander.cpp
M +3 -3 preprocessjob.cpp
--- trunk/KDE/kdevelop/languages/cpp/duchainbuilder/contextbuilder.cpp #718497:718498
@@ -284,7 +284,7 @@
if (!m_importedParentContexts.isEmpty()) {
DUChainReadLocker lock(DUChain::lock());
- kWarning() << file->url() << "Previous parameter declaration context didn't get \
used??" ; + kWarning(9007) << file->url() << "Previous parameter declaration \
context didn't get used??" ; DumpChain dump;
dump.dump(topLevelContext);
m_importedParentContexts.clear();
@@ -415,7 +415,7 @@
if (classContexts.count() == 1)
m_importedParentContexts.append(classContexts.first());
else if (classContexts.count() > 1) {
- kWarning() << "Muliple class contexts for" << functionName.toString() << "- \
shouldn't happen!" ; + kWarning(9007) << "Muliple class contexts for" << \
functionName.toString() << "- shouldn't happen!" ; foreach (DUContext* classContext, \
classContexts) {
kDebug(9007) << "Context" << classContext->scopeIdentifier(true) << \
"range" << classContext->textRange() << "in" << classContext->url(); }
--- trunk/KDE/kdevelop/languages/cpp/duchainbuilder/cpptypes.cpp #718497:718498
@@ -501,7 +501,7 @@
void CppClassType::addElement(AbstractType::Ptr element)
{
if (isClosed())
- kWarning() << "Tried to add type" << element->toString() << "to closed class!" ;
+ kWarning(9007) << "Tried to add type" << element->toString() << "to closed \
class!" ; else
StructureType::addElement(element);
}
--- trunk/KDE/kdevelop/languages/cpp/duchainbuilder/typerepository.cpp #718497:718498
@@ -173,7 +173,7 @@
AbstractType::Ptr TypeRepository::registerType(AbstractType::Ptr input)
{
if (!input) {
- kWarning() << "Asked to register a null type." ;
+ kWarning(9007) << "Asked to register a null type." ;
return input;
}
--- trunk/KDE/kdevelop/languages/cpp/duchainbuilder/usebuilder.cpp #718497:718498
@@ -130,7 +130,7 @@
declarations.first()->addUse(newUse);
else
currentContext()->addOrphanUse(newUse);
- //kWarning() << "Could not find definition for identifier" << id << "at" << \
*use ; + //kWarning(9007) << "Could not find definition for identifier" << id << \
"at" << *use ; }
}
--- trunk/KDE/kdevelop/languages/cpp/parser/rpp/pp-engine.cpp #718497:718498
@@ -105,7 +105,7 @@
return result;
}
- kWarning() << "file '" << fileName << "' not found!" ;
+ kWarning(9007) << "file '" << fileName << "' not found!" ;
return QString();
}
else
@@ -391,7 +391,7 @@
}
if (iflevel != previousIfLevel) {
- kWarning() << "Unterminated #if statement" ;
+ kWarning(9007) << "Unterminated #if statement" ;
}
}
@@ -561,7 +561,7 @@
if (token != TOKEN_IDENTIFIER)
{
- kWarning() << "expected ``identifier'' found:" << char(token) ;
+ kWarning(9007) << "expected ``identifier'' found:" << char(token) ;
break;
}
@@ -574,7 +574,7 @@
if (expect_paren) {
if (token != ')')
- kWarning() << "expected ``)''" ;
+ kWarning(9007) << "expected ``)''" ;
else
accept_token();
}
@@ -600,7 +600,7 @@
token = next_token(input);
if (token != ')')
- kWarning() << "expected ``)'' =" << char(token) ;
+ kWarning(9007) << "expected ``)'' =" << char(token) ;
else
accept_token();
@@ -629,7 +629,7 @@
} else if (token == '/') {
if (value.is_zero()) {
- kWarning() << "division by zero" ;
+ kWarning(9007) << "division by zero" ;
result.set_long(0);
} else {
@@ -638,7 +638,7 @@
} else {
if (value.is_zero()) {
- kWarning() << "division by zero" ;
+ kWarning(9007) << "division by zero" ;
result.set_long(0);
} else {
@@ -872,7 +872,7 @@
}
else
{
- kWarning() << "expected ``:'' =" << int (token) ;
+ kWarning(9007) << "expected ``:'' =" << int (token) ;
result = left_value;
}
}
@@ -930,7 +930,7 @@
{
if (iflevel == 0 && !skipping ())
{
- kWarning() << "#else without #if" ;
+ kWarning(9007) << "#else without #if" ;
}
else if (iflevel > 0 && _M_skipping[iflevel - 1])
{
@@ -951,7 +951,7 @@
if (iflevel == 0 && !skipping())
{
- kWarning() << "#else without #if" ;
+ kWarning(9007) << "#else without #if" ;
}
else
{
--- trunk/KDE/kdevelop/languages/cpp/parser/rpp/pp-environment.cpp #718497:718498
@@ -67,7 +67,7 @@
{
if (depth++ > 100) {
// TODO detect recursion?
- kWarning() << "Likely cyclic include, aborting macro replay at depth 100" ;
+ kWarning(9007) << "Likely cyclic include, aborting macro replay at depth 100" ;
return;
}
--- trunk/KDE/kdevelop/languages/cpp/parser/rpp/pp-macro-expander.cpp #718497:718498
@@ -55,7 +55,7 @@
if (index < m_frame->actuals.size())
return m_frame->actuals[index];
else
- kWarning() << "Call to macro" << name << "missing argument number" << index \
; + kWarning(9007) << "Call to macro" << name << "missing argument number" << \
index ; // Triggers on deflate.c
//Q_ASSERT(0); // internal error?
}
--- trunk/KDE/kdevelop/languages/cpp/preprocessjob.cpp #718497:718498
@@ -347,10 +347,10 @@
}
/*} else {
- kWarning() << "Language support disappeared!!" ;
+ kWarning(9007) << "Language support disappeared!!" ;
}
} else {
- kWarning() << "Parent job disappeared!!" ;
+ kWarning(9007) << "Parent job disappeared!!" ;
}*/
return 0;
@@ -368,7 +368,7 @@
} else {
// What... the parent job got deleted??
- kWarning() << "Parent job disappeared!!" ;
+ kWarning(9007) << "Parent job disappeared!!" ;
m_success = false;
setFinished(true);
return true;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic