Disable clang-tidy checks generating false positives

This commit is contained in:
Robert Haschke 2022-11-02 17:20:52 +01:00
parent 7d5f9fe6e3
commit f0a5785074
4 changed files with 6 additions and 0 deletions

View File

@ -1,5 +1,7 @@
---
Checks: 'performance-*,
-performance-noexcept-move-constructor,
-clang-analyzer-core.CallAndMessage,
llvm-namespace-comment,
modernize-redundant-void-arg,
modernize-use-nullptr,

View File

@ -234,6 +234,8 @@ TEST_F(TaskListModelTest, deletion) {
int main(int argc, char** argv) {
ros::init(argc, argv, "test_task_model");
QCoreApplication app(argc, argv);
// https://bugs.llvm.org/show_bug.cgi?id=40367
// NOLINTNEXTLINE(clang-analyzer-cplusplus.NewDeleteLeaks)
QTimer::singleShot(0, [&]() {
::testing::InitGoogleTest(&argc, argv);
auto testResult = RUN_ALL_TESTS();

View File

@ -467,6 +467,7 @@ std::pair<QAbstractItemModel*, QModelIndex> FlatMergeProxyModel::getModel(const
const QModelIndex& src_index = d_ptr->mapToSource(index, data);
Q_ASSERT(data);
// NOLINTNEXTLINE(clang-analyzer-core.NonNullParamChecker)
return std::make_pair(data->model_, src_index);
}

View File

@ -440,6 +440,7 @@ std::pair<QAbstractItemModel*, QModelIndex> TreeMergeProxyModel::getModel(const
const QModelIndex& src_index = d_ptr->mapToSource(index, data);
Q_ASSERT(data);
// NOLINTNEXTLINE(clang-analyzer-core.NonNullParamChecker)
return std::make_pair(data->model_, src_index);
}