diff options
author | sstwcw <f0gukp2nk@protonmail.com> | 2022-06-26 01:51:40 +0000 |
---|---|---|
committer | sstwcw <f0gukp2nk@protonmail.com> | 2022-06-26 01:52:15 +0000 |
commit | 9ed2e68c9ae5cf346f938cc095e5448c1ff60f51 (patch) | |
tree | 64d316e5d991f4238f1658f52d4a3182dd22091c /clang/docs/ClangFormat.rst | |
parent | 370bee480139bd37fe8c0c8c03ecd19ed9223f01 (diff) | |
download | llvm-9ed2e68c9ae5cf346f938cc095e5448c1ff60f51.zip llvm-9ed2e68c9ae5cf346f938cc095e5448c1ff60f51.tar.gz llvm-9ed2e68c9ae5cf346f938cc095e5448c1ff60f51.tar.bz2 |
[clang-format] Parse Verilog if statements
This patch mainly handles treating `begin` as block openers.
While and for statements will be handled in another patch.
Reviewed By: HazardyKnusperkeks
Differential Revision: https://reviews.llvm.org/D123450
Diffstat (limited to 'clang/docs/ClangFormat.rst')
-rw-r--r-- | clang/docs/ClangFormat.rst | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/clang/docs/ClangFormat.rst b/clang/docs/ClangFormat.rst index 745c66e..16b316c 100644 --- a/clang/docs/ClangFormat.rst +++ b/clang/docs/ClangFormat.rst @@ -43,6 +43,17 @@ to format C/C++/Java/JavaScript/JSON/Objective-C/Protobuf/C# code. --assume-filename=<string> - Override filename used to determine the language. When reading from stdin, clang-format assumes this filename to determine the language. + Unrecognized filenames are treated as C++. + supported: + CSharp: .cs + Java: .java + JavaScript: .mjs .js .ts + Json: .json + Objective-C: .m .mm + Proto: .proto .protodevel + TableGen: .td + TextProto: .textpb .pb.txt .textproto .asciipb + Verilog: .sv .svh .v .vh --cursor=<uint> - The position of the cursor when invoking clang-format from an editor integration --dry-run - If set, do not actually make the formatting changes |