Skip to content

Commit

Permalink
Merge pull request #345 from denizzzka/c_and_i_files
Browse files Browse the repository at this point in the history
Treat .c files as C headers
  • Loading branch information
atilaneves authored Jun 11, 2024
2 parents 866a1bf + 2771429 commit dc92324
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 dc92324

Please sign in to comment.