Skip to content

Commit e000c2b

Browse files
committed
[include-cleaner] NFC, move the macro location fixme to findHeaders.
1 parent 21f1b2d commit e000c2b

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

clang-tools-extra/include-cleaner/lib/Analysis.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ void walkUsed(llvm::ArrayRef<Decl *> ASTRoots,
3636
}
3737
for (const SymbolReference &MacroRef : MacroRefs) {
3838
assert(MacroRef.Target.kind() == Symbol::Macro);
39-
// FIXME: Handle macro locations.
4039
return CB(MacroRef,
4140
findHeaders(MacroRef.Target.macro().Definition, SM, PI));
4241
}

clang-tools-extra/include-cleaner/lib/FindHeaders.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ llvm::SmallVector<Header> findHeaders(const SymbolLocation &Loc,
1818
llvm::SmallVector<Header> Results;
1919
switch (Loc.kind()) {
2020
case SymbolLocation::Physical: {
21+
// FIXME: Handle macro locations.
2122
// FIXME: Handle non self-contained files.
2223
FileID FID = SM.getFileID(Loc.physical());
2324
const auto *FE = SM.getFileEntryForID(FID);

0 commit comments

Comments
 (0)