Comments (3)
Consider to improve the evaluation of this warning as well. There are some obvious use cases where text compare is not enough but which can be solved anyway. Example:
struct OptionalValue
{
bool hasValue;
uint32 value if hasValue;
};
struct Holder(OptionalValue optionalValue)
{
ArrayHolder(optionalValue.value) arrayHolder if optionalValue.hasValue;
};
struct ArrayHolder(uint32 value)
{
uint8 array[value];
};
Warning:
[WARNING] example.zs:9:38: Parameterized field 'arrayHolder' has different optional clause than parameters.
from zserio.
Consider to improve the evaluation of this warning as well. There are some obvious use cases where text compare is not enough but which can be solved anyway. Example:
struct OptionalValue { bool hasValue; uint32 value if hasValue; }; struct Holder(OptionalValue optionalValue) { ArrayHolder(optionalValue.value) arrayHolder if optionalValue.hasValue; }; struct ArrayHolder(uint32 value) { uint8 array[value]; };
Warning:
[WARNING] example.zs:9:38: Parameterized field 'arrayHolder' has different optional clause than parameters.
This will be solved within the scope of issue #360.
from zserio.
This will be done within scope of issue #422.
from zserio.
Related Issues (20)
- Runtime implementation of built-in operator "isset" does not support OR operator HOT 1
- Fix MISRA C++ 2023 rule 8.2.6 "An object with integral, enumerated, or pointer to void type shall not be cast to a pointer type"
- Fix MISRA C++ 2023 rule 7.0.3 "The numerical value of a character shall not be used"
- Fix for MISRA C++ 2023 rule MISRACPP2023-8_2_5-a 'reinterpret_cast' should not be used HOT 1
- Fix MISRA C++ 2023 rule 7.0.4 "The operands of bitwise operators and shift operators shall be appropriate"
- Fix MISRA C++ 2023 rule 6.7.1 "Local variables shall not have static storage duration" HOT 3
- Fix MISRA C++ 2023 rule 13.3.3 "The parameters in all declarations or overrides of a function shall either be unnamed or have identical names" HOT 2
- Fix MISRA C++ 2023 rule 12.3.1 "The union keyword shall not be used" HOT 1
- Fix MISRA C++ 2023 rule 28.6.2 "Forwarding references and std::forward shall be used together" HOT 1
- Fix MISRA C++ 2023 rule 5.10.1 "User-defined identifiers shall have an appropriate form" HOT 2
- Fix MISRA C++ 2023 rule MISRACPP2023-6_4_1-b Identifier 'add' is hiding other identifier with the same name declared in outer scope HOT 2
- Fix MISRA C++ 2023 rule 15.0.1 "Special member functions shall be provided appropriately" HOT 1
- Fix MISRA C++ 2023 rule MISRACPP2023-6_4_1-c The identifier 'allocator' hides an identifier declared in class 'BitStreamReader' HOT 1
- Fix MISRA C++ 2023 rule 19.2.2 "The #include directive shall be followed by either a <filename> or "filename" sequence" HOT 2
- Offsets should not be allowed in expressions HOT 11
- Disallow most of the expressions in offsets HOT 1
- Consider to simplify indexed offsets syntax HOT 1
- Consider to introduce new zserio type for offsets
- Reading enum values does not work in Python 3.12 HOT 3
- Duplicated offsets should be disabled HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zserio.