Repository navigation
feat: run clang-tidy #200
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
feat: run clang-tidy #200
Changes from all commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
42a3c7d
Add implementations from clangd to Tidy.cpp
Myriad-Dreamin 0e7e310
Runs clang-tidy on AST
Myriad-Dreamin a185c40
Add tests for bugprone-integer-division in clang-tidy example
Myriad-Dreamin 8094b20
Add clang-tidy cmake configuration and force linker inclusion for mod…
Myriad-Dreamin 3836488
Refactor CMake and xmake configurations to include generated clang-ti…
Myriad-Dreamin 903d4fb
Refactor clang-tidy configuration and utility functions
Myriad-Dreamin d4021f1
Remove DeclTrackingASTConsumer class from Compilation.cpp
Myriad-Dreamin 9d9619b
Refactor utility functions in Compiler module
Myriad-Dreamin ab77c65
Fix destructor logic in CompilationUnit to properly handle instance a…
Myriad-Dreamin 8cecf7f
Fix typo in comment for preprocessor detachment in CompilationUnit de…
Myriad-Dreamin 2ccd44f
Refactor file_id method in CompilationUnit for improved readability
Myriad-Dreamin ebf778e
Add DiagnosticTransform interface and integrate with ClangTidyChecker
Myriad-Dreamin 4d76cd2
Fix formatting issue in CMakeLists.txt
Myriad-Dreamin 9654875
Refactor DiagnosticTransform interface for improved clarity in parame…
Myriad-Dreamin 999a738
Update variable naming
Myriad-Dreamin aa6555a
Refactor ClangTidyChecker and Compilation to improve variable naming …
Myriad-Dreamin e3ed2f1
Add EndSourceFile method to Diagnostic class for improved interface c…
Myriad-Dreamin d8f036e
Refactor is_note function naming for clarity
Myriad-Dreamin 0a93cb6
Merge remote-tracking branch 'upstream/main' into run-clang-tidy
Myriad-Dreamin 2693c59
Revert improper changes
Myriad-Dreamin 288f256
Revert improper changes
Myriad-Dreamin f3d7d29
Revert improper changes
Myriad-Dreamin b475954
Fix compile errors
Myriad-Dreamin 4b97c1d
Fix compile errors
Myriad-Dreamin 99c2b49
Copy clang-tidy-config.h
Myriad-Dreamin bd8e024
Update order of headers
Myriad-Dreamin 36841fe
Devirtualize `ClangTidyChecker`
Myriad-Dreamin cdb2f16
Merge remote-tracking branch 'upstream/main' into run-clang-tidy
Myriad-Dreamin 6c57b45
Update order of headers
Myriad-Dreamin 1240ff0
Remove old includes
Myriad-Dreamin 659b0a8
Include `Compiler/Tidy.h` instead of putting a forward decl
Myriad-Dreamin d31e301
Refactor clang-tidy configuration management
star-hengxing 773a33b
Apply suggestions
Myriad-Dreamin de13a3f
Apply suggestions
Myriad-Dreamin 993f3d2
Merge top-level declaration detections
Myriad-Dreamin d496545
Apply coderabbitai suggestions
Myriad-Dreamin 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
Some comments aren't visible on the classic Files Changed page.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| /* This generated file is for internal use. Do not include it from headers. */ | ||
|
|
||
| #ifdef CLANG_TIDY_CONFIG_H | ||
| #error clang-tidy-config.h can only be included once | ||
| #else | ||
| #define CLANG_TIDY_CONFIG_H | ||
|
|
||
| // Clice currently doesn't support this configuration, and we use the same default value as clangd. | ||
| #define CLANG_TIDY_ENABLE_STATIC_ANALYZER 0 | ||
|
|
||
| #endif |
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
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
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.
Uh oh!
There was an error while loading. Please reload this page.