Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Testing #582

Closed
wants to merge 52 commits into from
Closed

Testing #582

wants to merge 52 commits into from

Conversation

benoit-pierre
Copy link
Contributor

@benoit-pierre benoit-pierre commented Jul 23, 2024

Throwaway PR to see how things look with #579 and #580, plus a few additional tweaks to try to keep linting errors/warnings down.


This change is Reviewable

```
warning: Rethrowing current exception with 'throw;', it seems there is no current
exception to rethrow. If there is no current exception this calls std::terminate().
```
Comment out unused & problematic code:
```
crengine/include/lvref.h:395:16: warning: Reference to temporary returned. [returnTempReference]
   return LVRef(NULL);
               ^
crengine/include/lvref.h:396:15: warning: Reference to temporary returned. [returnTempReference]
  return LVRef( new T( *_ptr ) );
```
```
warning: Value stored to 'pDiag' is never read [clang-analyzer-deadcode.DeadStores]
```
```
warning: Rethrowing current exception with 'throw;', it seems there is no current
exception to rethrow. If there is no current exception this calls std::terminate().
```
- fix cppcheck & clang-tidy configurations to avoid parsing, processing,
  and/or spurious errors.
- parallelize all checks to speed up linting (which is much slower now
  that cppcheck & clang-tidy can actually do their jobs).
- always lint all files (we care about), instead of trying to determine
  what changed: even if a source file, say `crengine/src/lvtinydom.cpp`,
  was not changed in a PR, some change to included headers may break
  something that could be detected by one of the checks.
- plus colors, groups and error annotations on Github Actions!
- cppcheck does not like it
- it does not match our default configuration on koreader anyway
  (where we use lunasvg)
Simplify the code and make cppcheck happy.
- it's already stubbed anyway, stub it more!
- I have seen at least one crash with the default stub (clang emulator)
- cppcheck is not happy about it
@poire-z poire-z mentioned this pull request Jul 23, 2024
@benoit-pierre benoit-pierre deleted the testing branch July 27, 2024 23:50
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.

1 participant