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
resolve compilation warnings #572
Conversation
WalkthroughThe overall change involves the removal of the Changes
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
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.
Review Status
Actionable comments generated: 0
Configuration used: CodeRabbit UI
Files selected for processing (4)
- deps/libcypher-parser/lib/src/ast_foreach.c (1 hunks)
- deps/libcypher-parser/lib/src/ast_query.c (2 hunks)
- deps/libcypher-parser/lib/src/ast_statement.c (3 hunks)
- deps/libcypher-parser/lib/src/cypher-parser.h.in (2 hunks)
Files not reviewed due to errors (1)
- (no review received)
Additional comments: 6
deps/libcypher-parser/lib/src/ast_statement.c (3)
- 25-25: The removal of
const
frombody
instruct statement
aligns with the PR objectives to address const-correctness issues. Ensure all related function implementations are updated accordingly.- 44-44: The signature of
cypher_ast_statement
has been correctly updated to accept a non-constbody
parameter, reflecting the intended mutability of the AST node.- 83-83: The
cypher_ast_statement_replace_body
function now correctly accepts a non-constbody
parameter, allowing for the intended modification of the AST node.deps/libcypher-parser/lib/src/ast_foreach.c (1)
- 29-29: The modification of the
clauses
array type fromconst cypher_astnode_t *
tocypher_astnode_t *
inforeach_clause
struct is consistent with the PR's goal to correct const-correctness issues.deps/libcypher-parser/lib/src/ast_query.c (2)
- 29-29: The removal of
const
from theclauses
member in thequery
struct correctly addresses const-correctness issues, aligning with the PR objectives.- 222-222: The cast to
const cypher_astnode_t * const *
in thedetailstr
function is a necessary adjustment following the removal ofconst
from theclauses
member, ensuring compatibility with thesnprint_sequence
function.
Removed
const
quarriers from attributes which are modified after the AST is constructed. e.g.Replace*
functions.Summary by CodeRabbit