1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages.pt_BR/common/clang-format.md
Rafael Fontenelle d6ee78f07a
pages.pt_BR/common/*: add Brazilian Portuguese translation (#14113)
* ar: add Brazilian Portuguese translation

* clamdscan: add Brazilian Portuguese translation

* clamscan: add Brazilian Portuguese translation

* clang*: add Brazilian Portuguese translation

* crontab: add Brazilian Portuguese translation

* fossil*: add Brazilian Portuguese translation

* freshclam: add Brazilian Portuguese translation

* gh-codespace: add Brazilian Portuguese translation

* pages.pt_BR/common/*: apply suggestions from code review

---------

Co-authored-by: Renie Siqueira <reniedev.github@3nie.com>
2024-10-11 11:24:21 -03:00

24 lines
874 B
Markdown

# clang-format
> Formata automaticamente código C/C++/Java/JavaScript/Objective-C/Protobuf/C#.
> Mais informações: <https://clang.llvm.org/docs/ClangFormat.html>.
- Formata um arquivo e exibe o resultado para a `stdout` (saída padrão):
`clang-format {{caminho/para/arquivo}}`
- Formata um arquivo "in-place", ou seja, salvando nele mesmo:
`clang-format -i {{caminho/para/arquivo}}`
- Formata um arquivo usando um estilo de código predefinido:
`clang-format --style {{LLVM|GNU|Google|Chromium|Microsoft|Mozilla|WebKit}} {{caminho/para/arquivo}}`
- Formata um arquivo usando o arquivo `.clang-format` em um dos diretórios pais do arquivo fonte:
`clang-format --style=file {{caminho/para/arquivo}}`
- Gera um arquivo `.clang-format` personalizado:
`clang-format --style {{LLVM|GNU|Google|Chromium|Microsoft|Mozilla|WebKit}} --dump-config > {{.clang-format}}`