forked from qt-creator/qt-creator
Clang: Add BuildDependencyCollector
IncludeCollector is renamed to BuildDependencyCollector. It is now returning a BuildDependency instead of individual getter. The test coverage is improved too. Task-number: QTCREATORBUG-21379 Change-Id: Ifc2d1c40c85772cf498c21968de526f4408b6023 Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
This commit is contained in:
@@ -135,6 +135,8 @@ clang::tooling::ClangTool ClangTool::createTool() const
|
||||
tool.mapVirtualFile(toStringRef(unsavedFileContent.filePath),
|
||||
toStringRef(unsavedFileContent.content));
|
||||
|
||||
tool.mapVirtualFile("/dummyFile", "#pragma once");
|
||||
|
||||
return tool;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user