Tracepointgen should handle absolute include paths
If building within Yocto with lttng enabled syncqt's generated headers will contain full paths, so the check for `startWith('Q')` must check the basename only Change-Id: I0c3621b2b5062c085ffa0b70c7f16ff9c16c26b7 Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
This commit is contained in:
parent
5d6f12e6ec
commit
6d52ef9c7e
@ -521,9 +521,8 @@ void Parser::addIncludesRecursive(const QString &filename, QList<QString> &inclu
|
|||||||
rinc = info2.absoluteFilePath();
|
rinc = info2.absoluteFilePath();
|
||||||
filename = info2.fileName();
|
filename = info2.fileName();
|
||||||
}
|
}
|
||||||
|
|
||||||
// only search possible qt headers
|
// only search possible qt headers
|
||||||
if (filename.startsWith(QLatin1Char('q'), Qt::CaseInsensitive)) {
|
if (QFileInfo(filename).baseName().startsWith(QLatin1Char('q'), Qt::CaseInsensitive)) {
|
||||||
QString resolved = resolveInclude(rinc);
|
QString resolved = resolveInclude(rinc);
|
||||||
if (!resolved.isEmpty() && !includes.contains(resolved)) {
|
if (!resolved.isEmpty() && !includes.contains(resolved)) {
|
||||||
includes.push_back(resolved);
|
includes.push_back(resolved);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user