-
-
Notifications
You must be signed in to change notification settings - Fork 9
misc format cleanup #167
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
Merged
Merged
misc format cleanup #167
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| --- | ||
| BasedOnStyle: LLVM | ||
| IndentWidth: 8 | ||
| TabWidth: 8 | ||
| UseTab: ForIndentation | ||
| BreakBeforeBraces: Linux | ||
| ColumnLimit: 120 | ||
| PointerAlignment: Right | ||
| IndentCaseLabels: true | ||
| SpaceBeforeParens: ControlStatements | ||
| AlignAfterOpenBracket: Align | ||
| AllowShortFunctionsOnASingleLine: None | ||
| AllowShortIfStatementsOnASingleLine: Never | ||
| AllowShortLoopsOnASingleLine: false | ||
| AlwaysBreakAfterReturnType: AllDefinitions | ||
| SortIncludes: Never | ||
| IndentPPDirectives: None | ||
| SpaceAfterCStyleCast: false | ||
| SpacesInParentheses: false | ||
| SpacesInContainerLiterals: false | ||
| BreakBeforeBinaryOperators: NonAssignment | ||
| AlignConsecutiveMacros: | ||
| Enabled: true | ||
| AcrossEmptyLines: false | ||
| AcrossComments: false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,14 +1,13 @@ | ||
| #ifndef COMMON_H_ | ||
| #define COMMON_H_ | ||
|
|
||
| #define C_RED "\x1b[31m" | ||
| #define C_GREEN "\x1b[32m" | ||
| #define C_YELLOW "\x1b[33m" | ||
| #define C_BLUE "\x1b[34m" | ||
| #define C_MAGENTA "\x1b[35m" | ||
| #define C_CYAN "\x1b[36m" | ||
| #define C_WHITE "\x1b[37m" | ||
| #define C_RESET "\x1b[0m" | ||
|
|
||
| #endif // COMMON_H_ | ||
| #define C_RED "\x1b[31m" | ||
| #define C_GREEN "\x1b[32m" | ||
| #define C_YELLOW "\x1b[33m" | ||
| #define C_BLUE "\x1b[34m" | ||
| #define C_MAGENTA "\x1b[35m" | ||
| #define C_CYAN "\x1b[36m" | ||
| #define C_WHITE "\x1b[37m" | ||
| #define C_RESET "\x1b[0m" | ||
|
|
||
| #endif // COMMON_H_ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,5 +11,4 @@ uint64_t perf_read_page_fault_count(void); | |
|
|
||
| void perf_close(void); | ||
|
|
||
| #endif // _PERF_H_ | ||
|
|
||
| #endif // _PERF_H_ | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -19,4 +19,3 @@ extern "C" { | |
| #endif | ||
|
|
||
| #endif // _PROFILER_H_ | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -17,4 +17,3 @@ uint64_t estimate_cpu_freq(uint64_t test_time); | |
| #endif | ||
|
|
||
| #endif // _RDTSC_H_ | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Revert parameter name to match implementation and preserve semantic clarity.
The parameter name was changed from
test_time_secondstotest_time, creating a mismatch with the implementation which still usestest_time_seconds. More importantly, this removes critical semantic information: the parameter represents a duration in seconds, while the struct membertest_time(line 37) represents CPU timer ticks. The implementation converts between them at line 34 of the source file.Renaming this parameter:
🔧 Proposed fix
📝 Committable suggestion
🤖 Prompt for AI Agents