Skip to content

Conversation

@hysw
Copy link
Collaborator

@hysw hysw commented Nov 27, 2025

  • Remove unused includes.
  • Fix almost all clang-tidy issues.
  • Remaining cppcoreguidelines-pro-bounds-array-to-pointer-decay need to be fixed in constants.h
  • Rewrite array initialization.

@hysw hysw force-pushed the lint-dive_client_cli branch 3 times, most recently from 0ae56d6 to 4e4a2bb Compare November 27, 2025 02:28
- Remove unused includes.
- Fix almost all clang-tidy issues.
- Remaining cppcoreguidelines-pro-bounds-array-to-pointer-decay need to be fixed in constants.h
- Rewrite array initialization.
@hysw hysw force-pushed the lint-dive_client_cli branch from 4e4a2bb to 3f105ec Compare November 27, 2025 02:33

absl::StatusOr<std::string> capture_file_path = client.StartPm4Capture();
if (!capture_file_path.ok())
std::string capture_file_path;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Absel recommends to treat an StatusOr as a pointer. That means, we should dereference this to get its value (*capture_file_path). Ref: https://abseil.io/tips/181

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