Identifying structured data types as requiring designated initializers
First Claim
Patent Images
1. A machine-implemented method for enforcing the use of designated initializers in structured data type initializations, comprising:
- determining whether a structured data type requires a designated initializer;
said determining being performing by either;
evaluating a structured data type definition for the presence of a syntax specifying that said structured data type requires designated initialization;
oraccessing an information resource comprising an indication whether said structured data type requires designated initialization;
parsing an initialization of a structured variable declared to use said structured data type to determine whether said initialization employs an improper initializer that is inconsistent with said structured data type; and
performing a diagnostic action if said initialization comprises an improper initializer.
1 Assignment
0 Petitions
Accused Products
Abstract
A technique for enforcing the use of designated initializers in structured type initializations may include determining whether structured data type requires designated initialization, determining whether an initialization of a structured variable declared to use the structured data type employs an improper initializer that is inconsistent with said structured data type, and performing a diagnostic action if the initialization comprises an improper initializer.
34 Citations
17 Claims
-
1. A machine-implemented method for enforcing the use of designated initializers in structured data type initializations, comprising:
-
determining whether a structured data type requires a designated initializer; said determining being performing by either; evaluating a structured data type definition for the presence of a syntax specifying that said structured data type requires designated initialization;
oraccessing an information resource comprising an indication whether said structured data type requires designated initialization; parsing an initialization of a structured variable declared to use said structured data type to determine whether said initialization employs an improper initializer that is inconsistent with said structured data type; and performing a diagnostic action if said initialization comprises an improper initializer. - View Dependent Claims (2, 3, 4, 5)
-
-
6. A system for enforcing the use of designated initializers in structured data type initializations, comprising:
-
one or more processors; a memory coupled to said one or more processors, said memory including a computer useable medium tangibly embodying at least one program of instructions executable by said processor to perform operations, comprising; determining whether a structured data type requires a designated initializer; said determining being performing by either; evaluating a structured data type definition for the presence of a syntax specifying that said structured data type requires designated initialization;
oraccessing an information resource comprising an indication whether said structured data type requires designated initialization; parsing an initialization of a structured variable declared to use said structured data type to determine whether said initialization employs an improper initializer that is inconsistent with said structured data type; and performing a diagnostic action if said structured variable initialization comprises an improper initializer. - View Dependent Claims (7, 8, 9, 10)
-
-
11. A computer program product for enforcing the use of designated initializers in structured type declarations, comprising:
-
one or more machine-useable non-transitory media; logic provided by said one or more media for programming a data processing platform to operate as by; determining whether a structured data type requires a designated initializer; said determining being performing by either; evaluating a structured data type definition for the presence of a syntax specifying that said structured data type requires designated initialization;
oraccessing an information resource comprising an indication whether said structured data type requires designated initialization; parsing an initialization of a structured variable declared to use said structured data type to determine whether said initialization employs an improper initializer that is inconsistent with said structured data type; and performing a diagnostic action if said structured variable initialization comprises an improper initializer. - View Dependent Claims (12, 13, 14, 15)
-
-
16. A method for enforcing the use of designated initializers in structured type declarations, comprising:
-
accessing source code comprising a definition for a structured data type;
determining whether said structured data type requires designated initialization;accessing source code comprising an initialization of a structured variable conforming to said structured data type; parsing said structured variable initialization; performing a diagnostic action if said structured variable initialization comprises an improper initializer; said structured data type definition using a syntax for specifying that said structured data type requires designated initialization, and wherein determining whether said structured data type requires designated initialization comprises evaluating said syntax; said syntax including a designated initializer attribute associated with said structured data type definition or with one or more elements of said structure data type definition. - View Dependent Claims (17)
-
Specification