forked from qt-creator/qt-creator
Store the actual arguments of the macro expansions.
This commit is contained in:
@@ -191,7 +191,8 @@ protected:
|
||||
virtual void macroAdded(const Macro ¯o);
|
||||
virtual void startExpandingMacro(unsigned offset,
|
||||
const Macro ¯o,
|
||||
const QByteArray &originalText);
|
||||
const QByteArray &originalText,
|
||||
const QVector<MacroArgumentReference> &actuals);
|
||||
virtual void stopExpandingMacro(unsigned offset, const Macro ¯o);
|
||||
virtual void startSkippingBlocks(unsigned offset);
|
||||
virtual void stopSkippingBlocks(unsigned offset);
|
||||
@@ -404,13 +405,14 @@ void CppPreprocessor::macroAdded(const Macro ¯o)
|
||||
|
||||
void CppPreprocessor::startExpandingMacro(unsigned offset,
|
||||
const Macro ¯o,
|
||||
const QByteArray &originalText)
|
||||
const QByteArray &originalText,
|
||||
const QVector<MacroArgumentReference> &actuals)
|
||||
{
|
||||
if (! m_currentDoc)
|
||||
return;
|
||||
|
||||
//qDebug() << "start expanding:" << macro.name << "text:" << originalText;
|
||||
m_currentDoc->addMacroUse(macro, offset, originalText.length());
|
||||
m_currentDoc->addMacroUse(macro, offset, originalText.length(), actuals);
|
||||
}
|
||||
|
||||
void CppPreprocessor::stopExpandingMacro(unsigned, const Macro &)
|
||||
@@ -544,7 +546,7 @@ CppModelManager::CppModelManager(QObject *parent)
|
||||
m_core = Core::ICore::instance(); // FIXME
|
||||
m_dirty = true;
|
||||
|
||||
ProjectExplorer::ProjectExplorerPlugin *pe =
|
||||
ProjectExplorer::ProjectExplorerPlugin *pe =
|
||||
ProjectExplorer::ProjectExplorerPlugin::instance();
|
||||
|
||||
QTC_ASSERT(pe, return);
|
||||
|
Reference in New Issue
Block a user