Skip to content

Feature/oceanflow - #286

Open
petersteneteg wants to merge 6 commits into
masterfrom
feature/oceanflow
Open

petersteneteg wants to merge 6 commits into
masterfrom
feature/oceanflow

Conversation

@petersteneteg

Copy link
Copy Markdown
Member

No description provided.

"Volume Rendering", // Category
CodeState::Stable, // Code state
Tags::GL | Tag{"Volume"} | Tag{"Raycaster"}, // Tags
R"(<Explanation of how to use the processor.>)"_unindentHelp,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix?

@@ -0,0 +1,3 @@
# OceanFlow Module

Description of the OceanFlow module

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix!

@github-actions

github-actions Bot commented Aug 31, 2026

Copy link
Copy Markdown

Cpp-Linter Report ⚠️

Some files did not pass the configured checks!

clang-format (v22.1.2) reports: 2 file(s) not formatted
  • infravis/oceanflow/src/oceanflowmodule.cpp
  • infravis/oceanflow/src/processors/oceanraycaster.cpp
clang-tidy (v22.1.2) reports: 11 concern(s)
  • infravis/oceanflow/include/inviwo/oceanflow/oceanflowmodule.h:31:10: error: [clang-diagnostic-error]

    'inviwo/oceanflow/oceanflowmoduledefine.h' file not found

       31 | #include <inviwo/oceanflow/oceanflowmoduledefine.h>
          |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  • infravis/oceanflow/include/inviwo/oceanflow/oceanflowmodule.h:36:32: warning: [cppcoreguidelines-avoid-non-const-global-variables]

    variable 'OceanFlowModule' is non-const and globally accessible, consider making it const

       36 | class IVW_MODULE_OCEANFLOW_API OceanFlowModule : public InviwoModule {
          |                                ^
  • infravis/oceanflow/include/inviwo/oceanflow/processors/oceanraycaster.h:32:10: error: [clang-diagnostic-error]

    'inviwo/oceanflow/oceanflowmoduledefine.h' file not found

       32 | #include <inviwo/oceanflow/oceanflowmoduledefine.h>
          |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  • infravis/oceanflow/include/inviwo/oceanflow/processors/oceanraycaster.h:49:32: warning: [cppcoreguidelines-avoid-non-const-global-variables]

    variable 'NemoVolumeComponent' is non-const and globally accessible, consider making it const

       49 | class IVW_MODULE_OCEANFLOW_API NemoVolumeComponent : public TemporalVolumeComponent {
          |                                ^
  • infravis/oceanflow/include/inviwo/oceanflow/processors/oceanraycaster.h:62:32: warning: [cppcoreguidelines-avoid-non-const-global-variables]

    variable 'VolumeMaskComponent' is non-const and globally accessible, consider making it const

       62 | class IVW_MODULE_OCEANFLOW_API VolumeMaskComponent : public ShaderComponent {
          |                                ^
  • infravis/oceanflow/include/inviwo/oceanflow/processors/oceanraycaster.h:78:32: warning: [cppcoreguidelines-avoid-non-const-global-variables]

    variable 'OceanRaycaster' is non-const and globally accessible, consider making it const

       78 | class IVW_MODULE_OCEANFLOW_API OceanRaycaster : public VolumeRaycasterBase {
          |                                ^
  • infravis/oceanflow/src/oceanflowmodule.cpp:30:10: error: [clang-diagnostic-error]

    'inviwo/oceanflow/oceanflowmodule.h' file not found

       30 | #include <inviwo/oceanflow/oceanflowmodule.h>
          |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  • infravis/oceanflow/src/processors/oceanraycaster.cpp:30:10: error: [clang-diagnostic-error]

    'inviwo/oceanflow/processors/oceanraycaster.h' file not found

       30 | #include <inviwo/oceanflow/processors/oceanraycaster.h>
          |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  • infravis/oceanflow/src/processors/oceanraycaster.cpp:164:1: warning: [google-readability-namespace-comments]

    anonymous namespace not terminated with a closing comment

      164 | }
          | ^
    /home/runner/work/modules/modules/inviwo/infravis/oceanflow/src/processors/oceanraycaster.cpp:132:11: note: anonymous namespace starts here
    note: cannot apply fix-it because an alias checker has suggested a different fix-it; please remove one of the checkers ('google-readability-namespace-comments', 'llvm-namespace-comment') or ensure they are both configured the same
      132 | namespace {
          |           ^
  • infravis/oceanflow/src/processors/oceanraycaster.cpp:165:2: warning: [google-readability-namespace-comments]

    namespace 'mask' ends with a comment that refers to a wrong namespace ''

      165 | }  // namespace
          |  ^
    /home/runner/work/modules/modules/inviwo/infravis/oceanflow/src/processors/oceanraycaster.cpp:131:11: note: namespace 'mask' starts here
    note: cannot apply fix-it because an alias checker has suggested a different fix-it; please remove one of the checkers ('google-readability-namespace-comments', 'llvm-namespace-comment') or ensure they are both configured the same
      131 | namespace mask {
          |           ^
  • infravis/oceanflow/tests/unittests/oceanflow-unittest-main.cpp:44:5: warning: [google-build-using-namespace]

    do not use namespace using-directives; use using-declarations instead

       44 |     using namespace inviwo;
          |     ^

Have any feedback or feature suggestions? Share it here.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cpp-linter Review

Used clang-tidy v19.1.7

Have any feedback or feature suggestions? Share it here.

*********************************************************************************/
#pragma once

#include <inviwo/oceanflow/oceanflowmoduledefine.h>

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy diagnostic

infravis/oceanflow/include/inviwo/oceanflow/oceanflowmodule.h:31:10: error: [clang-diagnostic-error]

'inviwo/oceanflow/oceanflowmoduledefine.h' file not found

   31 | #include <inviwo/oceanflow/oceanflowmoduledefine.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


namespace inviwo {

class IVW_MODULE_OCEANFLOW_API OceanFlowModule : public InviwoModule {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy diagnostic

infravis/oceanflow/include/inviwo/oceanflow/oceanflowmodule.h:36:32: warning: [cppcoreguidelines-avoid-non-const-global-variables]

variable 'OceanFlowModule' is non-const and globally accessible, consider making it const

   36 | class IVW_MODULE_OCEANFLOW_API OceanFlowModule : public InviwoModule {
      |                                ^


#pragma once

#include <inviwo/oceanflow/oceanflowmoduledefine.h>

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy diagnostic

infravis/oceanflow/include/inviwo/oceanflow/processors/oceanraycaster.h:32:10: error: [clang-diagnostic-error]

'inviwo/oceanflow/oceanflowmoduledefine.h' file not found

   32 | #include <inviwo/oceanflow/oceanflowmoduledefine.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


namespace inviwo {

class IVW_MODULE_OCEANFLOW_API NemoVolumeComponent : public ShaderComponent {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy diagnostic

infravis/oceanflow/include/inviwo/oceanflow/processors/oceanraycaster.h:48:32: warning: [cppcoreguidelines-avoid-non-const-global-variables]

variable 'NemoVolumeComponent' is non-const and globally accessible, consider making it const

   48 | class IVW_MODULE_OCEANFLOW_API NemoVolumeComponent : public ShaderComponent {
      |                                ^

FloatProperty zZoom;
};

class IVW_MODULE_OCEANFLOW_API OceanRaycaster : public VolumeRaycasterBase {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy diagnostic

infravis/oceanflow/include/inviwo/oceanflow/processors/oceanraycaster.h:72:32: warning: [cppcoreguidelines-avoid-non-const-global-variables]

variable 'OceanRaycaster' is non-const and globally accessible, consider making it const

   72 | class IVW_MODULE_OCEANFLOW_API OceanRaycaster : public VolumeRaycasterBase {
      |                                ^

*
*********************************************************************************/

#include <inviwo/oceanflow/oceanflowmodule.h>

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy diagnostic

infravis/oceanflow/src/oceanflowmodule.cpp:30:10: error: [clang-diagnostic-error]

'inviwo/oceanflow/oceanflowmodule.h' file not found

   30 | #include <inviwo/oceanflow/oceanflowmodule.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

*
*********************************************************************************/

#include <inviwo/oceanflow/processors/oceanraycaster.h>

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy diagnostic

infravis/oceanflow/src/processors/oceanraycaster.cpp:30:10: error: [clang-diagnostic-error]

'inviwo/oceanflow/processors/oceanraycaster.h' file not found

   30 | #include <inviwo/oceanflow/processors/oceanraycaster.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

#include <warn/pop>

int main(int argc, char** argv) {
using namespace inviwo;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy diagnostic

infravis/oceanflow/tests/unittests/oceanflow-unittest-main.cpp:44:5: warning: [google-build-using-namespace]

do not use namespace using-directives; use using-declarations instead

   44 |     using namespace inviwo;
      |     ^

@github-actions
github-actions Bot dismissed their stale review September 1, 2026 13:59

outdated suggestion

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cpp-linter Review

Used clang-tidy v19.1.7

Have any feedback or feature suggestions? Share it here.

*********************************************************************************/
#pragma once

#include <inviwo/oceanflow/oceanflowmoduledefine.h>

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy diagnostic

infravis/oceanflow/include/inviwo/oceanflow/oceanflowmodule.h:31:10: error: [clang-diagnostic-error]

'inviwo/oceanflow/oceanflowmoduledefine.h' file not found

   31 | #include <inviwo/oceanflow/oceanflowmoduledefine.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


namespace inviwo {

class IVW_MODULE_OCEANFLOW_API OceanFlowModule : public InviwoModule {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy diagnostic

infravis/oceanflow/include/inviwo/oceanflow/oceanflowmodule.h:36:32: warning: [cppcoreguidelines-avoid-non-const-global-variables]

variable 'OceanFlowModule' is non-const and globally accessible, consider making it const

   36 | class IVW_MODULE_OCEANFLOW_API OceanFlowModule : public InviwoModule {
      |                                ^


#pragma once

#include <inviwo/oceanflow/oceanflowmoduledefine.h>

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy diagnostic

infravis/oceanflow/include/inviwo/oceanflow/processors/oceanraycaster.h:32:10: error: [clang-diagnostic-error]

'inviwo/oceanflow/oceanflowmoduledefine.h' file not found

   32 | #include <inviwo/oceanflow/oceanflowmoduledefine.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


namespace inviwo {

class IVW_MODULE_OCEANFLOW_API NemoVolumeComponent : public ShaderComponent {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy diagnostic

infravis/oceanflow/include/inviwo/oceanflow/processors/oceanraycaster.h:48:32: warning: [cppcoreguidelines-avoid-non-const-global-variables]

variable 'NemoVolumeComponent' is non-const and globally accessible, consider making it const

   48 | class IVW_MODULE_OCEANFLOW_API NemoVolumeComponent : public ShaderComponent {
      |                                ^

FloatProperty zZoom;
};

class IVW_MODULE_OCEANFLOW_API OceanRaycaster : public VolumeRaycasterBase {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy diagnostic

infravis/oceanflow/include/inviwo/oceanflow/processors/oceanraycaster.h:72:32: warning: [cppcoreguidelines-avoid-non-const-global-variables]

variable 'OceanRaycaster' is non-const and globally accessible, consider making it const

   72 | class IVW_MODULE_OCEANFLOW_API OceanRaycaster : public VolumeRaycasterBase {
      |                                ^

*
*********************************************************************************/

#include <inviwo/oceanflow/oceanflowmodule.h>

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy diagnostic

infravis/oceanflow/src/oceanflowmodule.cpp:30:10: error: [clang-diagnostic-error]

'inviwo/oceanflow/oceanflowmodule.h' file not found

   30 | #include <inviwo/oceanflow/oceanflowmodule.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

*
*********************************************************************************/

#include <inviwo/oceanflow/processors/oceanraycaster.h>

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy diagnostic

infravis/oceanflow/src/processors/oceanraycaster.cpp:30:10: error: [clang-diagnostic-error]

'inviwo/oceanflow/processors/oceanraycaster.h' file not found

   30 | #include <inviwo/oceanflow/processors/oceanraycaster.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

#include <warn/pop>

int main(int argc, char** argv) {
using namespace inviwo;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy diagnostic

infravis/oceanflow/tests/unittests/oceanflow-unittest-main.cpp:44:5: warning: [google-build-using-namespace]

do not use namespace using-directives; use using-declarations instead

   44 |     using namespace inviwo;
      |     ^

@github-actions
github-actions Bot dismissed their stale review September 10, 2026 17:45

outdated suggestion

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cpp-linter Review

Used clang-tidy v22.1.2

Have any feedback or feature suggestions? Share it here.

* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
*********************************************************************************/
#pragma once

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy diagnostic

infravis/oceanflow/include/inviwo/oceanflow/oceanflowmodule.h:29:1: warning: [portability-avoid-pragma-once]

avoid 'pragma once' directive; use include guards instead

   29 | #pragma once
      | ^

*********************************************************************************/
#pragma once

#include <inviwo/oceanflow/oceanflowmoduledefine.h>

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy diagnostic

infravis/oceanflow/include/inviwo/oceanflow/oceanflowmodule.h:31:10: error: [clang-diagnostic-error]

'inviwo/oceanflow/oceanflowmoduledefine.h' file not found

   31 | #include <inviwo/oceanflow/oceanflowmoduledefine.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


namespace inviwo {

class IVW_MODULE_OCEANFLOW_API OceanFlowModule : public InviwoModule {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy diagnostic

infravis/oceanflow/include/inviwo/oceanflow/oceanflowmodule.h:36:32: warning: [cppcoreguidelines-avoid-non-const-global-variables]

variable 'OceanFlowModule' is non-const and globally accessible, consider making it const

   36 | class IVW_MODULE_OCEANFLOW_API OceanFlowModule : public InviwoModule {
      |                                ^

@@ -0,0 +1,22 @@
#pragma once

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy diagnostic

infravis/oceanflow/include/inviwo/oceanflow/oceanflowmoduledefine.h:1:1: warning: [portability-avoid-pragma-once]

avoid 'pragma once' directive; use include guards instead

    1 | #pragma once
      | ^

*
*********************************************************************************/

#pragma once

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy diagnostic

infravis/oceanflow/include/inviwo/oceanflow/processors/oceanraycaster.h:30:1: warning: [portability-avoid-pragma-once]

avoid 'pragma once' directive; use include guards instead

   30 | #pragma once
      | ^


namespace inviwo {

class IVW_MODULE_OCEANFLOW_API NemoVolumeComponent : public ShaderComponent {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy diagnostic

infravis/oceanflow/include/inviwo/oceanflow/processors/oceanraycaster.h:48:32: warning: [cppcoreguidelines-avoid-non-const-global-variables]

variable 'NemoVolumeComponent' is non-const and globally accessible, consider making it const

   48 | class IVW_MODULE_OCEANFLOW_API NemoVolumeComponent : public ShaderComponent {
      |                                ^

FloatProperty zZoom;
};

class IVW_MODULE_OCEANFLOW_API OceanRaycaster : public VolumeRaycasterBase {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy diagnostic

infravis/oceanflow/include/inviwo/oceanflow/processors/oceanraycaster.h:72:32: warning: [cppcoreguidelines-avoid-non-const-global-variables]

variable 'OceanRaycaster' is non-const and globally accessible, consider making it const

   72 | class IVW_MODULE_OCEANFLOW_API OceanRaycaster : public VolumeRaycasterBase {
      |                                ^

*
*********************************************************************************/

#include <inviwo/oceanflow/oceanflowmodule.h>

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy diagnostic

infravis/oceanflow/src/oceanflowmodule.cpp:30:10: error: [clang-diagnostic-error]

'inviwo/oceanflow/oceanflowmodule.h' file not found

   30 | #include <inviwo/oceanflow/oceanflowmodule.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

*
*********************************************************************************/

#include <inviwo/oceanflow/processors/oceanraycaster.h>

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy diagnostic

infravis/oceanflow/src/processors/oceanraycaster.cpp:30:10: error: [clang-diagnostic-error]

'inviwo/oceanflow/processors/oceanraycaster.h' file not found

   30 | #include <inviwo/oceanflow/processors/oceanraycaster.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

#include <warn/pop>

int main(int argc, char** argv) {
using namespace inviwo;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy diagnostic

infravis/oceanflow/tests/unittests/oceanflow-unittest-main.cpp:44:5: warning: [google-build-using-namespace]

do not use namespace using-directives; use using-declarations instead

   44 |     using namespace inviwo;
      |     ^

@github-actions
github-actions Bot dismissed their stale review September 17, 2026 07:24

outdated suggestion

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cpp-linter Review

Used clang-tidy v22.1.2

Have any feedback or feature suggestions? Share it here.

*********************************************************************************/
#pragma once

#include <inviwo/oceanflow/oceanflowmoduledefine.h>

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy diagnostic

infravis/oceanflow/include/inviwo/oceanflow/oceanflowmodule.h:31:10: error: [clang-diagnostic-error]

'inviwo/oceanflow/oceanflowmoduledefine.h' file not found

   31 | #include <inviwo/oceanflow/oceanflowmoduledefine.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


namespace inviwo {

class IVW_MODULE_OCEANFLOW_API OceanFlowModule : public InviwoModule {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy diagnostic

infravis/oceanflow/include/inviwo/oceanflow/oceanflowmodule.h:36:32: warning: [cppcoreguidelines-avoid-non-const-global-variables]

variable 'OceanFlowModule' is non-const and globally accessible, consider making it const

   36 | class IVW_MODULE_OCEANFLOW_API OceanFlowModule : public InviwoModule {
      |                                ^


#pragma once

#include <inviwo/oceanflow/oceanflowmoduledefine.h>

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy diagnostic

infravis/oceanflow/include/inviwo/oceanflow/processors/oceanraycaster.h:32:10: error: [clang-diagnostic-error]

'inviwo/oceanflow/oceanflowmoduledefine.h' file not found

   32 | #include <inviwo/oceanflow/oceanflowmoduledefine.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


namespace inviwo {

class IVW_MODULE_OCEANFLOW_API NemoVolumeComponent : public TemporalVolumeComponent {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy diagnostic

infravis/oceanflow/include/inviwo/oceanflow/processors/oceanraycaster.h:49:32: warning: [cppcoreguidelines-avoid-non-const-global-variables]

variable 'NemoVolumeComponent' is non-const and globally accessible, consider making it const

   49 | class IVW_MODULE_OCEANFLOW_API NemoVolumeComponent : public TemporalVolumeComponent {
      |                                ^

FloatProperty zZoom;
};

class IVW_MODULE_OCEANFLOW_API VolumeMaskComponent : public ShaderComponent {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy diagnostic

infravis/oceanflow/include/inviwo/oceanflow/processors/oceanraycaster.h:62:32: warning: [cppcoreguidelines-avoid-non-const-global-variables]

variable 'VolumeMaskComponent' is non-const and globally accessible, consider making it const

   62 | class IVW_MODULE_OCEANFLOW_API VolumeMaskComponent : public ShaderComponent {
      |                                ^

*
*********************************************************************************/

#include <inviwo/oceanflow/oceanflowmodule.h>

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy diagnostic

infravis/oceanflow/src/oceanflowmodule.cpp:30:10: error: [clang-diagnostic-error]

'inviwo/oceanflow/oceanflowmodule.h' file not found

   30 | #include <inviwo/oceanflow/oceanflowmodule.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

*
*********************************************************************************/

#include <inviwo/oceanflow/processors/oceanraycaster.h>

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy diagnostic

infravis/oceanflow/src/processors/oceanraycaster.cpp:30:10: error: [clang-diagnostic-error]

'inviwo/oceanflow/processors/oceanraycaster.h' file not found

   30 | #include <inviwo/oceanflow/processors/oceanraycaster.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

}}
{0}ValuePrev = {0}Value;
)");
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy diagnostic

infravis/oceanflow/src/processors/oceanraycaster.cpp:164:1: warning: [google-readability-namespace-comments]

anonymous namespace not terminated with a closing comment

  164 | }
      | ^
/home/runner/work/modules/modules/inviwo/infravis/oceanflow/src/processors/oceanraycaster.cpp:132:11: note: anonymous namespace starts here
note: cannot apply fix-it because an alias checker has suggested a different fix-it; please remove one of the checkers ('google-readability-namespace-comments', 'llvm-namespace-comment') or ensure they are both configured the same
  132 | namespace {
      |           ^

{0}ValuePrev = {0}Value;
)");
}
} // namespace

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy diagnostic

infravis/oceanflow/src/processors/oceanraycaster.cpp:165:2: warning: [google-readability-namespace-comments]

namespace 'mask' ends with a comment that refers to a wrong namespace ''

  165 | }  // namespace
      |  ^
/home/runner/work/modules/modules/inviwo/infravis/oceanflow/src/processors/oceanraycaster.cpp:131:11: note: namespace 'mask' starts here
note: cannot apply fix-it because an alias checker has suggested a different fix-it; please remove one of the checkers ('google-readability-namespace-comments', 'llvm-namespace-comment') or ensure they are both configured the same
  131 | namespace mask {
      |           ^

#include <warn/pop>

int main(int argc, char** argv) {
using namespace inviwo;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy diagnostic

infravis/oceanflow/tests/unittests/oceanflow-unittest-main.cpp:44:5: warning: [google-build-using-namespace]

do not use namespace using-directives; use using-declarations instead

   44 |     using namespace inviwo;
      |     ^

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants