forked from OSchip/llvm-project
[include-cleaner] Fix walkUsed only report a single macro ref.
This commit is contained in:
parent
2c1fa73459
commit
962343a979
|
@ -38,8 +38,7 @@ void walkUsed(llvm::ArrayRef<Decl *> ASTRoots,
|
|||
}
|
||||
for (const SymbolReference &MacroRef : MacroRefs) {
|
||||
assert(MacroRef.Target.kind() == Symbol::Macro);
|
||||
return CB(MacroRef,
|
||||
findHeaders(MacroRef.Target.macro().Definition, SM, PI));
|
||||
CB(MacroRef, findHeaders(MacroRef.Target.macro().Definition, SM, PI));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue