Skip to content

Commit a81806c

Browse files
authored
Merge pull request #223 from intel-innersource/rdementi/fix-simdjson-location-for-clang-scan-main
fix simdjson location for clang scan
2 parents a16aef7 + 0fd2b2c commit a81806c

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

.github/workflows/ci-clang-scan.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@ jobs:
2727
- name: Scan build
2828
run: |
2929
cd ${{ github.workspace }}/build
30-
scan-build --exclude simdjson --status-bugs make -j
30+
scan-build --exclude src/simdjson --status-bugs make -j

.github/workflows/clang_scan.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,4 @@ jobs:
3838
- name: scan-build
3939
run: |
4040
cd ${{ github.workspace }}/build
41-
scan-build --status-bugs make -j
41+
scan-build --exclude src/simdjson --status-bugs make -j

src/pcm-raw.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1161,6 +1161,7 @@ void printTransposed(const PCM::RawPMUConfigs& curPMUConfigs,
11611161
}
11621162
else if (outputType == Data)
11631163
{
1164+
assert(metricFunc);
11641165
cout << separator << metricFunc(u, i, BeforeUncoreState[s], AfterUncoreState[s]);
11651166
}
11661167
else if (outputType == Header21)
@@ -1170,6 +1171,7 @@ void printTransposed(const PCM::RawPMUConfigs& curPMUConfigs,
11701171
}
11711172
else if (outputType == Json)
11721173
{
1174+
assert(metricFunc);
11731175
cout << separator << type << "_SKT" << s << "_" << miscName << u
11741176
<< jsonSeparator << metricFunc(u, i, BeforeUncoreState[s], AfterUncoreState[s]);
11751177
}

0 commit comments

Comments
 (0)