-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'gnatformat-issue_54' into 'master'
Add QuantifiedExpr config See merge request eng/libadalang/libadalang!1722
- Loading branch information
Showing
4 changed files
with
53 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
if (for some Change of Value.contentChanges => Change > 80) | ||
or else (for all Change of Value.contentChanges | ||
=> Change.text.Character_Length) | ||
then | ||
-- Don't dump very long changes to avoid stack overflow | ||
Self.Output.Put ("<some big change>", Ok); | ||
end if; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
if (for some Change of Value.contentChanges => Change > 80) | ||
or else (for all Change of Value.contentChanges | ||
=> Change.text.Character_Length) | ||
then | ||
-- Don't dump very long changes to avoid stack overflow | ||
Self.Output.Put ("<some big change>", Ok); | ||
end if; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
driver: unparser | ||
rule: stmt | ||
description: | | ||
This test checks that `QuantifiedExpr` nodes: | ||
- do not line break is they fit in the line | ||
- line breaks before the `=>` token if they don't fit in the line |