1
0
mirror of https://github.com/exaloop/codon.git synced 2025-06-03 15:03:52 +08:00
codon/.gitignore
Sean Farley fb46137161
Fix GCMapAllocator not being used (#369)
* git: ignore clangd cache

* git: also ignore {build,install} dirs with dashes

* re2: fix GCMapAllocator definition

Previously, the GCMapAllocator specified the wrong template arguments
and, thus, would not actually be used. This can be verified by the fact
that `GCMapAllocator::deallocate` used an undefined symbol:
`seq_gc_free`.

C++20 makes this an error like so:

```
error: static assertion failed due to requirement 'is_same<GCMapAllocator<std::pair<seq_str_t, long long>, re2::RE2>, GCMapAllocator<std::pair<const std::pair<seq_str_t, long long>, re2::RE2>, re2::RE2>>::value': [allocator.requirements] states that rebinding an allocator to the same type should result in the original allocator
    static_assert(is_same<allocator_type, __rebind_alloc<__alloc_traits, value_type> >::value,
    ^             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3 errors generated.
```

This patch fixes the undefined symbol of `seq_gc_free` with `seq_free`
along with fixing `<Key, Value>` -> `<std::pair<Key, Value>>`.
2023-05-05 08:36:43 -04:00

72 lines
905 B
Plaintext

######################
# Generic .gitignore #
######################
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.a
*.obj
*.so
*.dylib
*.pyc
build/
build_*/
build-*/
install/
install_*/
install-*/
extra/python/src/jit.cpp
extra/jupyter/build/
# Packages #
############
# it's better to unpack these files and commit the raw source
# git has its own built-in compression methods
*.7z
*.dmg
*.iso
*.jar
*.rar
*.tar
*.zip
**/**.egg-info
# Logs and databases #
######################
*.log
*.sql
*.sqlite
# OS generated files #
######################
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
ehthumbs.db
Thumbs.db
# IDE generated files #
#######################
.idea
.mypy_cache
.vscode
.cache
extra/jupyter/share/jupyter/kernels/codon/kernel.json
extra/python/codon/version.py
scratch*.*
_*
.ipynb_checkpoints
# Testing files #
#################
temp/
playground/