CPlusPlus: Migrate Macro to FilePath

Change-Id: I94e8702e81e809e4d8318572cc070a0531edaefa
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
hjk
2022-11-28 13:06:13 +01:00
parent 3c8c5b08a8
commit f68db427ef
6 changed files with 20 additions and 23 deletions

View File

@@ -1703,7 +1703,7 @@ void Preprocessor::handleDefineDirective(PPToken *tk)
return;
Macro macro;
macro.setFileName(m_env->currentFile);
macro.setFilePath(FilePath::fromString(m_env->currentFile));
macro.setLine(tk->lineno);
QByteArray macroName = tk->asByteArrayRef().toByteArray();
macro.setName(macroName);