summaryrefslogtreecommitdiff
path: root/clang-tools-extra/clang-include-fixer
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2022-07-14 21:13:57 -0700
committerJonas Devlieghere <jonas@devlieghere.com>2022-07-14 21:17:48 -0700
commit888673b6e3bf0182fb5f154eb3231c9ae022acca (patch)
tree5920eb6c26de7d1f48fd76a4d33c0dd36c163f3f /clang-tools-extra/clang-include-fixer
parentef0081d608298db65371f9869c1371fcfc74a778 (diff)
downloadllvm-888673b6e3bf0182fb5f154eb3231c9ae022acca.tar.gz
Revert "[clang] Implement ElaboratedType sugaring for types written bare"
This reverts commit 7c51f02effdbd0d5e12bfd26f9c3b2ab5687c93f because it stills breaks the LLDB tests. This was re-landed without addressing the issue or even agreement on how to address the issue. More details and discussion in https://reviews.llvm.org/D112374.
Diffstat (limited to 'clang-tools-extra/clang-include-fixer')
-rw-r--r--clang-tools-extra/clang-include-fixer/find-all-symbols/FindAllSymbols.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/clang-tools-extra/clang-include-fixer/find-all-symbols/FindAllSymbols.cpp b/clang-tools-extra/clang-include-fixer/find-all-symbols/FindAllSymbols.cpp
index e000eae999bd..70d4d7cfdff3 100644
--- a/clang-tools-extra/clang-include-fixer/find-all-symbols/FindAllSymbols.cpp
+++ b/clang-tools-extra/clang-include-fixer/find-all-symbols/FindAllSymbols.cpp
@@ -215,8 +215,7 @@ void FindAllSymbols::registerMatchers(MatchFinder *MatchFinder) {
// Uses of most types: just look at what the typeLoc refers to.
MatchFinder->addMatcher(
typeLoc(isExpansionInMainFile(),
- loc(qualType(allOf(unless(elaboratedType()),
- hasDeclaration(Types.bind("use")))))),
+ loc(qualType(hasDeclaration(Types.bind("use"))))),
this);
// Uses of typedefs: these are often transparent to hasDeclaration, so we need
// to handle them explicitly.