Skip to content

Commit

Permalink
Treat .c 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 2771429
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion source/dpp/expansion/package.d
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,9 @@ 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";
}


Expand Down

0 comments on commit 2771429

Please sign in to comment.