summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/clangd/FindTarget.h
diff options
context:
space:
mode:
Diffstat (limited to 'clang-tools-extra/clangd/FindTarget.h')
-rw-r--r--clang-tools-extra/clangd/FindTarget.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang-tools-extra/clangd/FindTarget.h b/clang-tools-extra/clangd/FindTarget.h
index 80a8e787d62..9ddd24adb89 100644
--- a/clang-tools-extra/clangd/FindTarget.h
+++ b/clang-tools-extra/clangd/FindTarget.h
@@ -86,6 +86,8 @@ struct ReferenceLoc {
NestedNameSpecifierLoc Qualifier;
/// Start location of the last name part, i.e. 'foo' in 'ns::foo<int>'.
SourceLocation NameLoc;
+ /// True if the reference is a declaration or definition;
+ bool IsDecl = false;
// FIXME: add info about template arguments.
/// A list of targets referenced by this name. Normally this has a single
/// element, but multiple is also possible, e.g. in case of using declarations
OpenPOWER on IntegriCloud