[clang-tools-extra] [clang-include-fixer] Remove an unused "using" decl (NFC) (PR #140354)
via cfe-commits
cfe-commits at lists.llvm.org
Fri May 16 22:06:32 PDT 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-clang-tools-extra
Author: Kazu Hirata (kazutakahirata)
<details>
<summary>Changes</summary>
We do use MappingTraits in this file, but all uses are inside the
llvm::yaml namespace, so we don't rely on the "using" decl.
---
Full diff: https://github.com/llvm/llvm-project/pull/140354.diff
1 Files Affected:
- (modified) clang-tools-extra/clang-include-fixer/find-all-symbols/SymbolInfo.cpp (-1)
``````````diff
diff --git a/clang-tools-extra/clang-include-fixer/find-all-symbols/SymbolInfo.cpp b/clang-tools-extra/clang-include-fixer/find-all-symbols/SymbolInfo.cpp
index 4a5f8353b4105..3ac3f73b6cb9a 100644
--- a/clang-tools-extra/clang-include-fixer/find-all-symbols/SymbolInfo.cpp
+++ b/clang-tools-extra/clang-include-fixer/find-all-symbols/SymbolInfo.cpp
@@ -12,7 +12,6 @@
#include "llvm/Support/YAMLTraits.h"
#include "llvm/Support/raw_ostream.h"
-using llvm::yaml::MappingTraits;
using ContextType = clang::find_all_symbols::SymbolInfo::ContextType;
using clang::find_all_symbols::SymbolInfo;
using clang::find_all_symbols::SymbolAndSignals;
``````````
</details>
https://github.com/llvm/llvm-project/pull/140354
More information about the cfe-commits
mailing list