[all-commits] [llvm/llvm-project] 5b7471: [clangd] Fix -Wunused-variable warning (NFC)

nullptr-cpp via All-commits all-commits at lists.llvm.org
Tue Jun 1 01:16:03 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5b747197f8fb83bb7c256fa6cb2010445deb0a85
      https://github.com/llvm/llvm-project/commit/5b747197f8fb83bb7c256fa6cb2010445deb0a85
  Author: Yang Fan <nullptr.cpp at gmail.com>
  Date:   2021-06-01 (Tue, 01 Jun 2021)

  Changed paths:
    M clang-tools-extra/clangd/InlayHints.cpp

  Log Message:
  -----------
  [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()) {
      |               ^~

```




More information about the All-commits mailing list