mirror of
https://github.com/github/codeql.git
synced 2026-04-26 09:15:12 +02:00
Rust: Add a deliberately unresolvable macro call to the test.
This commit is contained in:
@@ -5,3 +5,4 @@
|
||||
| does_not_compile.rs:2:26:2:25 | expected SEMICOLON | Extraction warning in does_not_compile.rs with message expected SEMICOLON | 1 |
|
||||
| does_not_compile.rs:2:32:2:31 | expected field name or number | Extraction warning in does_not_compile.rs with message expected field name or number | 1 |
|
||||
| error.rs:2:5:2:17 | An error! | Extraction warning in error.rs with message An error! | 1 |
|
||||
| my_macro.rs:17:9:17:27 | macro expansion failed: could not resolve macro 'myUndefinedMacro' | Extraction warning in my_macro.rs with message macro expansion failed: could not resolve macro 'myUndefinedMacro' | 1 |
|
||||
|
||||
@@ -1 +1 @@
|
||||
| 59 |
|
||||
| 60 |
|
||||
|
||||
@@ -1 +1 @@
|
||||
| 59 |
|
||||
| 60 |
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
| my_struct.rs:0:0:0:0 | my_struct.rs | 20 |
|
||||
| comments.rs:0:0:0:0 | comments.rs | 13 |
|
||||
| main.rs:0:0:0:0 | main.rs | 8 |
|
||||
| my_macro.rs:0:0:0:0 | my_macro.rs | 7 |
|
||||
| my_macro.rs:0:0:0:0 | my_macro.rs | 8 |
|
||||
| lib.rs:0:0:0:0 | lib.rs | 5 |
|
||||
| does_not_compile.rs:0:0:0:0 | does_not_compile.rs | 3 |
|
||||
| error.rs:0:0:0:0 | error.rs | 3 |
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
| Elements extracted | 376 |
|
||||
| Elements extracted | 383 |
|
||||
| Elements unextracted | 0 |
|
||||
| Extraction errors | 0 |
|
||||
| Extraction warnings | 7 |
|
||||
| Extraction warnings | 8 |
|
||||
| Files extracted - total | 7 |
|
||||
| Files extracted - with errors | 2 |
|
||||
| Files extracted - without errors | 5 |
|
||||
| Files extracted - with errors | 3 |
|
||||
| Files extracted - without errors | 4 |
|
||||
| Inconsistencies - AST | 0 |
|
||||
| Inconsistencies - CFG | 0 |
|
||||
| Inconsistencies - data flow | 7 |
|
||||
| Lines of code extracted | 59 |
|
||||
| Lines of user code extracted | 59 |
|
||||
| Lines of code extracted | 60 |
|
||||
| Lines of user code extracted | 60 |
|
||||
| Macro calls - resolved | 8 |
|
||||
| Macro calls - total | 8 |
|
||||
| Macro calls - total | 9 |
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/**
|
||||
* total lines in this file: 18
|
||||
* of which code: 10
|
||||
* total lines in this file: 19
|
||||
* of which code: 11
|
||||
* of which only comments: 6
|
||||
* of which blank: 2
|
||||
*/
|
||||
@@ -14,5 +14,6 @@ macro_rules! myMacro {
|
||||
pub fn my_func() {
|
||||
if true {
|
||||
myMacro!();
|
||||
myUndefinedMacro!();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user