forked from OSchip/llvm-project
[clangd] Fix -Wunused-variable warning (NFC)
GCC warning: ``` /llvm-project/clang-tools-extra/clangd/InlayHints.cpp: In member function ‘bool clang::clangd::InlayHintVisitor::VisitVarDecl(clang::VarDecl*)’: /llvm-project/clang-tools-extra/clangd/InlayHints.cpp:81:15: warning: unused variable ‘AT’ [-Wunused-variable] 81 | if (auto *AT = D->getType()->getContainedAutoType()) { | ^~ ```
This commit is contained in:
parent
912ebf60b1
commit
5b747197f8
|
@ -78,7 +78,7 @@ public:
|
|||
if (isa<DecompositionDecl>(D))
|
||||
return true;
|
||||
|
||||
if (auto *AT = D->getType()->getContainedAutoType()) {
|
||||
if (D->getType()->getContainedAutoType()) {
|
||||
if (!D->getType()->isDependentType()) {
|
||||
// Our current approach is to place the hint on the variable
|
||||
// and accordingly print the full type
|
||||
|
|
Loading…
Reference in New Issue