Skip to content

fix relative import and format; disable clang-tidy for now#210

Merged
1a1a11a merged 3 commits intodevelopfrom
1a1a11a/update_import
Jun 22, 2025
Merged

fix relative import and format; disable clang-tidy for now#210
1a1a11a merged 3 commits intodevelopfrom
1a1a11a/update_import

Conversation

@1a1a11a
Copy link
Copy Markdown
Owner

@1a1a11a 1a1a11a commented Jun 21, 2025

Mostly formatting and minor updates
I have tried to fix clang-tidy issues; however, it keeps reporting that the C++ header is not found. Not sure why, I guess it might be triggered because we have both c and c++ code mixed. So I disabled clang-tidy for now.

@1a1a11a 1a1a11a requested a review from haochengxia as a code owner June 21, 2025 18:29
@1a1a11a 1a1a11a requested review from Copilot and haochengxia and removed request for haochengxia June 21, 2025 18:29
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR focuses on updating include paths from deeply relative paths to a standardized project-based path, reformatting code blocks and macros, and disabling clang‑tidy temporarily to bypass header-not‑found issues with mixed C/C++ code. The key changes include:

  • Adjusting all include directives to use paths like "libCacheSim/xxx" instead of "../../../include/libCacheSim/xxx".
  • Reformatting functions and macros for improved readability and consistency.
  • Minor updates in inline functions and header formatting while disabling clang‑tidy.

Reviewed Changes

Copilot reviewed 198 out of 304 changed files in this pull request and generated no comments.

Show a summary per file
File Description
libCacheSim/traceAnalyzer/utils/include/utils.h Update of relative include for logging to a project path.
libCacheSim/traceAnalyzer/ttl.h Changed header includes to use project-relative path.
libCacheSim/dataStructure/ut/utstring.h Reformatted macro definitions for clarity and consistency.
... (other files) Similar include path updates and formatting adjustments.
libCacheSim/CMakeLists.txt Added target‐include directories supporting updated layout.
Comments suppressed due to low confidence (3)

libCacheSim/traceAnalyzer/utils/include/utils.h:9

  • The include path has been updated from a relative path to a project-based path. Please ensure that the build configuration (e.g., CMake include directories) is updated accordingly to avoid missing header issues.
#include "libCacheSim/logging.h"

libCacheSim/traceAnalyzer/ttl.h:12

  • The header path was changed to a project-relative path. Verify that all dependent modules and build scripts (like CMakeLists.txt) are adjusted to reflect this new structure.
#include "libCacheSim/request.h"

libCacheSim/dataStructure/ut/utstring.h:31

  • [nitpick] The reformatting of macro definitions improves readability; please validate that these modifications do not alter macro behavior in edge cases.
#include <stdarg.h>

Copy link
Copy Markdown
Collaborator

@haochengxia haochengxia left a comment

Choose a reason for hiding this comment

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

LGTM! A huge formatting PR. Only one possible replacement issue.

Comment thread example/cacheCluster/CMakeLists.txt Outdated
@1a1a11a 1a1a11a merged commit b7b2aaf into develop Jun 22, 2025
6 of 7 checks passed
@1a1a11a 1a1a11a deleted the 1a1a11a/update_import branch June 22, 2025 14:26
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