Commit 60d1f355 authored by Nikolai Kosjar's avatar Nikolai Kosjar

Clang: Fix MSVC2015 build

Change-Id: Ife8c2d0be9e82bb897cd4612d24e2b893ffb792d
Reviewed-by: David Schulz's avatarDavid Schulz <david.schulz@qt.io>
parent ca39f63b
......@@ -33,15 +33,23 @@
namespace ClangBackEnd {
struct ReferencesResult {
bool isLocalVariable = false;
QVector<SourceRangeContainer> references;
class ReferencesResult
{
public:
ReferencesResult() = default;
ReferencesResult(bool isLocalVariable, const QVector<SourceRangeContainer> &references)
: isLocalVariable(isLocalVariable)
, references(references)
{}
bool operator==(const ReferencesResult &other) const
{
return isLocalVariable == other.isLocalVariable
&& references == other.references;
}
bool isLocalVariable = false;
QVector<SourceRangeContainer> references;
};
ReferencesResult collectReferences(CXTranslationUnit cxTranslationUnit,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment