hokein created this revision. hokein added a reviewer: kadircet. Herald added subscribers: arphaman, jkorous, MaskRay, ilya-biryukov. Herald added a project: clang.
Extend our extension to support detecting these files as C++ files based on the first line (`-*- C++ -*-`), it will make clangd work on C++ standard headers (e.g. iostream). Repository: rG LLVM Github Monorepo https://reviews.llvm.org/D63397 Files: clang-tools-extra/clangd/clients/clangd-vscode/package.json Index: clang-tools-extra/clangd/clients/clangd-vscode/package.json =================================================================== --- clang-tools-extra/clangd/clients/clangd-vscode/package.json +++ clang-tools-extra/clangd/clients/clangd-vscode/package.json @@ -50,6 +50,10 @@ "url": "http://llvm.org/svn/llvm-project/clang-tools-extra/trunk/clangd/clients/clangd-vscode/" }, "contributes": { + "languages": [{ + "id": "cpp", + "firstLine": ".*-\\*-\\s*C\\+\\+\\s*-\\*-.*" + }], "configuration": { "type": "object", "title": "clangd configuration",
Index: clang-tools-extra/clangd/clients/clangd-vscode/package.json =================================================================== --- clang-tools-extra/clangd/clients/clangd-vscode/package.json +++ clang-tools-extra/clangd/clients/clangd-vscode/package.json @@ -50,6 +50,10 @@ "url": "http://llvm.org/svn/llvm-project/clang-tools-extra/trunk/clangd/clients/clangd-vscode/" }, "contributes": { + "languages": [{ + "id": "cpp", + "firstLine": ".*-\\*-\\s*C\\+\\+\\s*-\\*-.*" + }], "configuration": { "type": "object", "title": "clangd configuration",
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits