Disable ClangTidy namespace comments for short blocks.

Namespace comments don't assist readability for blocks that can easily
fit on a single screen.

Change-Id: I93cbebe8e51400dead794c9eb41cb1eaa86bf756
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/312639
Auto-Submit: John Stiles <johnstiles@google.com>
Reviewed-by: Mike Klein <mtklein@google.com>
Commit-Queue: John Stiles <johnstiles@google.com>
This commit is contained in:
John Stiles 2020-08-23 18:30:07 -04:00 committed by Skia Commit-Bot
parent bf23d5621f
commit 3215385aeb
2 changed files with 3 additions and 1 deletions

View File

@ -19,5 +19,7 @@ Checks: >
readability-redundant-smartptr-get,
readability-static-accessed-through-instance
CheckOptions:
- key: llvm-namespace-comment.ShortNamespaceLines
value: 40
- key: llvm-namespace-comment.SpacesBeforeComments
value: 2

View File

@ -21,7 +21,7 @@ struct PathDY {
SkPath path;
SkScalar dy;
};
} // namespace
}
typedef PathDY (*MakePathProc)();