Skip to content

run clang-tidy on codebase and update code#30

Merged
mikelangmayr merged 7 commits intomainfrom
COI-14-clang-tidy
Aug 6, 2024
Merged

run clang-tidy on codebase and update code#30
mikelangmayr merged 7 commits intomainfrom
COI-14-clang-tidy

Conversation

@mikelangmayr
Copy link
Copy Markdown
Contributor

No description provided.

Copy link
Copy Markdown
Collaborator

@astronomerdave astronomerdave left a comment

Choose a reason for hiding this comment

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

Some of the diffs are so extensive that I can't tell if there are any real code changes or if this is all reformatting of spaces.

@mikelangmayr
Copy link
Copy Markdown
Contributor Author

Some of the diffs are so extensive that I can't tell if there are any real code changes or if this is all reformatting of spaces.

It's only reformatting, I took archon.cpp out now so it's less lines to review

@scizen9
Copy link
Copy Markdown
Contributor

scizen9 commented Aug 6, 2024

When I try to build the PR30 code on the hispec machine, it complains:
CMake Error at /usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:146 (message):
Could NOT find GTest (missing: GTEST_LIBRARY GTEST_INCLUDE_DIR
GTEST_MAIN_LIBRARY)
Call Stack (most recent call first):
/usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:393 (_FPHSA_FAILURE_MESSAGE)
/usr/share/cmake-3.16/Modules/FindGTest.cmake:205 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)

Perhaps we need to add this dependency and how to install it to the README? Or make the building in the test dir optional?

@scizen9
Copy link
Copy Markdown
Contributor

scizen9 commented Aug 6, 2024

So the fix was fairly simple: just add pthread to the list target_link_libraries in tests/CMakeLists.txt.

With this simple change, I built and ran PR#30 and it worked.

Copy link
Copy Markdown
Contributor

@scizen9 scizen9 left a comment

Choose a reason for hiding this comment

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

Tested on hispec computer. Passed all tests.

@mikelangmayr mikelangmayr merged commit f2a2304 into main Aug 6, 2024
@mikelangmayr mikelangmayr deleted the COI-14-clang-tidy branch August 6, 2024 23:42
prkrtg pushed a commit that referenced this pull request Sep 8, 2025
* run clang-tidy on codebase and update code

* update workflow branch

* undo changes to archon.cpp because it's too large (8K lines)

* build tests optionally

* Add pthread to unit_test target libraries

* add gtest requirement to README.md
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.

3 participants