Skip to content

Commit

Permalink
[cpp] Configure to support OpenCL
Browse files Browse the repository at this point in the history
Provide coloring and code intelligence for `.cl` files using clangd.

Signed-off-by: Paul Maréchal <paul.marechal@ericsson.com>
  • Loading branch information
paul-marechal committed May 15, 2019
1 parent 559af16 commit 87d8755
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/cpp/src/browser/cpp-grammar-contribution.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export class CppGrammarContribution implements LanguageGrammarDefinitionContribu
// cpp
monaco.languages.register({
id: CPP_LANGUAGE_ID,
extensions: ['.cpp', '.cc', '.cxx', '.hpp', '.hh', '.hxx', '.h', '.ino', '.inl', '.ipp'],
extensions: ['.cpp', '.cc', '.cxx', '.hpp', '.hh', '.hxx', '.h', '.ino', '.inl', '.ipp', 'cl'],
aliases: ['C++', 'Cpp', 'cpp'],
});

Expand Down
2 changes: 1 addition & 1 deletion packages/cpp/src/common/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const CPP_LANGUAGE_ID = 'cpp';
export const CPP_LANGUAGE_NAME = 'C/C++';
// These should become preferences eventually and be forwarded to the server.
export const HEADER_FILE_EXTENSIONS = ['h', 'hxx', 'hh', 'hpp', 'inc'];
export const SOURCE_FILE_EXTENSIONS = ['c', 'cxx', 'C', 'c++', 'cc', 'cpp'];
export const SOURCE_FILE_EXTENSIONS = ['c', 'cxx', 'C', 'c++', 'cc', 'cpp', 'cl'];
export const HEADER_AND_SOURCE_FILE_EXTENSIONS = SOURCE_FILE_EXTENSIONS.concat(HEADER_FILE_EXTENSIONS);

export const CLANGD_EXECUTABLE_DEFAULT = 'clangd';
Expand Down

0 comments on commit 87d8755

Please sign in to comment.