-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6614 from Marcono1234/marcono1234/char-literal-co…
…depoint Java: Add `CharacterLiteral.getCodePointValue()`
- Loading branch information
Showing
9 changed files
with
79 additions
and
59 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
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
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
40 changes: 20 additions & 20 deletions
40
java/ql/test/library-tests/literals/charLiterals/charLiterals.expected
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 |
---|---|---|
@@ -1,20 +1,20 @@ | ||
| CharLiterals.java:5:3:5:5 | 'a' | a | | ||
| CharLiterals.java:6:3:6:10 | '\\u0061' | a | | ||
| CharLiterals.java:7:3:7:10 | '\\u0000' | \u0000 | | ||
| CharLiterals.java:8:3:8:10 | '\\uFFFF' | \uffff | | ||
| CharLiterals.java:9:3:9:10 | '\\ufFfF' | \uffff | | ||
| CharLiterals.java:10:3:10:6 | '\\0' | \u0000 | | ||
| CharLiterals.java:11:3:11:6 | '\\n' | \n | | ||
| CharLiterals.java:12:3:12:5 | '"' | " | | ||
| CharLiterals.java:13:3:13:6 | '\\\\' | \\ | | ||
| CharLiterals.java:14:3:14:6 | '\\'' | ' | | ||
| CharLiterals.java:15:3:15:8 | '\\123' | S | | ||
| CharLiterals.java:16:3:16:10 | '\\uD800' | \ufffd | | ||
| CharLiterals.java:17:3:17:10 | '\\uDC00' | \ufffd | | ||
| CharLiterals.java:19:3:19:16 | '\\u005C\\u005C' | \\ | | ||
| CharLiterals.java:20:3:20:16 | '\\u005C\\u0027' | ' | | ||
| CharLiterals.java:21:8:21:15 | 7a\\u0027 | a | | ||
| CharLiterals.java:26:4:26:6 | 'a' | a | | ||
| CharLiterals.java:27:4:27:6 | 'a' | a | | ||
| CharLiterals.java:32:3:32:5 | 'a' | a | | ||
| CharLiterals.java:32:9:32:11 | 'b' | b | | ||
| CharLiterals.java:5:3:5:5 | 'a' | a | 97 | | ||
| CharLiterals.java:6:3:6:10 | '\\u0061' | a | 97 | | ||
| CharLiterals.java:7:3:7:10 | '\\u0000' | \u0000 | 0 | | ||
| CharLiterals.java:8:3:8:10 | '\\uFFFF' | \uffff | 65535 | | ||
| CharLiterals.java:9:3:9:10 | '\\ufFfF' | \uffff | 65535 | | ||
| CharLiterals.java:10:3:10:6 | '\\0' | \u0000 | 0 | | ||
| CharLiterals.java:11:3:11:6 | '\\n' | \n | 10 | | ||
| CharLiterals.java:12:3:12:5 | '"' | " | 34 | | ||
| CharLiterals.java:13:3:13:6 | '\\\\' | \\ | 92 | | ||
| CharLiterals.java:14:3:14:6 | '\\'' | ' | 39 | | ||
| CharLiterals.java:15:3:15:8 | '\\123' | S | 83 | | ||
| CharLiterals.java:17:3:17:10 | '\\uD800' | \ufffd | 65533 | | ||
| CharLiterals.java:18:3:18:10 | '\\uDC00' | \ufffd | 65533 | | ||
| CharLiterals.java:20:3:20:16 | '\\u005C\\u005C' | \\ | 92 | | ||
| CharLiterals.java:21:3:21:16 | '\\u005C\\u0027' | ' | 39 | | ||
| CharLiterals.java:22:8:22:15 | 7a\\u0027 | a | 97 | | ||
| CharLiterals.java:27:4:27:6 | 'a' | a | 97 | | ||
| CharLiterals.java:28:4:28:6 | 'a' | a | 97 | | ||
| CharLiterals.java:33:3:33:5 | 'a' | a | 97 | | ||
| CharLiterals.java:33:9:33:11 | 'b' | b | 98 | |
2 changes: 1 addition & 1 deletion
2
java/ql/test/library-tests/literals/charLiterals/charLiterals.ql
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import semmle.code.java.Expr | ||
|
||
from CharacterLiteral lit | ||
select lit, lit.getValue() | ||
select lit, lit.getValue(), lit.getCodePointValue() |
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