Skip to content

Commit

Permalink
[clangd][NFX][FIX] Fix conflicting symbol name Expr
Browse files Browse the repository at this point in the history
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
  • Loading branch information
jhuber6 committed May 9, 2023
1 parent 80f442e commit 28bdff1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clang-tools-extra/clangd/Hover.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
Expand Down

0 comments on commit 28bdff1

Please sign in to comment.