summaryrefslogtreecommitdiff
path: root/src/plugins/cpptools/cppfindreferences.cpp
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@qt.io>2020-08-28 14:07:16 +0200
committerChristian Kandeler <christian.kandeler@qt.io>2020-09-03 14:32:47 +0000
commit45dd074441b4477e9bd90a61c4875f70bda2feda (patch)
tree560b3263418a5c459f551d7acf77648c4c27076f /src/plugins/cpptools/cppfindreferences.cpp
parent0ceb9f487c64b06a2298d0cff1186a3c6d0d0001 (diff)
downloadqt-creator-45dd074441b4477e9bd90a61c4875f70bda2feda.tar.gz
CPlusPlus: Categorize "Find Usages" results
That is, find out whether a certain access was a read, a write, a declaration or something else, and report the result to upper layers. Follow-up patches can make this information visible to users. Task-number: QTCREATORBUG-12734 Task-number: QTCREATORBUG-19373 Change-Id: Iee79e39dd1eb5a986a7e27846991e0e01b2c3a2f Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'src/plugins/cpptools/cppfindreferences.cpp')
-rw-r--r--src/plugins/cpptools/cppfindreferences.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/plugins/cpptools/cppfindreferences.cpp b/src/plugins/cpptools/cppfindreferences.cpp
index 131d0fca94..1f567bed7e 100644
--- a/src/plugins/cpptools/cppfindreferences.cpp
+++ b/src/plugins/cpptools/cppfindreferences.cpp
@@ -650,8 +650,9 @@ restart_search:
if (macro.name() == useMacro.name()) {
unsigned column;
const QString &lineSource = matchingLine(use.bytesBegin(), source, &column);
- usages.append(CPlusPlus::Usage(fileName, lineSource, use.beginLine(), column,
- useMacro.nameToQString().size()));
+ usages.append(CPlusPlus::Usage(fileName, lineSource,
+ CPlusPlus::Usage::Type::Other, use.beginLine(),
+ column, useMacro.nameToQString().size()));
}
}
}