compiler: Reworked Preprocessor To Support Better Error Messages
Can now support showing the trail of includes in an error message. Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
This commit is contained in:
@@ -43,4 +43,9 @@ func simple_cli_preprocessor_test_file_not_found() -> [String] {
|
||||
@CliTest()
|
||||
func simple_cli_compilation_error() -> [String] {
|
||||
return ["p4ce", "--plain", "compile", "action-parameters-wrong-order.p4", "-I", "TestData/Sources/"]
|
||||
}
|
||||
|
||||
@CliTest()
|
||||
func simple_cli_compilation_error_with_includes() -> [String] {
|
||||
return ["p4ce", "--plain", "compile", "file-loc-error.p4", "-I", "TestData/Sources/"]
|
||||
}
|
||||
Reference in New Issue
Block a user