Skip to content

CUDA/CPP extensions#7726

Merged
sean-mcmanus merged 2 commits into
microsoft:mainfrom
jogo-:CUDA-CPP-extensions
Jun 21, 2021
Merged

CUDA/CPP extensions#7726
sean-mcmanus merged 2 commits into
microsoft:mainfrom
jogo-:CUDA-CPP-extensions

Conversation

@jogo-
Copy link
Copy Markdown
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
Comment thread Extension/src/common.ts
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
Copy Markdown
Contributor

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