summaryrefslogtreecommitdiff
path: root/lib/syntax_tools
Commit message (Collapse)AuthorAgeFilesLines
* Revert "Prepare release"Henrik Nord2023-04-122-16/+1
| | | | This reverts commit d4e4511b19f4126d9271a6e3a8fa2eb716da7e85.
* Prepare releaseErlang/OTP2023-04-112-1/+16
|
* Revert "Prepare release"Henrik Nord2023-03-222-16/+1
| | | | This reverts commit 1cf126f91eb533783409da95b117207d8c13d9aa.
* Prepare releaseErlang/OTP2023-03-212-1/+16
|
* Merge branch 'maint' into masterHenrik Nord2023-03-082-1/+17
|\ | | | | | | | | | | | | * maint: Updated OTP version Prepare release Update copyright year
| * Prepare releaseErlang/OTP2023-03-062-1/+17
| |
* | Merge branch 'maint'Björn Gustavsson2023-02-211-12/+11
|\ \ | |/ | | | | | | * maint: Removed unnecessary <em> tags
| * Removed unnecessary <em> tagsGerard Tabone2023-02-171-12/+11
| |
* | Revert "Prepare release"Henrik Nord2023-02-152-16/+1
| | | | | | | | This reverts commit 587341d994f91af5b30483ee9434e932e3d7b802.
* | Prepare releaseErlang/OTP2023-02-142-1/+16
| |
* | Support map comprehensions in syntax_toolsBjörn Gustavsson2023-02-033-2/+177
|/
* named_fun_expr annotate bindings fixMarko Minđek2022-11-302-2/+43
|
* Merge branch 'deterministic-build' of https://github.com/TD5/otp into maintBjörn Gustavsson2022-06-291-0/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | * 'deterministic-build' of https://github.com/TD5/otp: make: Allow OTP to be built deterministically compiler: Make test_lib robust to +deterministic compiler: Make compiler forward +determinsitic flag to epp compiler: Make yecc respect +deterministic compiler: Make leex respect +deterministic compiler: Make asn1ct_gen respect +deterministic compiler: Make EPP respect +deterministic OTP-18165
| * make: Allow OTP to be built deterministicallyTom Davies2022-06-241-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a --enable-deterministic-build to the configure script, which sets ERL_DETERMINISTIC=yes throughout the relevant Makefiles, which then invoke the relevant build stages with the +deterministic option. This addresses absolute paths being included in generated .erl files and compiled .beam files that resulted in builds from different source directories generating different artefacts (which is a component of the issue in erlang#4482). I think it would make sense to make this the default at some stage, but I've put the change behind a flag for now to decouple making deterministic OTP builds possible from making them the default. Having +deterministic set results in compiler options being removed from the module info for modules where this options was used. This may have other implications for users of OTP. For tests themselves, +determinism is not set, since many test cases depend on accessing the test module's compilation options, or other features not available in deterministic mode, in order to configure themselves. For tests of the determinism feature specifically, +deterministic must be explicitly passed to the compiler within the relevant test cases.
* | Prepare releaseErlang/OTP2022-05-173-2/+44
|/
* Merge pull request #5902 from soulna/soulna/error-fix/doc/syntax_toolsLukas Larsson2022-04-191-1/+1
|\ | | | | remove extra argument
| * remove extra argumentsoulna2022-04-181-1/+1
| |
* | Revert "Prepare release"Henrik Nord2022-04-133-40/+2
| | | | | | | | This reverts commit a2c8df222e6d02fa518d5d6cbbea75a9dd720d30.
* | Prepare releaseErlang/OTP2022-04-113-2/+40
| |
* | [features] Change format and argument order for options and directivesCons T Åhs2022-04-061-2/+2
| | | | | | | | | | | | * Use {feature, <feature>, enable|disable} in options and -compile(..) * Use -feature(<feature>, enable|disable) in module
* | Revert "Prepare release"Henrik Nord2022-03-243-40/+2
| | | | | | | | This reverts commit 435bc5e68dd45ff6f7992077998930519208e910.
* | Prepare releaseErlang/OTP2022-03-233-2/+40
| |
* | [features] Use real features supportCons T Åhs2022-03-211-8/+5
| |
* | [features, test] Adjust tests to features implementationCons T Åhs2022-03-211-11/+9
| | | | | | | | | | | | | | | | | | * Add knowledge about new Meta chunk * Add knowledge about new macros * Make some tests pass in a Bad Way, by using functions that should not be available at runtime Co-authored-by: Lukas Larsson <garazdawi@gmail.com>
* | [features] Add support for handling featuresCons T Åhs2022-03-211-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Utility and features specifications in erl_features * Compiler support * Add predefined macros for features * Add support for parsing (long) options to erlc * Conditionally allow 'else' (also used in preprocessor) as keyword * This will be needed for EEP49 * Add feature info in new Meta chunk in beam file * Add warning for atoms that are keywords in features * Add new feature description options to erlc * -list-feature to list existing features in short form * -describe-feature <ftr> to get long description of feature * Runtime support * Store enabled features with persistent_term (only set at startup) * Check features in Meta chunk to determine whether load is allowed * Features use for test (in erl_features) active when env variable OTP_TEST_FEATURES is set to true * init of erl_features is lazy * Using on_load functions only work after code_server is up and running.
* | Revert "Prepare release"Henrik Nord2022-02-162-20/+1
| | | | | | | | This reverts commit 95f5a792610ed4c87457863cb03b047414ad4a14.
* | Prepare releaseErlang/OTP2022-02-152-1/+20
| |
* | Update copyright yearErlang/OTP2022-02-151-1/+1
| |
* | syntax_tools: Implement support for maybe ... endBjörn Gustavsson2022-02-116-19/+350
| |
* | Merge pull request #5631 from josevalim/jv-eval-external-fun-handler-annoBjörn Gustavsson2022-02-111-1/+1
|\ \ | | | | | | | | | | | | Pass Anno to ExternalFunctionHandler in erl_eval OTP-17925
| * | Pass Anno to ExternalFunctionHandler in erl_evalJosé Valim2022-02-081-1/+1
| | | | | | | | | | | | | | | | | | | | | This allows code using `erl_eval` to provide better stacktraces if desired. For this purpose, we also make sure all errors raised from `erl_eval` pass through the ExternalFunctionHandler.
* | | Merge pull request #5509 from hazbo/fix-analyze_attribute-remove-attr-from-tupleBjörn Gustavsson2022-01-251-2/+3
|\ \ \ | | | | | | | | | | | | | | | | Fixes analysing a wild attribute to return Info OTP-17894
| * | | Fixes analysing a wild attribute to return InfoHarry Lawrence2021-12-121-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As per issue #4671: erl_syntax_lib:analyze_attribute({attribute,17,mark,mark_1}). returns {mark, {mark, mark_1}} due to the attribute being wrapped on line 1320: {A, analyze_attribute(A, Node)} when what would be expected as per the documentation is: {mark, mark1} Returning *just* the Info from {_, Info} = analyze_wild_attribute(Node) within analyze_attribute/2, this double wrapping does not occur, fixing the original issue.
* | | | otp: Fix `make TYPE=$TYPE` to work for all typesLukas Larsson2022-01-214-4/+4
| |/ / |/| |
* | | Fix typos in lib/syntax_toolsKian-Meng Ang2022-01-034-6/+6
| |/ |/|
* | Update copyright yearRickard Green2021-12-153-3/+3
|/
* test suites: replace ?t: with test_server:Maxim Fedorov2021-09-081-16/+16
| | | | | | Removing ?t retained for backward compatibility allows to search for test_server callsites easier. Replace ?t:fail and test_server:fail with ct:fail.
* Prepare releaseErlang/OTP2021-05-102-1/+48
|
* Revert "Prepare release"Henrik Nord2021-04-212-48/+1
| | | | This reverts commit 221e41bd32e433f6e08bbfedb013fc49c9aa1283.
* Prepare releaseErlang/OTP2021-04-192-1/+48
|
* syntax_tools: Output parentheses around BitStringExpr in bcHans Bolinder2021-04-132-1/+3
|
* Merge pull request #4705 from gomoripeti/fix_function_type_spec/OTP-17302Lukas Larsson2021-04-061-1/+1
|\ | | | | Fix erl_syntax:function_type/2 spec
| * Fix erl_syntax:function_type/2 specPéter Gömöri2021-04-021-1/+1
| |
* | Revert "Prepare release"Henrik Nord2021-03-262-28/+1
| | | | | | | | This reverts commit 1cc1d15c4e54c1d9d8c34a4c66193a95b10c479a.
* | Prepare releaseErlang/OTP2021-03-252-1/+28
| |
* | Merge branch 'maint'Henrik Nord2021-03-242-1/+30
|\ \ | |/ | | | | | | | | | | | | | | * maint: Updated OTP version Prepare release # Conflicts: # OTP_VERSION
| * Prepare releaseErlang/OTP2021-03-222-1/+30
| |
* | 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