Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .clang-tidy
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
WarningsAsErrors: "*"
WarningsAsErrors: "" # "*" for Werror behaviour.
UseColor: true
HeaderFilterRegex: '^(?!MPI_api.h$|PETSc_api.h$).*' # Pulled in from python packages and not classified as system headers
ExtraArgsBefore:
- '-Wno-unknown-warning-option'
Checks: >
-*,
performance*
CheckOptions:
# Design decision: pass nb::ndarray by value, not const ref.
- key: performance-unnecessary-value-param.AllowedTypes
value: 'nanobind::ndarray'
6 changes: 3 additions & 3 deletions .github/workflows/clang-tidy.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: clang-tidy

on:
# schedule:
# # daily at 1am
# - cron: "0 1 * * *"
schedule:
# daily at 1am
- cron: "0 1 * * *"
# pull_request:
# branches:
# - main
Expand Down
1 change: 1 addition & 0 deletions cpp/dolfinx/graph/utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ graph::comm_graph(const common::IndexMap& map, int root)
dolfinx::MPI::check_error(comm, ierr);

std::vector<std::tuple<int, std::size_t, std::int8_t>> e_data;
e_data.reserve(edges_remote.size());
for (std::size_t i = 0; i < edges_remote.size(); ++i)
e_data.emplace_back(edges_remote[i], weights_remote[i], markers_remote[i]);
return graph::AdjacencyList(std::move(e_data),
Expand Down
Loading