Skip to content

Commit

Permalink
feat: recognize additional C/C++ source code file extensions (#27)
Browse files Browse the repository at this point in the history
Recognize ipp, inl, tcc, and tpp as potential C/C++ source code files.

Resolves #11
  • Loading branch information
nightlark committed Dec 20, 2024
1 parent da3e605 commit b4d92ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/walker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ pub fn process_files(files: Vec<DirEntry>) {

fn is_source_code(entry: &DirEntry) -> bool {
let extensions = vec![
"h", "hpp", "c", "cc", "hh", "cpp", "h++", "c++", "cxx", "hxx", "ixx", "cppm", "ccm",
"c++m", "cxxm",
"h", "c", "hh", "cc", "hpp", "cpp", "h++", "c++", "hxx", "cxx", "cppm", "ccm", "c++m",
"cxxm", "ipp", "ixx", "inl", "tcc", "tpp",
];
if entry.file_type().is_file() {
if let Some(ext) = entry.path().extension() {
Expand Down

0 comments on commit b4d92ea

Please sign in to comment.