{"id":21984441,"url":"https://github.com/alesiong/clang-tidy-linter","last_synced_at":"2026-03-03T12:39:14.378Z","repository":{"id":34755467,"uuid":"137027107","full_name":"alesiong/clang-tidy-linter","owner":"alesiong","description":"A Visual Studio Code extension to lint code by clang-tidy.","archived":false,"fork":false,"pushed_at":"2022-12-07T19:34:57.000Z","size":109,"stargazers_count":17,"open_issues_count":23,"forks_count":10,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-30T13:51:16.272Z","etag":null,"topics":["clang-tidy","linter","underdevelopment","vscode","vscode-extension"],"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/alesiong.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-06-12T06:29:44.000Z","updated_at":"2023-08-06T08:55:13.000Z","dependencies_parsed_at":"2023-01-15T08:59:15.081Z","dependency_job_id":null,"html_url":"https://github.com/alesiong/clang-tidy-linter","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alesiong%2Fclang-tidy-linter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alesiong%2Fclang-tidy-linter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alesiong%2Fclang-tidy-linter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alesiong%2Fclang-tidy-linter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alesiong","download_url":"https://codeload.github.com/alesiong/clang-tidy-linter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251659412,"owners_count":21623046,"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":["clang-tidy","linter","underdevelopment","vscode","vscode-extension"],"created_at":"2024-11-29T18:09:33.777Z","updated_at":"2026-03-03T12:39:09.344Z","avatar_url":"https://github.com/alesiong.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Clang Tidy Linter\n\nThis extension uses [clang-tidy](http://clang.llvm.org/extra/clang-tidy/) to lint C/C++ files.\n\n**This extension is in a very early stage of development.** You will need to do some configuration before you can use it. But this extension is still kind of \"usable\".\n\n## Features\n\nBasic diagnostic(linter) and quick fixes for the C/C++ source files with the clang-tidy.\n\n## Requirements\n\nAs for now you have to download/compile the clang-tidy executable. Maybe executables will be shipped with this extension in the future. The download link for official prebuilt binaries is \u003chttp://releases.llvm.org/download.html\u003e.\n\n## Extension Settings\n\nYou may need to modify some default settings to get this extension to work for now.\n\n`clangTidy.executable`: You need to manually set this to your `clang-tidy` executable file.\n\n`clangTidy.systemIncludePath`: If you use the downloaded prebuilt binaries, it may fail to find some system headers. So put the system include paths here.\n\n`clangTidy.lintLanguages`: What languages do you want to lint?\n\n`clangTidy.extraCompilerArgs`: Extra arguments that pass to the **compiler** (not `clang-tidy`).\n\n`clangTidy.headerFilter`: Value for `-header-filter` command line argument.\n\n`clangTidy.args`: Additional arguments to pass to `clang-tidy`\n\nIf you want to configure the checks of clang tidy, create a `.clang-tidy` file in your working directory (please refer to the `clang-tidy`'s document for detail).\n\n## Known Issues\n\nSource files can only be lint when you save or open it.\n\nYou have to modify `clangTidy.extraCompilerArgs` setting if your C/C++ project has custom include paths.\n\n## Contribution\n\nRepository: \u003chttps://github.com/alesiong/clang-tidy-linter\u003e\n\nI'm a beginner to vscode extension development, so if you have any suggestions, don't hesitate to post issues and/or pull requests.\n\n## Road Map (TODOs)\n\n1. Refactor `server.ts`, it is now in a very bad structure (with lots of functions and global variables)\n\n2. Write tests\n\n3. Support for on-the-fly linting (if possible)\n\n4. Support for custom include paths through settings and by reading `.vscode/c_cpp_properties.json`\n\n5. Ship clang-tidy binaries\n\n## Know Issues\n\n- When using `-p compile_commands.json`, saving a header or opening a header file for the first time can clear existing quick fixes for that file.\n  - To regenerate the fixes, touch a cpp file which includes that header file.\n  - `compile_commands.json` can be generated from CMake when `CMAKE_EXPORT_COMPILE_COMMANDS` is on.\n\n## Release Notes\n\n### 0.0.1\n\nThe very first beta version published to the market.\n\n### 0.0.2\n\nSupport Windows (not tested).\nAdd code actions(quick fixes) support.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falesiong%2Fclang-tidy-linter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falesiong%2Fclang-tidy-linter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falesiong%2Fclang-tidy-linter/lists"}