[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:
Yang Fan 2021-06-01 16:15:09 +08:00
parent 912ebf60b1
commit 5b747197f8
No known key found for this signature in database
GPG Key ID: 717E4EB972E515EF
1 changed files with 1 additions and 1 deletions

View File

@ -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