diff options
author | Christian Kandeler <christian.kandeler@qt.io> | 2020-06-18 13:17:20 +0200 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@qt.io> | 2020-06-19 09:14:24 +0000 |
commit | f9a5ad4d3cf85f93beb87f34e023e2be4acd7415 (patch) | |
tree | febadf295949de1979135130dc9be633ad06efd3 /tests | |
parent | 176fbc1698c9bb845e8e064dc549d93fcf99d47f (diff) |
ClangBackEnd: Adapt skipped source ranges from libclang
... so that the first #if is not grayed out.
Fixes: QTCREATORBUG-23714
Change-Id: Ia014fd8cd768ea9530567ba8c712bdc0c4063091
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unit/unittest/skippedsourceranges-test.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/unit/unittest/skippedsourceranges-test.cpp b/tests/unit/unittest/skippedsourceranges-test.cpp index c91f726437..6a2d80d852 100644 --- a/tests/unit/unittest/skippedsourceranges-test.cpp +++ b/tests/unit/unittest/skippedsourceranges-test.cpp @@ -141,7 +141,7 @@ TEST_F(SkippedSourceRanges, DISABLED_ON_WINDOWS(RangeOne)) { auto ranges = skippedSourceRanges.sourceRanges(); - ASSERT_THAT(ranges[0].start(), IsSourceLocation(filePath, 1, 1, 0)); + ASSERT_THAT(ranges[0].start(), IsSourceLocation(filePath, 2, 1, 6)); ASSERT_THAT(ranges[0].end(), IsSourceLocation(filePath, 5, 1, 18)); } @@ -149,7 +149,7 @@ TEST_F(SkippedSourceRanges, DISABLED_ON_WINDOWS(RangeTwo)) { auto ranges = skippedSourceRanges.sourceRanges(); - ASSERT_THAT(ranges[1].start(), IsSourceLocation(filePath, 7, 1, 26)); + ASSERT_THAT(ranges[1].start(), IsSourceLocation(filePath, 8, 1, 39)); ASSERT_THAT(ranges[1].end(), IsSourceLocation(filePath, 12, 1, 57)); } |