Stripping of unnecessary information from source code
AssigneeMicrosoft Corporation
InventorMario Chenier
Life of this patent
Estimating the term…
Abstract
An automated method and apparatus for stripping unnecessary information from source code. Processing software receives the source code to be stripped and identifies the code elements and the comment elements to be stripped, which are identified by preprocessor macros and comment flags, respectively. The processing software strips the unnecessary code and comment elements and generates stripped source code that may be provided to a build process for generating release versions of the source code.
Claims31
An automated process for stripping information from source code comprising the steps of:
- (a) identifying at least one code element to be stripped from the source code;
- (b) identifying at least one comment element to be stripped from the source code;
- (c) automatically stripping at least one identified code element and at least one identified comment element from the source code;
- and
- (d) generating a modified source code that does not include the identified code elements and the identified comment elements.
A computing device for automatically stripping information comprising in combination:
- (a) source code stored in memory of the computing device;
- and
- (b) computer executable instructions for performing the steps of (i) identifying at least one code element to be stripped from the source code;
- (ii) identifying at least one comment element to be stripped from the source code;
- and (iii) automatically stripping the at least one identified code element and the at least one identified comment element from the source code.
An automated process for stripping information from a source code comprising the steps of:
- (a) identifying at least one preprocessor macro signifying a code element to be stripped from the source code;
- (b) identifying at least one comment flag signifying a comment element to be stripped from the source code;
- (c) automatically stripping the at least one identified code element from the source code;
- (d) automatically stripping the at least one identified comment element from the source code;
- (e) generating a modified source code that does not include the identified code elements and the identified comment elements;
- and
- (f) automatically removing at least one file element within the source code designated for removal.
Dependencies are inferred from the claim text.