{"id":15991070,"url":"https://github.com/friendlyanon/check-type-align","last_synced_at":"2026-03-19T18:26:55.326Z","repository":{"id":68573909,"uuid":"451242307","full_name":"friendlyanon/check-type-align","owner":"friendlyanon","description":"Check the alignment requirement of a type in CMake","archived":false,"fork":false,"pushed_at":"2024-12-31T01:28:06.000Z","size":51,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-01T20:13:17.730Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"CMake","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/friendlyanon.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2022-01-23T22:03:11.000Z","updated_at":"2024-12-31T01:28:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"76cf5979-55a8-496c-94ba-2eb8201339b6","html_url":"https://github.com/friendlyanon/check-type-align","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/friendlyanon/check-type-align","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/friendlyanon%2Fcheck-type-align","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/friendlyanon%2Fcheck-type-align/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/friendlyanon%2Fcheck-type-align/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/friendlyanon%2Fcheck-type-align/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/friendlyanon","download_url":"https://codeload.github.com/friendlyanon/check-type-align/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/friendlyanon%2Fcheck-type-align/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268415800,"owners_count":24246809,"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","status":"online","status_checked_at":"2025-08-02T02:00:12.353Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-10-08T05:41:39.789Z","updated_at":"2026-02-10T04:31:15.549Z","avatar_url":"https://github.com/friendlyanon.png","language":"CMake","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CheckTypeAlign\n\nThis CMake module works similarly to [CheckTypeSize][1], with the addition of\nthe `CHECK_TYPE_ALIGN_USE_EXTENSION` cache variable. This can be set to\nsomething like `__alignof__` on Clang or `__alignof` on MSVC to skip detection\nor to provide an extension that is not known by the module. Check the\n[`CheckTypeAlign.c.in`](cmake/CheckTypeAlign.c.in#L33) source file for known\ncompilers and their extensions. If you can help expanding the list, please open\nan issue.\n\nThe only real difference from [CheckTypeSize][1] is due to the way `alignof` is\nspecified by the C++ and C standards; it cannot accept an expression as its\nargument, only a `type-id`. The compiler extensions all support the former,\nhowever the main target is the standard way, so the tests do not cover\nexpressions. In C++ mode, you can still use `decltype` to convert an expression\nto a type.\n\nThis module requires CMake \u003e= 3.9.\n\n# Usage\n\nThis module is usable as a proper CMake package:\n\n```\nfind_package(CheckTypeAlign REQUIRED)\ncheck_type_align(int ALIGNOF_INT)\n```\n\nMake sure [`find_package`][2] can find it when configuring your project.\n\n[1]: https://cmake.org/cmake/help/latest/module/CheckTypeSize.html\n[2]: https://cmake.org/cmake/help/latest/command/find_package.html#config-mode-search-procedure\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffriendlyanon%2Fcheck-type-align","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffriendlyanon%2Fcheck-type-align","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffriendlyanon%2Fcheck-type-align/lists"}