Skip to content

Commit 355a0a8

Browse files
committed
Remove wrong isInMainFile check in DefineFinder
1 parent bce8732 commit 355a0a8

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

bindgen/defines/DefineFinder.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,6 @@ void DefineFinder::MacroUndefined(const clang::Token &macroNameTok,
104104
const clang::MacroDefinition &md,
105105
const clang::MacroDirective *undef) {
106106
clang::SourceManager &sm = compiler.getSourceManager();
107-
if (!sm.isInMainFile(undef->getLocation())) {
108-
return;
109-
}
110107
if (sm.isWrittenInMainFile(macroNameTok.getLocation()) &&
111108
md.getMacroInfo() && !md.getMacroInfo()->isFunctionLike()) {
112109
std::string macroName = macroNameTok.getIdentifierInfo()->getName();

0 commit comments

Comments
 (0)