{"id":13407408,"url":"https://github.com/mitaki28/vscode-clang","last_synced_at":"2025-10-20T21:08:26.409Z","repository":{"id":50039506,"uuid":"49565869","full_name":"mitaki28/vscode-clang","owner":"mitaki28","description":"Completion and Diagnostic for C/C++/Objective-C using Clang","archived":false,"fork":false,"pushed_at":"2023-04-16T23:05:33.000Z","size":193,"stargazers_count":128,"open_issues_count":61,"forks_count":24,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-07-31T20:27:15.242Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mitaki28.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2016-01-13T10:08:31.000Z","updated_at":"2024-05-04T08:52:14.000Z","dependencies_parsed_at":"2024-01-07T06:12:47.029Z","dependency_job_id":"f940be28-f3d9-4677-a4e4-22211894efbe","html_url":"https://github.com/mitaki28/vscode-clang","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitaki28%2Fvscode-clang","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitaki28%2Fvscode-clang/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitaki28%2Fvscode-clang/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitaki28%2Fvscode-clang/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mitaki28","download_url":"https://codeload.github.com/mitaki28/vscode-clang/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243577747,"owners_count":20313696,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-30T20:00:39.620Z","updated_at":"2025-10-20T21:08:21.379Z","avatar_url":"https://github.com/mitaki28.png","language":"TypeScript","funding_links":[],"categories":["C++","TypeScript"],"sub_categories":["[Bash Debug](https://marketplace.visualstudio.com/items?itemName=rogalmic.bash-debug)","[Shellman](https://marketplace.visualstudio.com/items?itemName=Remisa.shellman)","贡献"],"readme":"# C/C++ Clang Command Adapter\n\nCompletion and Diagnostic for C/C++/Objective-C using [Clang](http://clang.llvm.org/) command.\n\n## Important Notes\n\nClang project officialy starts to implement [Language Server](https://github.com/Microsoft/language-server-protocol) named _clangd_.\n(https://github.com/llvm-mirror/clang-tools-extra/tree/master/clangd)\n\nThis extension was renamed to C/C++ Clang Command Adapter to avoid confusion, because this extension is unofficial and only parse output of clang command.\n\n## Requirements\n\n- Install [Clang](http://clang.llvm.org/)\n    - For Max OS X, Clang is installed with Xcode Command Line Tools and `PATH` is configured automatically. \n- Configure the `PATH` environment variable so that you can execute `clang` command.\n    - or specify `clang.executable` configuration (See the next section for detail) \n\n## Configuration\n\nYou can use configuration interface of Visual Studio Code. (Press `F1` and type `User Settings` or `Workspace Settings`)\n\n### Common\n- `clang.executable`: Clang command or the path to the Clang executable (default: `clang`)\n- `clang.cflags`, `clang.cxxflags`, `clang.objcflags`: Compiler Options for C/C++/Objective-C\n\n### Completion\n\n- `clang.completion.enable`: Enable/disable completion feature (default: `true`)\n- `clang.completion.maxBuffer`: Tolerable size of clang output for completion (default: `8 * 1024 * 1024` bytes)\n- `clang.completion.triggerChars`: Trigger completion when the user types one of the characters (default: `[\".\", \":\", \"\u003e\"]`)\n\n### Diagnostic\n\n- `clang.diagnostic.enable`: Enable/disable diagnostic feature (default: `true`)\n- `clang.diagnostic.maxBuffer`: Tolerable size of clang output for diagnostic. (default: `256 * 1024` bytes)\n- `clang.diagnostic.delay`: The delay in millisecond after which diagnostic starts (default: `500`)\n\n### Variables\n\nConfigurations support some variables which are available in `tasks.json`.\nThey can be used inside of strings (e.g. `\"-I${workspaceRoot}/include\"`)\n\n- `${workspaceRoot}`\n- `${cwd}`\n- `${env.ENVIRONMENT_VARIABLE}`\n\n### Note\n\nSince version 0.2.0, `clang.diagnosticDelay`, `clang.enableCompletion`, `clang.enableDiagnostic` is deprecated. \nPlease update as follows:\n\n- `clang.enableCompletion` -\u003e `clang.completion.enable`\n- `clang.enableDiagnostic` -\u003e `clang.diagnostic.enable` \n- `clang.diagnosticDelay` -\u003e `clang.diagnostic.delay`\n\n## Command\n\n- `ClangCommandAdapter: Show Executable and Compile Options`: Showing Clang executable and compile options for the active editor.\n- `ClangCommandAdapter: Trust Workspace`: Trust the current workspace. (see [#Security](#Security))\n- `ClangCommandAdapter: Untrust Workspace`: Untrust the current workspace. (see [#Security](#Security))\n\n## Security\n\nThe following settings may cause security issue, if you are opening a malicious workspece.\n\n- `clang.executable`: Arbitrary executables specified in the workspace-level setting will be executed.\n- `clang.cflags`, `clang.cxxflags`, `clang.objcflags`: Clang command is executed with artibrary options specified in the workspace-level setting.\n\nTherefore, these workspace-level settings are disabled by default.\n- To enable these workspace-level settings, please trust the workspace from dialog that appears when you open the file.\n- To change trust/untrust status of the current workspace, please use `ClangCommandAdapter: Trust Workspace` or `ClangCommandAdapter: Untrust Workspace`.\n\n## Acknowledgements\n\n- Regexp for parsing completion results of Clang is based [autocomplete-clang](https://github.com/yasuyuky/autocomplete-clang).\n\n## Resources\n\n- Repository: https://github.com/mitaki28/vscode-clang\n- Support: https://github.com/mitaki28/vscode-clang/issues\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmitaki28%2Fvscode-clang","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmitaki28%2Fvscode-clang","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmitaki28%2Fvscode-clang/lists"}