Skip to content

Commit a3a51b8

Browse files
committed
Merge branch 'topic/fix_windows_regr' into 'master'
Fix test failing on windows. Also fix missing space in error message. Closes #388 See merge request eng/libadalang/langkit-query-language!335
2 parents 2621dd1 + 49e6eff commit a3a51b8

File tree

2 files changed

+3
-4
lines changed
  • lkql_jit/language/src/main/java/com/adacore/lkql_jit/langkit_translator/passes
  • testsuite/tests/gnatcheck_errors/lkql_syntax_warning

2 files changed

+3
-4
lines changed

lkql_jit/language/src/main/java/com/adacore/lkql_jit/langkit_translator/passes/TranslationPass.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -622,9 +622,8 @@ public LKQLNode visit(Liblkqllang.PatternDetailDelimiterIs patternDetailDelimite
622622
.emitDiagnostic(
623623
CheckerUtils.MessageKind.WARNING,
624624
"'is' syntax is deprecated for patterns. Please consider migrating your"
625-
+ " code via 'lkql refactor -r IS_TO_COLON"
626-
+ patternDetailDelimiterIs.getUnit().getFileName()
627-
+ "'.",
625+
+ " code via 'lkql refactor -r IS_TO_COLON "
626+
+ "path/to/your/rule_file.lkql'.",
628627
null,
629628
SourceSectionWrapper.create(
630629
patternDetailDelimiterIs.getSourceLocationRange(), source));

testsuite/tests/gnatcheck_errors/lkql_syntax_warning/test.out

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
gnatcheck: foo.lkql:4:29: 'is' syntax is deprecated for patterns. Please consider migrating your code via 'lkql refactor -r IS_TO_COLON/rules/foo.lkql'.
1+
gnatcheck: foo.lkql:4:29: 'is' syntax is deprecated for patterns. Please consider migrating your code via 'lkql refactor -r IS_TO_COLON path/to/your/rule_file.lkql'.
22
1. Summary
33

44
fully compliant sources : 1

0 commit comments

Comments
 (0)