summaryrefslogtreecommitdiff
path: root/lib/syntax_tools
Commit message (Collapse)AuthorAgeFilesLines
...
* | Revert "Prepare release"Henrik Nord2021-02-242-28/+1
| | | | | | | | This reverts commit bbc0f3386c2546af25936730742d8dee1664f1dd.
* | Prepare releaseErlang/OTP2021-02-232-1/+28
| |
* | Merge branch 'maint'Björn Gustavsson2021-02-204-31/+103
|\ \ | |/ | | | | | | | | * maint: beam_lib, cover: Don't crash when an abstract code backend is missing Handle macros in patterns
| * Merge pull request #2964 from gomoripeti/epp_dodger_pattern_macroBjörn Gustavsson2021-02-204-29/+101
| |\ | | | | | | | | | | | | | | | Handle macros in patterns OTP-17064
| | * Handle macros in patternsPéter Gömöri2021-01-114-29/+101
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The dodger used to replace a macro with a local function call. That works in expressions but not in patterns like function heads or catch patterns. Instead of a function call a tuple syntax is used which works in more places. This change is motivated by the commonly used `?EXCEPTION` macro ``` try ... catch ?EXCEPTION(Class, Reason, StackToken) -> ... end. ``` Open source examples: https://github.com/devinus/poolboy/commit/5d40cc517edc9bb8ee70756544167b63f66662f0 https://github.com/eproxus/meck/commit/558e925b48ce257b12e381080c851dc49c87d7bb Fixes ERL-1429
* | | Drop the erl_tidy and igor modules from syntax_toolsRichard Carlsson2021-02-0314-5192/+6
| | | | | | | | | | | | | | | These can now be found at https://github.com/richcarl/erl_tidy and https://github.com/richcarl/igor, respectively.
* | | Merge branch 'maint'Björn Gustavsson2021-02-031-5/+1
|\ \ \ | |/ / | | | | | | | | | | | | | | | * maint: Update primary bootstrap Update deprecations Deprecate all functions in erl_tidy
| * | Deprecate all functions in erl_tidyBjörn Gustavsson2021-02-011-5/+1
| |/
* | syntax_tools: Generalize start line to be locationHans Bolinder2021-01-261-150/+148
| |
* | syntax_tools: Correct handling of annotations of abstract codeHans Bolinder2021-01-267-63/+88
| | | | | | | | | | | | | | | | | | | | | | What used to be a line number in abstract code is now a more general annotation (see erl_anno(3)). The names erl_syntax:set_pos() and erl_syntax:get_pos() are a bit misleading. (The do, however, return the location if given eof or error/warning marker.) Maybe there should be new aliases get_erl_annotation() and set_erl_annotation() in order not to confuse the erl_anno annotation with the syntax_tools annotation.
* | Merge branch 'maint'Henrik Nord2020-12-162-1/+18
|\ \ | |/ | | | | | | | | | | | | | | * maint: Updated OTP version Prepare release # Conflicts: # OTP_VERSION
| * Prepare releaseErlang/OTP2020-12-112-1/+18
| |
* | Merge branch 'maint'Björn Gustavsson2020-12-032-1/+9
|\ \ | |/ | | | | | | * maint: syntax_tools: Deprecate igor and most of erl_tidy
| * syntax_tools: Deprecate igor and most of erl_tidyBjörn Gustavsson2020-12-022-0/+7
| | | | | | | | | | | | | | `igor` and `erl_tidy` are specialized tools that are outside the scope of Erlang/OTP. Therefore, deprecate `igor` and most of `erl_tidy` (there is a project that uses `erl_tidy:file/2` to do pretty-printing, so we will not deprecate that function yet).
* | otp: Remove HiPE and HiPE-related accessoriesJohn Högberg2020-11-091-3/+0
| |
* | Suppress warnings for use of erlang:phash/2Björn Gustavsson2020-11-021-0/+1
| | | | | | | | | | | | We can't update the used hash function, because it must be consistent with a remote node or a term saved to disk by a previous release of OTP.
* | Merge branch 'maint'Henrik Nord2020-09-232-1/+16
|\ \ | |/ | | | | | | | | | | | | | | * maint: Updated OTP version Prepare release # Conflicts: # OTP_VERSION
| * Prepare releaseErlang/OTP2020-09-232-1/+16
| |
* | Merge branch 'maint'Rickard Green2020-06-161-2/+2
|\ \ | |/ | | | | | | * maint: Fix typo in edoc for erl_syntax:operator/1
| * Fix typo in edoc for erl_syntax:operator/1Stavros Aronis2020-06-131-2/+2
| |
* | Merge pull request #2627 from richcarl/drop-obsolete-abstract-formatBjörn Gustavsson2020-05-251-8/+0
|\ \ | |/ |/| | | | | | | Drop old code for handling pre-R15 abstract format OTP-16678
| * Drop old code for handling pre-R15 abstract formatRichard Carlsson2020-05-191-8/+0
| |
* | Prepare releaseErlang/OTP2020-05-112-1/+23
|/
* Revert "Prepare release"Henrik Nord2020-04-222-23/+1
| | | | This reverts commit eee1f3aba92b5a741eabfa1cb6eca0632562777a.
* Prepare releaseErlang/OTP2020-04-222-1/+23
|
* Revert "Prepare release"Henrik Nord2020-03-252-23/+1
| | | | This reverts commit 63638d668efbeb4539ba301328cabbc2636fb154.
* Prepare releaseErlang/OTP2020-03-242-1/+23
|
* Correct usage of the erl_anno moduleHans Bolinder2020-03-031-3/+4
|
* Revert "Prepare release"Henrik Nord2020-02-272-23/+1
| | | | This reverts commit 50e614e7d5fee9e3bfe8a58e7f390c6ea6caf271.
* Prepare releaseErlang/OTP2020-02-262-1/+23
|
* otp: Refactor doc make system and introduce EEP-48Lukas Larsson2020-02-241-96/+5
|
* Only use sub-indent for "when"Pierre Krafft2019-12-221-15/+15
|
* Indent using only spaces instead of mixed-modePierre Krafft2019-12-191-2/+0
|
* Expressions in clauses on separate linesPierre Krafft2019-12-193-28/+48
| | | | | Expressions that are separated by at least one empty line will be separated by exactly one empty line in the output.
* Replace several par with sepPierre Krafft2019-11-151-6/+6
| | | | | par often makes for code that is more compact but less readable. Similar tools opt for readability and we should too!
* Don't print two spaces for typed_record_fieldPierre Krafft2019-11-151-1/+1
| | | | | | | | | | prettypr:par/2 adds a space already -record(a, {a :: a, b :: b}). used to become -record(a, {a :: a, b :: b}). now it becomes -record(a, {a :: a, b :: b}).
* Merge branch 'maint'Hans Nilsson2019-10-071-0/+16
|\ | | | | | | | | | | * maint: Updated OTP version Prepare release
| * Merge branch 'maint-20' into maintHans Nilsson2019-10-071-0/+16
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * maint-20: Updated OTP version Prepare release # Conflicts: # OTP_VERSION # erts/doc/src/notes.xml # erts/vsn.mk # lib/crypto/doc/src/notes.xml # lib/crypto/vsn.mk # lib/snmp/doc/src/notes.xml # lib/snmp/vsn.mk # lib/syntax_tools/doc/src/notes.xml # lib/syntax_tools/vsn.mk # make/otp_version_tickets # otp_versions.table
| | * Prepare releaseErlang/OTP2019-10-042-1/+17
| | |
| | * Merge branch 'zadean/syntax_tools/add_missing_unwrap/OTP-16012/PR-2348' into ↵Erlang/OTP2019-10-043-25/+64
| | |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | maint-20 * zadean/syntax_tools/add_missing_unwrap/OTP-16012/PR-2348: Update test suite Also unwrap map_type_* name and value Add unwrap calls to map_field_* in erl_syntax # Conflicts: # lib/syntax_tools/test/syntax_tools_SUITE.erl
* | | \ Merge branch 'maint'Henrik Nord2019-09-172-1/+17
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | * maint: Updated OTP version Prepare release # Conflicts: # OTP_VERSION
| * | | Prepare releaseErlang/OTP2019-09-172-1/+17
| | | |
* | | | Merge branch 'maint'Ingela Anderton Andin2019-09-121-1/+16
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | * maint: Updated OTP version Prepare release
| * | | Merge branch 'maint-21' into maintIngela Anderton Andin2019-09-121-1/+16
| |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * maint-21: Updated OTP version Prepare release # Conflicts: # OTP_VERSION # erts/doc/src/notes.xml # erts/vsn.mk # lib/inets/doc/src/notes.xml # lib/inets/vsn.mk # lib/kernel/doc/src/notes.xml # lib/kernel/vsn.mk # lib/ssh/doc/src/notes.xml # lib/ssh/vsn.mk # lib/syntax_tools/doc/src/notes.xml # lib/syntax_tools/vsn.mk # make/otp_version_tickets # otp_versions.table
| | * | | Prepare releaseErlang/OTP2019-09-112-1/+17
| | | | |
| | * | | Merge branch 'zadean/syntax_tools/add_missing_unwrap/OTP-16012/PR-2348' into ↵Erlang/OTP2019-09-113-25/+64
| | |\ \ \ | | | | |/ | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | maint-21 * zadean/syntax_tools/add_missing_unwrap/OTP-16012/PR-2348: Update test suite Also unwrap map_type_* name and value Add unwrap calls to map_field_* in erl_syntax # Conflicts: # lib/syntax_tools/test/syntax_tools_SUITE.erl
* | | | | Merge branch 'maint'Hans Bolinder2019-08-263-25/+64
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | * maint: Update test suite Also unwrap map_type_* name and value Add unwrap calls to map_field_* in erl_syntax
| * | | | Merge branch 'zadean/syntax_tools/add_missing_unwrap/OTP-16012/PR-2348' into ↵Hans Bolinder2019-08-263-25/+64
| |\ \ \ \ | | | |/ / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | maint * zadean/syntax_tools/add_missing_unwrap/OTP-16012/PR-2348: Update test suite Also unwrap map_type_* name and value Add unwrap calls to map_field_* in erl_syntax
| | * | | Update test suitezadean2019-08-222-0/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add record with exact and associated map types to type_specs.erl. The record forces the erl_parse format for map types to be retained. Add test wrapped_subtrees to the test suite. It ensures that each erl_parse node it encounters can be wrapped and accessed with erl_syntax:subtrees/1 without error.
| | * | | Also unwrap map_type_* name and valuezadean2019-08-221-12/+12
| | | | |