Add OpenCL support

OpenCL is basically C99.
This commit is contained in:
neheb 2017-06-22 17:34:07 -07:00 committed by GitHub
parent 947ace6194
commit ef86ac04b4
1 changed files with 2 additions and 1 deletions

View File

@ -188,7 +188,8 @@ bool Path::isC(const std::string &path)
{
// In unix, ".C" is considered C++ file
const std::string extension = getFilenameExtension(path);
return (extension == ".c");
return extension == ".c" ||
extension == ".cl";
}
bool Path::isCPP(const std::string &path)