Skip to content

Commit 72d83d0

Browse files
authored
Merge pull request #4 from cyqw/rust-target
Merge from latest antlr
2 parents b98bcb4 + 6f14c6a commit 72d83d0

2,300 files changed

Lines changed: 98053 additions & 102086 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.clang-format

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
# This section defines defaults for all languages. Currently we derive ANTLR style from LLVM.
3+
BasedOnStyle: LLVM
4+
# Only use clang-format for C++ for now.
5+
DisableFormat: true
6+
7+
---
8+
# This section configures C++ formatting.
9+
Language: Cpp
10+
DisableFormat: false
11+
Standard: c++17
12+
# Prevent clang-format from attempting to pick the alignment and always use right alignment.
13+
DerivePointerAlignment: false
14+
# ANTLR existing style is to right align pointers and references.
15+
PointerAlignment: Right
16+
ReferenceAlignment: Right
17+
# Some of ANTLR existing code is longer than the default 80, so use 100 for now.
18+
ColumnLimit: 100
19+
# Historically ANTLR has used indentation within namespaces, so replicate it.
20+
NamespaceIndentation: Inner

.editorconfig

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,11 @@ charset = utf-8
88
insert_final_newline = true
99
trim_trailing_whitespace = true
1010
indent_style = tab
11+
ij_java_else_on_new_line = true
12+
13+
[*.{h,cpp}]
14+
charset = utf-8
15+
insert_final_newline = true
16+
trim_trailing_whitespace = true
17+
indent_style = space
18+
indent_size = 2

.gitattributes

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# This rule applies to all files which don't match another line below
2-
* text=auto
2+
* text=auto

.github/ISSUE_TEMPLATE.md

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
11
<!--
2-
Before submitting an issue to ANTLR, please check off these boxes:
3-
4-
- [ ] I am not submitting a question on how to use ANTLR; instead, go to [antlr4-discussion google group](https://groups.google.com/forum/#!forum/antlr-discussion) or ask at [stackoverflow](http://stackoverflow.com/questions/tagged/antlr4)
2+
All ANTLR contributors provide implementation, maintenance and support for free.
3+
We therefore kindly ask that before submitting any issue to ANTLR, you please check off these boxes:
4+
5+
- [ ] I have reproduced my issue using the latest version of ANTLR
6+
- [ ] I have asked at [stackoverflow](http://stackoverflow.com/questions/tagged/antlr4)
7+
- [ ] Responses from the above seem to indicate that my issue could be an ANTLR bug
58
- [ ] I have done a search of the existing issues to make sure I'm not sending in a duplicate
69
7-
Please include information about the expected behavior, actual behavior, and the smallest grammar or code that reproduces the behavior. If appropriate, please indicate the code generation targets such as Java, C#, ... Pointers into offending code regions are also very welcome.
10+
Please include the following information:
11+
- target information (Java, C++ ...)
12+
- smallest possible grammar and code that reproduces the behavior
13+
- description of the expected behavior and actual behavior
14+
Pointers to suspicious code regions are also very welcome.
815
-->

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,23 @@
11
<!--
2-
Thank you for proposing a contribution to the ANTLR project. In order to accept changes from the outside world, all contributors must "sign" the [contributors.txt](https://github.com/antlr/antlr4/blob/master/contributors.txt) contributors certificate of origin. It's an unfortunate reality of today's fuzzy and bizarre world of open-source ownership.
2+
Thank you for proposing a contribution to the ANTLR project!
33
4-
Make sure you are already in the contributors.txt file or add a commit to this pull request with the appropriate change. Thanks!
5-
-->
4+
(Please make sure your PR is in a branch other than dev or master
5+
and also make sure that you derive this branch from dev.)
6+
7+
As of 4.10, ANTLR uses the Linux Foundation's Developer
8+
Certificate of Origin, DCO, version 1.1. See either
9+
https://developercertificate.org/ or file
10+
contributors-cert-of-origin.txt in the main directory.
11+
12+
Each commit requires a "signature", which is simple as
13+
using `-s` (not `-S`) to the git commit command:
14+
15+
git commit -s -m 'This is my commit message'
16+
17+
Github's pull request process enforces the sig and gives
18+
instructions on how to fix any commits that lack the sig.
19+
See https://github.com/apps/dco for more info.
20+
21+
No signature is required in this file (unlike the
22+
previous ANTLR contributor's certificate of origin.)
23+
-->

0 commit comments

Comments
 (0)