Skip to content

Chore clang-tidy warnings for ramcoretests.cxx#48

Draft
RedBlueBird wants to merge 4 commits intocompiler-research:developfrom
RedBlueBird:chore/clang-tidy-warnings-for-tests
Draft

Chore clang-tidy warnings for ramcoretests.cxx#48
RedBlueBird wants to merge 4 commits intocompiler-research:developfrom
RedBlueBird:chore/clang-tidy-warnings-for-tests

Conversation

@RedBlueBird
Copy link
Copy Markdown

@RedBlueBird RedBlueBird commented Mar 24, 2026

[PR is currently a Draft.]

Contributes to Issue #46.

Addressed all 100+ clang-tidy warnings in test\ramcoretests.cxx except 1.

The warnings can be divided into the following categories:

  1. Functions used are missing argument names
  2. # Includes are not sorted
  3. Certain # Includes are not used
  4. Type ambiguities
  5. Endl is slower than \n

The only warning left from running clang-tidy -p build test\ramcoretests.cxx is

ramtools/test/ramcoretests.cxx:2:11: warning: suspicious #include of file with '.cxx' extension [bugprone-suspicious-include]
    2 | #include "../tools/ramview.cxx"
      |       

which says ramview.cxx should probably break into two parts: header + source pair.

To address this warning involves changing other files, and I will put a hold on this PR for now temporarily.

@RedBlueBird RedBlueBird changed the title Fix clang-tidy warnings for ramcoretests.cxx Chore clang-tidy warnings for ramcoretests.cxx Mar 24, 2026
@codecov-commenter
Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 65.00%. Comparing base (df7cadb) to head (ae1fd5f).
⚠️ Report is 2 commits behind head on develop.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##           develop      #48      +/-   ##
===========================================
+ Coverage    63.83%   65.00%   +1.16%     
===========================================
  Files           16       16              
  Lines         1496     1546      +50     
  Branches       624      625       +1     
===========================================
+ Hits           955     1005      +50     
  Misses         448      448              
  Partials        93       93              
Flag Coverage Δ
unittests 65.00% <100.00%> (+1.16%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
test/ramcoretests.cxx 100.00% <100.00%> (ø)

... and 1 file with indirect coverage changes

Files with missing lines Coverage Δ
test/ramcoretests.cxx 100.00% <100.00%> (ø)

... and 1 file with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Copy Markdown

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

clang-tidy made some suggestions

Comment thread test/ramcoretests.cxx
@@ -1,29 +1,29 @@
#include "../benchmark/generate_sam_benchmark.h"
#include "../tools/ramview.cxx"
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

warning: suspicious #include of file with '.cxx' extension [bugprone-suspicious-include]

#include "../tools/ramview.cxx"
          ^

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