aboutsummaryrefslogtreecommitdiffstats
path: root/TODO
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2022-04-02 23:13:36 +0200
committerJay Berkenbilt <ejb@ql.org>2022-04-04 14:10:40 +0200
commitf20fa61eb4c323eb1642c69c236b3d9a1f8b2cdb (patch)
treeb9245b78632c60a9922347a53a8e9937bb5f52c5 /TODO
parent97fc98901cc2dcfa3e1903374cb9040e93fd142f (diff)
downloadqpdf-f20fa61eb4c323eb1642c69c236b3d9a1f8b2cdb.tar.zst
Add .clang-format and .dir-locals.el files to set coding style
Configure emacs and clang-format 15 to the coding style I am choosing for qpdf.
Diffstat (limited to 'TODO')
-rw-r--r--TODO36
1 files changed, 2 insertions, 34 deletions
diff --git a/TODO b/TODO
index d214d5e7..6fd7f582 100644
--- a/TODO
+++ b/TODO
@@ -60,43 +60,11 @@ Use clang-format-15.
as well as the use of a comment to force a line break.
-Tentative .clang-format:
-
-```
----
-Language: Cpp
-BasedOnStyle: LLVM
-AlignAfterOpenBracket: AlwaysBreak
-AlignEscapedNewlines: DontAlign
-AllowShortFunctionsOnASingleLine: None
-BinPackArguments: false
-BinPackParameters: false
-BreakConstructorInitializers: BeforeComma
-DeriveLineEnding: false
-PackConstructorInitializers: Never
-IncludeCategories:
- - Regex: '^["<](qpdf)/'
- Priority: 1
- SortPriority: 0
- CaseSensitive: false
- - Regex: '.*'
- Priority: 2
- SortPriority: 0
- CaseSensitive: false
- - Regex: '.*'
- Priority: 1
- SortPriority: 0
- CaseSensitive: false
-IndentCaseBlocks: true
-IndentWidth: 4
-InsertTrailingCommas: Wrapped
-KeepEmptyLinesAtTheStartOfBlocks: false
-PointerAlignment: Left
-```
+https://clang.llvm.org/docs/ClangFormatStyleOptions.html
Remaining work:
-* Try to get emacs c-style to match as closely as possible
+* Document .dir-locals.el and how it's close but not perfect
* Consider blame.ignoreRevsFile if it seems to help
* Add a `make format` similar to `make spell` (or whatever this ends
up being with cmake)