Skip to content

Commit 072e3dc

Browse files
committed
change NOLINT->cppcheck-suppress
Signed-off-by: ISP akm <[email protected]>
1 parent 6bf5be1 commit 072e3dc

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

.github/workflows/cppcheck-differential.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
files=$(cat changed_files.txt | grep -E '\.(cpp|hpp)$' || true)
4949
if [ -n "$files" ]; then
5050
echo "Running Cppcheck on changed files: $files"
51-
cppcheck --enable=all --inconclusive --check-level=exhaustive --error-exitcode=1 --suppressions-list=.cppcheck_suppressions $files 2> cppcheck-report.txt
51+
cppcheck --inline-suppr --enable=all --inconclusive --check-level=exhaustive --error-exitcode=1 --suppressions-list=.cppcheck_suppressions $files 2> cppcheck-report.txt
5252
else
5353
echo "No C++ files changed."
5454
touch cppcheck-report.txt

CARET_analyze_cpp_impl/src/iterator_base.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@
3434
Record & IteratorBase::get_record() const
3535
{
3636
throw std::exception();
37-
// NOLINTBEGIN(cppcheck-suppress[unreachableCode])
37+
// cppcheck-suppress-begin unreachableCode
3838
static Record record;
3939
return record;
40-
// NOLINTEND(cppcheck-suppress[unreachableCode])
40+
// cppcheck-suppress-end unreachableCode
4141
}
4242

4343
void IteratorBase::next()
@@ -48,18 +48,18 @@ void IteratorBase::next()
4848
bool IteratorBase::has_next() const
4949
{
5050
throw std::exception();
51-
// NOLINTBEGIN(cppcheck-suppress[unreachableCode])
51+
// cppcheck-suppress-begin unreachableCode
5252
return false;
53-
// NOLINTEND(cppcheck-suppress[unreachableCode])
53+
// cppcheck-suppress-end unreachableCode
5454
}
5555

5656
const Record & ConstIteratorBase::get_record() const
5757
{
5858
throw std::exception();
59-
// NOLINTBEGIN(cppcheck-suppress[unreachableCode])
59+
// cppcheck-suppress-begin unreachableCode
6060
static Record record;
6161
return record;
62-
// NOLINTEND(cppcheck-suppress[unreachableCode])
62+
// cppcheck-suppress-end unreachableCode
6363
}
6464

6565
void ConstIteratorBase::next()
@@ -70,7 +70,7 @@ void ConstIteratorBase::next()
7070
bool ConstIteratorBase::has_next() const
7171
{
7272
throw std::exception();
73-
// NOLINTBEGIN(cppcheck-suppress[unreachableCode])
73+
// cppcheck-suppress-begin unreachableCode
7474
return false;
75-
// NOLINTEND(cppcheck-suppress[unreachableCode])
75+
// cppcheck-suppress-end unreachableCode
7676
}

0 commit comments

Comments
 (0)