spack/lib/spack
Todd Gamblin 93a6c51d88 package_hash: rework RemoveDirectives and add a test
Previously we used `directives.__all__` to get directive names, but it wasn't
quite right -- it included `DirectiveMeta`, etc.  It's not wrong, but it's also
not the clearest way to do this.

- [x] Refactor `@directive` to track names in `directive_names` global
- [x] Rename `_directive_names` to `_directive_dict_names` in `DirectiveMeta`
- [x] Add a test for `RemoveDirectives`

Co-authored-by: Danny McClanahan <1305167+cosmicexplorer@users.noreply.github.com>
2022-01-12 06:14:18 -08:00
..
docs Fix table formatting (#28037) 2021-12-23 16:02:09 +01:00
env Support packages which need to explicitly refer to dpcpp by name (#27168) 2021-12-02 15:49:20 -08:00
external unparser: implement operator precedence algorithm for unparser 2022-01-12 06:14:18 -08:00
llnl Set backup=False by default in filter_file (#28036) 2021-12-23 16:02:09 +01:00
spack package_hash: rework RemoveDirectives and add a test 2022-01-12 06:14:18 -08:00