{"id":15047295,"url":"https://github.com/flagarde/source_location","last_synced_at":"2025-04-10T00:50:59.473Z","repository":{"id":43379347,"uuid":"369868433","full_name":"flagarde/source_location","owner":"flagarde","description":"cross-platform source_location for c++98 to c++20","archived":false,"fork":false,"pushed_at":"2024-03-20T13:56:17.000Z","size":199,"stargazers_count":6,"open_issues_count":2,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-10T00:50:56.043Z","etag":null,"topics":["clang","cmake","cpp11","cpp17","cpp20","cpp98","gcc","include-only","msvc","msys2","source-location"],"latest_commit_sha":null,"homepage":"https://flagarde.github.io/source_location","language":"CMake","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/flagarde.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}},"created_at":"2021-05-22T17:29:00.000Z","updated_at":"2025-02-12T05:36:41.000Z","dependencies_parsed_at":"2024-03-04T06:26:36.240Z","dependency_job_id":"4a6afaad-60fd-4dc2-adbc-4efcb058e9b1","html_url":"https://github.com/flagarde/source_location","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flagarde%2Fsource_location","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flagarde%2Fsource_location/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flagarde%2Fsource_location/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flagarde%2Fsource_location/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flagarde","download_url":"https://codeload.github.com/flagarde/source_location/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248137999,"owners_count":21053775,"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","cmake","cpp11","cpp17","cpp20","cpp98","gcc","include-only","msvc","msys2","source-location"],"created_at":"2024-09-24T20:56:08.610Z","updated_at":"2025-04-10T00:50:59.452Z","avatar_url":"https://github.com/flagarde.png","language":"CMake","funding_links":[],"categories":[],"sub_categories":[],"readme":"# source_location\ncross-platform pre c++20 `source_location`\n\nIt uses :\n```cpp\n#include \u003csource_location\u003e\n```\nor\n``` cpp\n#include \u003cexperimental/source_location\u003e\n```\nif they are available.\n\n[LC]: https://github.com/flagarde/source_location/actions/workflows/Linux-Clang.yml\n[LCB]: https://github.com/flagarde/source_location/actions/workflows/Linux-Clang.yml/badge.svg\n\n[LG]: https://github.com/flagarde/source_location/actions/workflows/Linux-GCC.yml\n[LGB]: https://github.com/flagarde/source_location/actions/workflows/Linux-GCC.yml/badge.svg\n\n[MC]: https://github.com/flagarde/source_location/actions/workflows/MacOS-Clang.yml\n[MCB]: https://github.com/flagarde/source_location/actions/workflows/MacOS-Clang.yml/badge.svg\n\n[MG]: https://github.com/flagarde/source_location/actions/workflows/MacOS-GCC.yml\n[MGB]: https://github.com/flagarde/source_location/actions/workflows/MacOS-GCC.yml/badge.svg\n\n[MS]: https://github.com/flagarde/source_location/actions/workflows/Windows-MSYS2.yml\n[MSB]: https://github.com/flagarde/source_location/actions/workflows/Windows-MSYS2.yml/badge.svg\n\n[MM]: https://github.com/flagarde/source_location/actions/workflows/Windows-MSVC.yml\n[MMB]: https://github.com/flagarde/source_location/actions/workflows/Windows-MSVC.yml/badge.svg\n\n## Builds\n|        | Linux Clang | Linux GCC | MacOS Clang | MacOS GCC | Windows M2sys | Windows MSVC |\n|--------|-------------|-----------|-------------|-----------|---------------|--------------|\n| Github |[![Linux Clang][LCB]][LC]|[![Linux GCC][LGB]][LG]|[![MacOS Clang][MCB]][MC]|[![MacOS GCC][MGB]][MG]|[![Windows MSYS2][MSB]][MS]|[![Windows MSVC][MMB]][MM]|\n\n## Example\n\n```cpp\n#include \u003ciostream\u003e\n#include \u003csource_location/source_location.hpp\u003e\n\nint main()\n{\n   source_location loc(source_location::current());\n   std::cout \u003c\u003c loc.file_name() \u003c\u003c std::endl;\n   std::cout \u003c\u003c loc.function_name() \u003c\u003c std::endl;\n   std::cout \u003c\u003c loc.line() \u003c\u003c std::endl;\n}\n```\n## Tests\n * On `Linux` :\n    * `gcc-9` : `c++98`, `c++11`, `c++17`, `c++20`\n    * `gcc-10` : `c++98`, `c++11`, `c++17`, `c++20`\n    * `clang-10` : `c++98`, `c++11`, `c++17`, `c++20`\n    * `clang-11` : `c++98`, `c++11`, `c++17`, `c++20`\n  * On `MacOS` :\n    * `gcc-9` : `c++98`, `c++11`, `c++17`, `c++20`\n    * `gcc-10` : `c++98`, `c++11`, `c++17`, `c++20`\n    * `gcc-11` : `c++98`, `c++11`, `c++17`, `c++20`\n    * `clang-12` : `c++98`, `c++11`, `c++17`, `c++20`\n  * On `Windows` :\n    * `MSVC 19.28.29915.0` : `c++98`, `c++11`, `c++17`, `c++20`\n    * `MSYS2 GNU 10.2.0` : `c++98`, `c++11`, `c++17`, `c++20`\n    * `MSYS2 Clang 12.0.0` : `c++98`, `c++11`, `c++17`, `c++20`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflagarde%2Fsource_location","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflagarde%2Fsource_location","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflagarde%2Fsource_location/lists"}