-
Notifications
You must be signed in to change notification settings - Fork 11.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[dexter] Add keyword argument 'on_line' to DexLabel
Add optional keyword argument 'on_line' to DexLabel to label the specifed line instead of the line the command is found on. This will be helpful when used alongside DexDeclareFile (D99651). Reviewed By: TWeaver Differential Revision: https://reviews.llvm.org/D101055
- Loading branch information
Showing
4 changed files
with
41 additions
and
5 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
8 changes: 8 additions & 0 deletions
8
debuginfo-tests/dexter/feature_tests/subtools/test/err_label_kwarg.cpp
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,8 @@ | ||
// Purpose: | ||
// Check that bad keyword args in \DexLabel are reported. | ||
// Use --binary switch to trick dexter into skipping the build step. | ||
// | ||
// RUN: not %dexter_base test --binary %s --debugger 'lldb' -- %s | FileCheck %s | ||
// CHECK: parser error:{{.*}}err_label_kwarg.cpp(8): unexpected named args: bad_arg | ||
|
||
// DexLabel('test', bad_arg=0) |
14 changes: 14 additions & 0 deletions
14
debuginfo-tests/dexter/feature_tests/subtools/test/label_another_line.cpp
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,14 @@ | ||
// Purpose: | ||
// Check that the optional keyword argument 'on_line' makes a \DexLabel label | ||
// that line instead of the line the command is found on. | ||
// | ||
// RUN: %dexter_regression_test -- %s | FileCheck %s | ||
// CHECK: label_another_line.cpp: (1.0000) | ||
|
||
int main() { | ||
int result = 0; | ||
return result; | ||
} | ||
|
||
// DexLabel('test', on_line=10) | ||
// DexExpectWatchValue('result', '0', on_line='test') |