Skip to content

Commit

Permalink
Treat .c and .i files as C headers
Browse files Browse the repository at this point in the history
  • Loading branch information
denizzzka committed Jun 3, 2024
1 parent 739d665 commit 1a9e969
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion source/dpp/expansion/package.d
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,10 @@ from!"clang".Cursor mergeLeaves(from!"clang".Cursor lhs, from!"clang".Cursor rhs
bool isCppHeader(in from!"dpp.runtime.options".Options options, in string headerFileName) @safe pure {
import std.path: extension;
if(options.parseAsCpp) return true;
return headerFileName.extension != ".h";
return
headerFileName.extension != ".h" &&
headerFileName.extension != ".c" &&
headerFileName.extension != ".i";
}


Expand Down

0 comments on commit 1a9e969

Please sign in to comment.