Linux Source code collation format tool--indent__linux

Source: Internet
Author: User

INDENT-NPRO-KR-I8-TS8-SOB-L80-SS-NCS-CP1 file name

This is the format in which the Linux kernel uses indent to organize code.

Introduction:
The Indent command identifies the original code files of C and formats them for easy reading by the programmer.

Syntax:

indent [parameter] [source file]
indent [parameter] [source file][-o target file]

Introduction to Options:
-bad: In the Declaration section or with a blank line.
-BAP: In a program or add a blank line.
-BBB: Adds a blank line after the annotation section.
-BC: In the Declaration section, if a comma is present, the line wraps.
-bl:if (or else,for, and so on) are not peers with "{" In the following execution section, and "}" is a single line.
-bli<: Sets the number of cells in the {} indent.
The-br:if (or else,for, and so on) does not travel with the "{" of the trailing limp and "}" from one line.
-bs: Empty after sizeof.
-c<: Places a comment in the field specified on the right side of the code.
-cd<: Places a comment in the field specified on the right side of the declaration.
-CDB: annotation symbol from one line.
-ce: Place else After "}" (the end of the If Execution section).
-ci<: The description of the long and changing lines, specify the number of indents after the line wrap.
-cli<: The number of cells that the switch indents when using case.
-cp<: Place the annotation on the right side of the else and ElseIf narration.
-cs: Empty one after cast.
-d<: Sets the number of indents for comments that are not on the right side of the program code.
-di<: Places the variable of the declaration section in the specified field.
-FC1: Formats the comments that are placed at the front of each line.
-FCA: Sets the format of all annotations.
-GNU: Specifies the use of the GNU format, which is a preset value.
-i<: Sets the number of cells in the indent.
-ip<: Sets the number of indents for the parameter.
-KR: Specifies the format to use Kernighan&ritchie.
-LP: When the narration is too long and wraps, and the description includes parentheses, the beginning field of each line in parentheses is arranged vertically.
-nbad: Do not add blank lines after declaring the section.
-NBAP: Do not add blank lines after the program.
-NBBB: Do not add blank lines after the annotation section.
-NBC: In the Declaration section, do not wrap the line even if a comma appears.
-NCDB: note Symbols do not come from one line.
-nce: Do not place else after "}".
-ncs: Do not empty one after cast.
-NFC1: Do not format the comments that are placed at the front of each line.
-NFCA: Do not format any comments.
-nip: Do not indent parameters.
-NLP: The narrative is too long to wrap, and when the narration contains parentheses, you do not have to arrange the starting field of each line in parentheses vertically.
-npcs: After the name of the function you called, do not add a space.
-npro: Do not read the indent configuration file. Indent.pro.
-NPSL: The program type is placed on the same line as the program name.
-NSC: Do not add an asterisk (*) to the left of the annotation.
-NSOB: Do not need to handle extra blank lines.
-NSS: If a for or a while section has only one row, the top of the semicolon is not added.
-NV: Do not display detailed information.
-orig: Use the Berkeley format.
-pcs: Adds a space between the called function name and "{".
-PSL: The program type is placed in the previous line of the program name.
-SC: Add an asterisk (*) to the left of each line of comments.
-sob: Remove extra blank lines.
-SS: If the for or Swile section has a row, add a space before the semicolon.
-st: Displays the results in a standard output device.
-T: Data type name indentation.
-ts: Sets the tab length.
-V: Displays detailed information at execution time.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.