|
|
|
@ -545,7 +545,8 @@ Usages::Clang::PathSet Usages::Clang::find_paths(const boost::filesystem::path & |
|
|
|
bool Usages::Clang::is_header(const boost::filesystem::path &path) { |
|
|
|
bool Usages::Clang::is_header(const boost::filesystem::path &path) { |
|
|
|
auto ext = path.extension(); |
|
|
|
auto ext = path.extension(); |
|
|
|
if(ext == ".h" || // c headers
|
|
|
|
if(ext == ".h" || // c headers
|
|
|
|
ext == ".hh" || ext == ".hp" || ext == ".hpp" || ext == ".h++" || ext == ".tcc") // c++ headers
|
|
|
|
ext == ".hh" || ext == ".hp" || ext == ".hpp" || ext == ".h++" || ext == ".tcc" || // c++ headers
|
|
|
|
|
|
|
|
ext == ".cuh") // CUDA headers
|
|
|
|
return true; |
|
|
|
return true; |
|
|
|
else |
|
|
|
else |
|
|
|
return false; |
|
|
|
return false; |
|
|
|
@ -554,7 +555,8 @@ bool Usages::Clang::is_header(const boost::filesystem::path &path) { |
|
|
|
bool Usages::Clang::is_source(const boost::filesystem::path &path) { |
|
|
|
bool Usages::Clang::is_source(const boost::filesystem::path &path) { |
|
|
|
auto ext = path.extension(); |
|
|
|
auto ext = path.extension(); |
|
|
|
if(ext == ".c" || // c sources
|
|
|
|
if(ext == ".c" || // c sources
|
|
|
|
ext == ".cpp" || ext == ".cxx" || ext == ".cc" || ext == ".C" || ext == ".c++") // c++ sources
|
|
|
|
ext == ".cpp" || ext == ".cxx" || ext == ".cc" || ext == ".C" || ext == ".c++" || // c++ sources
|
|
|
|
|
|
|
|
ext == ".cu") // CUDA sources
|
|
|
|
return true; |
|
|
|
return true; |
|
|
|
else |
|
|
|
else |
|
|
|
return false; |
|
|
|
return false; |
|
|
|
|