-
Notifications
You must be signed in to change notification settings - Fork 1.7k
C++: add predicate to distinguish designator-based initializations #19313
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
Conversation
f1bba2b
to
ca40f29
Compare
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.
Pull Request Overview
This PR introduces a new change note regarding designator-based initializations by adding predicates to distinguish between designator-based and positional initializations for both struct/union fields and array elements.
- Introduces the isDesignatorInit() predicate
- Adds a change note documenting the new predicate functionality
Files not reviewed (8)
- cpp/downgrades/159dbb330468991283454b1ac73b7f8411e97595/aggregate_array_init.ql: Language not supported
- cpp/downgrades/159dbb330468991283454b1ac73b7f8411e97595/aggregate_field_init.ql: Language not supported
- cpp/downgrades/159dbb330468991283454b1ac73b7f8411e97595/upgrade.properties: Language not supported
- cpp/ql/lib/semmle/code/cpp/exprs/Literal.qll: Language not supported
- cpp/ql/lib/semmlecode.cpp.dbscheme: Language not supported
- cpp/ql/lib/upgrades/e594389175c098d7225683d0fd8cefcc47d84bc1/aggregate_array_init.ql: Language not supported
- cpp/ql/lib/upgrades/e594389175c098d7225683d0fd8cefcc47d84bc1/aggregate_field_init.ql: Language not supported
- cpp/ql/lib/upgrades/e594389175c098d7225683d0fd8cefcc47d84bc1/upgrade.properties: Language not supported
--- | ||
category: feature | ||
--- | ||
* Introduced `isDesignatorInit()` predicates to distinguish between designator-based and positional initializations for both struct\union fields and array elements. |
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.
The use of the backslash in 'struct\union' may lead to unintended markdown formatting. Consider using 'struct/union' or another clear separator to improve readability.
* Introduced `isDesignatorInit()` predicates to distinguish between designator-based and positional initializations for both struct\union fields and array elements. | |
* Introduced `isDesignatorInit()` predicates to distinguish between designator-based and positional initializations for both struct/union fields and array elements. |
Copilot is powered by AI, so mistakes are possible. Review output carefully before use.
098f2b4
to
67a6eb6
Compare
67a6eb6
to
45d1645
Compare
Introduced
isDesignatorInit()
predicates to distinguish between designator-based and positional initializations for both struct\union fields and array elements.