summaryrefslogtreecommitdiff
path: root/clang-tools-extra/clangd
diff options
context:
space:
mode:
authorJoseph Huber <jhuber6@vols.utk.edu>2023-05-09 07:56:33 -0500
committerJoseph Huber <jhuber6@vols.utk.edu>2023-05-09 07:58:36 -0500
commit28bdff19e3ad981ef83e372e8c301f1407b82135 (patch)
treeb61430986ecee0cb960ecbc7cf3d71ebce2651a7 /clang-tools-extra/clangd
parent80f442e1ed5d3c247f0d414564bc1572229a806d (diff)
downloadllvm-28bdff19e3ad981ef83e372e8c301f1407b82135.tar.gz
[clangd][NFX][FIX] Fix conflicting symbol name `Expr`
Summary: This class has a member named `Expr` which conflicts with the clang type of the same name due to the namespace. If we want to do this we need to explicitly scope the variable. This was preventing me from building. This was introduced in https://reviews.llvm.org/D148457
Diffstat (limited to 'clang-tools-extra/clangd')
-rw-r--r--clang-tools-extra/clangd/Hover.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang-tools-extra/clangd/Hover.cpp b/clang-tools-extra/clangd/Hover.cpp
index 9b789901e77c..61bed1ad8141 100644
--- a/clang-tools-extra/clangd/Hover.cpp
+++ b/clang-tools-extra/clangd/Hover.cpp
@@ -468,7 +468,7 @@ struct PrintExprResult {
std::optional<std::string> PrintedValue;
/// The Expr object that represents the closest evaluable
/// expression.
- const Expr *Expr;
+ const clang::Expr *Expr;
/// The node of selection tree where the traversal stops.
const SelectionTree::Node *Node;
};