forked from qt-creator/qt-creator
Clang: Handle generated files
We don't handled generated files so we got internal parse errors. Change-Id: If75e202f93fe3f71f43e3b1d15c0fb77e20c2248 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
@@ -77,6 +77,11 @@ public:
|
||||
return std::move(name_);
|
||||
}
|
||||
|
||||
Utils::PathString path() const
|
||||
{
|
||||
return {directory_, "/", name_};
|
||||
}
|
||||
|
||||
friend QDataStream &operator<<(QDataStream &out, const FilePath &filePath)
|
||||
{
|
||||
out << filePath.directory_;
|
||||
@@ -106,6 +111,12 @@ public:
|
||||
&& first.directory_ == second.directory_;
|
||||
}
|
||||
|
||||
friend bool operator<(const FilePath &first, const FilePath &second)
|
||||
{
|
||||
return std::tie(first.name_, first.directory_)
|
||||
< std::tie(second.name_, second.directory_);
|
||||
}
|
||||
|
||||
FilePath clone() const
|
||||
{
|
||||
return FilePath(directory_.clone(), name_.clone());
|
||||
|
||||
Reference in New Issue
Block a user