Skip to content

Use std::optional<void*> for custom_data instead of raw pointer

8101685
Select commit
Loading
Failed to load commit list.
Open

Pass custom_data through assemblers to kernel functions. #4013

Use std::optional<void*> for custom_data instead of raw pointer
8101685
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis succeeded Dec 2, 2025 in 5m 8s

Annotations

Check failure on line 429 in cpp/dolfinx/fem/Form.h

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this use of "void *" with a more meaningful type.

See more on https://sonarcloud.io/project/issues?id=FEniCS_dolfinx&issues=AZrb3q8zu-mtKnwcCd-e&open=AZrb3q8zu-mtKnwcCd-e&pullRequest=4013

Check failure on line 777 in cpp/dolfinx/fem/assemble_vector_impl.h

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this use of "void *" with a more meaningful type.

See more on https://sonarcloud.io/project/issues?id=FEniCS_dolfinx&issues=AZraT3OIqA6mqPYJkcJ6&open=AZraT3OIqA6mqPYJkcJ6&pullRequest=4013

Check warning on line 418 in cpp/dolfinx/fem/Form.h

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define and throw a dedicated exception instead of using a generic one.

See more on https://sonarcloud.io/project/issues?id=FEniCS_dolfinx&issues=AZraT3JQqA6mqPYJkcJn&open=AZraT3JQqA6mqPYJkcJn&pullRequest=4013

Check failure on line 291 in cpp/dolfinx/fem/assemble_vector_impl.h

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this use of "void *" with a more meaningful type.

See more on https://sonarcloud.io/project/issues?id=FEniCS_dolfinx&issues=AZraT3OIqA6mqPYJkcJ3&open=AZraT3OIqA6mqPYJkcJ3&pullRequest=4013

Check warning on line 224 in python/test/unit/fem/test_custom_data.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Rename this local variable "Ae" to match the regular expression ^[_a-z][a-z0-9_]*$.

See more on https://sonarcloud.io/project/issues?id=FEniCS_dolfinx&issues=AZraT3PMqA6mqPYJkcJ_&open=AZraT3PMqA6mqPYJkcJ_&pullRequest=4013

Check warning on line 263 in python/test/unit/fem/test_custom_data.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Rename this local variable "Ae" to match the regular expression ^[_a-z][a-z0-9_]*$.

See more on https://sonarcloud.io/project/issues?id=FEniCS_dolfinx&issues=AZraT3PMqA6mqPYJkcKA&open=AZraT3PMqA6mqPYJkcKA&pullRequest=4013

Check failure on line 372 in cpp/dolfinx/fem/assemble_matrix_impl.h

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this use of "void *" with a more meaningful type.

See more on https://sonarcloud.io/project/issues?id=FEniCS_dolfinx&issues=AZrb3rAQu-mtKnwcCd-k&open=AZrb3rAQu-mtKnwcCd-k&pullRequest=4013

Check failure on line 413 in cpp/dolfinx/fem/Form.h

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this use of "void *" with a more meaningful type.

See more on https://sonarcloud.io/project/issues?id=FEniCS_dolfinx&issues=AZraT3JQqA6mqPYJkcJq&open=AZraT3JQqA6mqPYJkcJq&pullRequest=4013

Check failure on line 35 in cpp/dolfinx/fem/assemble_scalar_impl.h

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this use of "void *" with a more meaningful type.

See more on https://sonarcloud.io/project/issues?id=FEniCS_dolfinx&issues=AZrb3q_eu-mtKnwcCd-f&open=AZrb3q_eu-mtKnwcCd-f&pullRequest=4013

Check failure on line 875 in cpp/dolfinx/fem/assemble_vector_impl.h

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this use of "void *" with a more meaningful type.

See more on https://sonarcloud.io/project/issues?id=FEniCS_dolfinx&issues=AZraT3OIqA6mqPYJkcJ7&open=AZraT3OIqA6mqPYJkcJ7&pullRequest=4013

Check failure on line 96 in cpp/dolfinx/fem/assemble_vector_impl.h

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this use of "void *" with a more meaningful type.

See more on https://sonarcloud.io/project/issues?id=FEniCS_dolfinx&issues=AZraT3OIqA6mqPYJkcJ2&open=AZraT3OIqA6mqPYJkcJ2&pullRequest=4013

Check failure on line 70 in cpp/dolfinx/fem/Form.h

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this use of "void *" with a more meaningful type.

See more on https://sonarcloud.io/project/issues?id=FEniCS_dolfinx&issues=AZraT3JQqA6mqPYJkcJp&open=AZraT3JQqA6mqPYJkcJp&pullRequest=4013

Check warning on line 27 in cpp/dolfinx/fem/assemble_scalar_impl.h

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

This function has 8 parameters, which is greater than the 7 authorized.

See more on https://sonarcloud.io/project/issues?id=FEniCS_dolfinx&issues=AZraT3LpqA6mqPYJkcJs&open=AZraT3LpqA6mqPYJkcJs&pullRequest=4013

Check failure on line 80 in cpp/dolfinx/fem/assemble_matrix_impl.h

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this use of "void *" with a more meaningful type.

See more on https://sonarcloud.io/project/issues?id=FEniCS_dolfinx&issues=AZrb3rAQu-mtKnwcCd-i&open=AZrb3rAQu-mtKnwcCd-i&pullRequest=4013

Check failure on line 449 in cpp/dolfinx/fem/assemble_vector_impl.h

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this use of "void *" with a more meaningful type.

See more on https://sonarcloud.io/project/issues?id=FEniCS_dolfinx&issues=AZraT3OIqA6mqPYJkcJ4&open=AZraT3OIqA6mqPYJkcJ4&pullRequest=4013

Check warning on line 93 in python/test/unit/fem/test_custom_data.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Rename this parameter "A_" to match the regular expression ^[_a-z][a-z0-9_]*$.

See more on https://sonarcloud.io/project/issues?id=FEniCS_dolfinx&issues=AZraT3PMqA6mqPYJkcJ9&open=AZraT3PMqA6mqPYJkcJ9&pullRequest=4013

Check warning on line 80 in python/test/unit/fem/test_custom_data.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Rename this local variable "Ae" to match the regular expression ^[_a-z][a-z0-9_]*$.

See more on https://sonarcloud.io/project/issues?id=FEniCS_dolfinx&issues=AZraT3PMqA6mqPYJkcJ8&open=AZraT3PMqA6mqPYJkcJ8&pullRequest=4013

Check failure on line 678 in cpp/dolfinx/fem/assemble_vector_impl.h

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this use of "void *" with a more meaningful type.

See more on https://sonarcloud.io/project/issues?id=FEniCS_dolfinx&issues=AZrb4ah-c6ZwUjXdScc0&open=AZrb4ah-c6ZwUjXdScc0&pullRequest=4013

Check failure on line 83 in cpp/dolfinx/fem/assemble_scalar_impl.h

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this use of "void *" with a more meaningful type.

See more on https://sonarcloud.io/project/issues?id=FEniCS_dolfinx&issues=AZrb4afWc6ZwUjXdSccy&open=AZrb4afWc6ZwUjXdSccy&pullRequest=4013

Check failure on line 127 in cpp/dolfinx/fem/assemble_scalar_impl.h

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this use of "void *" with a more meaningful type.

See more on https://sonarcloud.io/project/issues?id=FEniCS_dolfinx&issues=AZrb4afWc6ZwUjXdSccz&open=AZrb4afWc6ZwUjXdSccz&pullRequest=4013

Check failure on line 229 in cpp/dolfinx/fem/assemble_matrix_impl.h

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Replace this use of "void *" with a more meaningful type.

See more on https://sonarcloud.io/project/issues?id=FEniCS_dolfinx&issues=AZrb3rAQu-mtKnwcCd-j&open=AZrb3rAQu-mtKnwcCd-j&pullRequest=4013

Check warning on line 433 in cpp/dolfinx/fem/Form.h

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define and throw a dedicated exception instead of using a generic one.

See more on https://sonarcloud.io/project/issues?id=FEniCS_dolfinx&issues=AZraT3JQqA6mqPYJkcJo&open=AZraT3JQqA6mqPYJkcJo&pullRequest=4013

Check warning on line 106 in python/test/unit/fem/test_custom_data.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Rename this local variable "Ae" to match the regular expression ^[_a-z][a-z0-9_]*$.

See more on https://sonarcloud.io/project/issues?id=FEniCS_dolfinx&issues=AZraT3PMqA6mqPYJkcJ-&open=AZraT3PMqA6mqPYJkcJ-&pullRequest=4013