Отступ (Unix)
indent is a Unix утилита that reformats C and C++ code in a user-defined стиль отступов and стиль кодирования. Support for C++ code is minimal.[3]
The original version of indent was written by David Willcox at the Иллинойса in November 1976. It was incorporated into 4.1BSD in October 1982.[4] GNU indent was first written by Jim Kingdon in 1989. The command is available as a separate package for Microsoft Windows as part of the UnxUtils collection of собственные Win32 порты of common GNU Unix-like utilities.[5]
Примеры использования
Следующая команда
$ indent -st -bap -bli0 -i4 -l79 -ncs -npcs -npsl -fca -lc79 -fc1 -ts4 some_file.c
Выполняет отступы some_file.cв стиле, напоминающем стиль BSD/Allman, и записывает результат в стандартный вывод.
GNU indent
Отступ GNU — это версия отступа проекта GNU. По умолчанию используется другой стиль отступа, стиль GNU . [6]
Ссылки
- ↑ "NEWS - indent.git" . Дата обращения: 16 мая 2023 г. .
- ↑ GNU Savannah. "GNU indent". Retrieved 2023-10-30.
Лицензия: GNU General Public License версии 3 или более поздней.
- ↑ "indent: Indent and Format C Program Source". www.gnu.org. Retrieved 2019-08-16.
- ↑ Dickey, Thomas (2017). «CINDENT — форматировщик языка C». Invisible Island. Retrieved 2019-04-22.
- ↑ "Нативные Win32-порты некоторых утилит GNU". unxutils.sourceforge.net.
- ↑ Руководство по отступам GNU
Внешние ссылки
- Домашняя страница отступов GNU
- – OpenBSD General Commands Руководство
- UniversalIndentGUI
- clang-format (альтернатива indent)
Источники
- Участники английской Википедии. «Indent (Unix)». Перевод на русский. CC BY-SA 4.0 (текст и перевод).
Источники иллюстраций
- Question book-new.svg · Лицензия файла уточняется (icon)
- Poundexclam.svg · User:Linuxerist · Общественное достояние
