{"id":19682419,"url":"https://github.com/sublimelinter/sublimelinter-clang","last_synced_at":"2025-04-29T05:30:29.508Z","repository":{"id":141124462,"uuid":"123627559","full_name":"SublimeLinter/SublimeLinter-clang","owner":"SublimeLinter","description":"SublimeLinter plugin for C/C++, using clang","archived":false,"fork":false,"pushed_at":"2025-04-24T10:37:33.000Z","size":28,"stargazers_count":23,"open_issues_count":0,"forks_count":4,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-04-24T11:34:15.467Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/SublimeLinter.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,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2018-03-02T20:30:12.000Z","updated_at":"2025-04-24T10:37:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"856ff7f3-dde3-4973-8325-7c0249cb2634","html_url":"https://github.com/SublimeLinter/SublimeLinter-clang","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SublimeLinter%2FSublimeLinter-clang","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SublimeLinter%2FSublimeLinter-clang/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SublimeLinter%2FSublimeLinter-clang/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SublimeLinter%2FSublimeLinter-clang/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SublimeLinter","download_url":"https://codeload.github.com/SublimeLinter/SublimeLinter-clang/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251444056,"owners_count":21590405,"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-11-11T18:10:41.445Z","updated_at":"2025-04-29T05:30:29.473Z","avatar_url":"https://github.com/SublimeLinter.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"SublimeLinter-clang\n=========================\n\nThis linter plugin for [SublimeLinter](https://github.com/SublimeLinter/SublimeLinter3) provides an interface to [clang](http://clang.llvm.org/).\nIt will be used with files that have the C/C Improved/C++ syntax.\n\n## Installation\nSublimeLinter must be installed in order to use this plugin.\n\nPlease use [Package Control](https://packagecontrol.io) to install the linter plugin.\n\nBefore using this plugin, ensure that `clang` is installed on your system.\n- Mac OS X: clang should be already bundled.\n- Linux: clang can be easily installed using most package managers.\n- Windows: the situation is a little trickier, especially with C++. One way to go is to install [mingw with clang](http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win64/Personal%20Builds/rubenvb/). Both gcc and clang packages should be installed into the same directory.\n\nOnce `clang` is installed, ensure it is in your system PATH so that SublimeLinter can find it.\nThe docs cover [troubleshooting PATH configuration](http://sublimelinter.com/en/latest/troubleshooting.html#finding-a-linter-executable)\n\n## Settings\n\nWe have two settings sections. 'clang' for c files, and 'clang++' to configure the linter for c++ files. E.g.\n\n```\n{\n    \"linters\":\n    {\n        \"clang\": {\n            \"args\": \"-fvery-important\",\n            \"I\": [\n                \"${folder}/3rdparty/bar/include\",\n                \"${folder}/3rdparty/baz\"\n            ]\n        },\n        \"clang++\": {\n            \"args\": \"-falso-important\"\n        }\n    }\n},\n```\n\nNote: 'args' has the default value '-Wall -fsyntax-only -fno-caret-diagnostics', so make sure to include them when overriding 'args'.\n\nAll common settings information can be found here:\n\n- SublimeLinter settings: http://sublimelinter.com/en/latest/settings.html\n- Linter settings: http://sublimelinter.com/en/latest/linter_settings.html\n\nAdditional settings for SublimeLinter-clang:\n\n|Setting|Description|\n|:------|:----------|\n|I|A list of directories to be added to the header search paths.|\n|isystem|A list of directories to be added to the system header search paths.|\n|x|Automatically set depending on the file type.|\n\nSublimeLinter allows [expansion variables](http://sublimelinter.readthedocs.io/en/latest/settings.html#settings-expansion). For example, '${folder}' can be used to specify a path relative to the project folder.\n\n## Troubleshooting\nC/C++ linting is not always straightforward. A few things to try when there's (almost) no linting information available:\n- Try to compile from the command line, and verify it works.\n- The linter might be missing some header files. They can be added with \"include_dirs\".\n- Sometimes clang fails to locate the C++ standard library headers.\nAssuming the compilation works when executed via command line, try to compile with `clang++ -v`.\nThis will display all of the hidden flags clang uses. As a last resort, they can all be added as \"args\".\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsublimelinter%2Fsublimelinter-clang","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsublimelinter%2Fsublimelinter-clang","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsublimelinter%2Fsublimelinter-clang/lists"}