Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CUDA/CPP extensions #7726

Merged
merged 2 commits into from
Jun 21, 2021
Merged

CUDA/CPP extensions #7726

merged 2 commits into from
Jun 21, 2021

Conversation

jogo-
Copy link
Contributor

@jogo- jogo- commented Jun 19, 2021

* Missing dot: "cu" -> ".cu"
* Useless uppercase ".C" before needed lowercase ".c"
* Add same CPP extensions as here:
https://github.com/microsoft/vscode-cpptools/blob/f82b1beaa0899b67685441325592690a9b664be9/Extension/src/LanguageServer/cppBuildTaskProvider.ts#L83
@@ -89,7 +89,7 @@ export async function getRawJson(path: string | undefined): Promise<any> {

export function fileIsCOrCppSource(file: string): boolean {
const fileExtLower: string = path.extname(file).toLowerCase();
return ["cu", ".C", ".c", ".cpp", ".cc", ".cxx", ".mm", ".ino", ".inl"].some(ext => fileExtLower === ext);
return [".cu", ".c", ".cpp", ".cc", ".cxx", ".c++", ".cp", ".tcc", ".mm", ".ino", ".ipp", ".inl"].some(ext => fileExtLower === ext);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think so -- the input file is made lowercased and the function name is COrCpp. I don't see any C++ specific code that uses this function.

@sean-mcmanus sean-mcmanus merged commit 18d59c2 into microsoft:main Jun 21, 2021
@jogo- jogo- deleted the CUDA-CPP-extensions branch June 22, 2021 06:34
@github-actions github-actions bot locked and limited conversation to collaborators Aug 6, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants