forked from qt-creator/qt-creator
C++: Inline {TranslationUnit,Parser}::blockErrors
As indicated by profiling. Change-Id: I04d741dcc6200eb351d7aec316572e0e94ef5bec Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
This commit is contained in:
@@ -459,13 +459,6 @@ void TranslationUnit::getPosition(unsigned tokenOffset,
|
||||
*fileName = file;
|
||||
}
|
||||
|
||||
bool TranslationUnit::blockErrors(bool block)
|
||||
{
|
||||
bool previous = f._blockErrors;
|
||||
f._blockErrors = block;
|
||||
return previous;
|
||||
}
|
||||
|
||||
void TranslationUnit::message(DiagnosticClient::Level level, unsigned index, const char *format, va_list args)
|
||||
{
|
||||
if (f._blockErrors)
|
||||
|
||||
Reference in New Issue
Block a user