![]() |
![]() |
0776 | ![]() |
||||
![]() | |||||||
| ISO C90 Conformance limits | REFERENCE - ISO:C90-6.1.2 Identifiers - Implementation Limits | ||||||
The translation limits specified in the ISO:C Standard define a minimum set of conditions which a compiler must support in order to be described as conforming. In practice, compilers will often tolerate code which exceeds these minimal requirements. However, in order to ensure portability, it is advisable to avoid writing code that assumes a level of compiler capability which may not always be supported. Message 0776 identifies the situation where global identifiers are not unique within the first 6 characters, the minimum requirement of the ISO:C90 Standard. In addition, the requirement also stipulates that distinctions between upper and lower case characters are not considered significant. In practice, compilers will often be capable of distinguishing identifiers which do not conform to this requirement but such code is not strictly conforming. If strict ISO conformance is not required this message should be suppressed. If a more reasonable limit is to be applied, the options -xnamelength and -xcase should be used in conjunction with message 0777. For example:
/*PRQA S 0777,2017,3210,3211,3408,3447 ++*/
int abcdef1;
int abcdef2; /* Message 0776 */
int pqrstu;
int pqrstU; /* Message 0776 */
See also:
![]() | ||
| QA·C Source Code Analyser 8.1.2
© 2013 Programming Research. www.programmingresearch.com | Personality Groups | Glossary | Message Index | Contents |