[compiler-rt] 5d1df6d - sanitizers: increase .clang-format columns to 100
Dmitry Vyukov via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 22 02:15:10 PDT 2021
Author: Dmitry Vyukov
Date: 2021-07-22T11:15:02+02:00
New Revision: 5d1df6d220f1d6f726d9643848679d781750db64
URL: https://github.com/llvm/llvm-project/commit/5d1df6d220f1d6f726d9643848679d781750db64
DIFF: https://github.com/llvm/llvm-project/commit/5d1df6d220f1d6f726d9643848679d781750db64.diff
LOG: sanitizers: increase .clang-format columns to 100
The current (default) line length is 80 columns.
That's based on old hardware and historical conventions.
There are no existent reasons to keep line length that small,
especially provided that our coding style uses quite lengthy
identifiers. The Linux kernel recently switched to 100,
let's start with 100 as well.
This change intentionally does not re-format code.
Re-formatting is intended to happen incrementally,
or on dir-by-dir basis separately.
Reviewed By: vitalybuka, melver, MaskRay
Differential Revision: https://reviews.llvm.org/D106436
Added:
Modified:
compiler-rt/lib/asan/.clang-format
compiler-rt/lib/dfsan/.clang-format
compiler-rt/lib/hwasan/.clang-format
compiler-rt/lib/interception/.clang-format
compiler-rt/lib/lsan/.clang-format
compiler-rt/lib/msan/.clang-format
compiler-rt/lib/safestack/.clang-format
compiler-rt/lib/sanitizer_common/.clang-format
compiler-rt/lib/tsan/.clang-format
Removed:
################################################################################
diff --git a/compiler-rt/lib/asan/.clang-format b/compiler-rt/lib/asan/.clang-format
index 1f2a97030379d..616c985fb7d82 100644
--- a/compiler-rt/lib/asan/.clang-format
+++ b/compiler-rt/lib/asan/.clang-format
@@ -1,3 +1,4 @@
BasedOnStyle: Google
+ColumnLimit: 100
AllowShortIfStatementsOnASingleLine: false
IndentPPDirectives: AfterHash
diff --git a/compiler-rt/lib/dfsan/.clang-format b/compiler-rt/lib/dfsan/.clang-format
index 1f2a97030379d..616c985fb7d82 100644
--- a/compiler-rt/lib/dfsan/.clang-format
+++ b/compiler-rt/lib/dfsan/.clang-format
@@ -1,3 +1,4 @@
BasedOnStyle: Google
+ColumnLimit: 100
AllowShortIfStatementsOnASingleLine: false
IndentPPDirectives: AfterHash
diff --git a/compiler-rt/lib/hwasan/.clang-format b/compiler-rt/lib/hwasan/.clang-format
index 1f2a97030379d..616c985fb7d82 100644
--- a/compiler-rt/lib/hwasan/.clang-format
+++ b/compiler-rt/lib/hwasan/.clang-format
@@ -1,3 +1,4 @@
BasedOnStyle: Google
+ColumnLimit: 100
AllowShortIfStatementsOnASingleLine: false
IndentPPDirectives: AfterHash
diff --git a/compiler-rt/lib/interception/.clang-format b/compiler-rt/lib/interception/.clang-format
index 1f2a97030379d..616c985fb7d82 100644
--- a/compiler-rt/lib/interception/.clang-format
+++ b/compiler-rt/lib/interception/.clang-format
@@ -1,3 +1,4 @@
BasedOnStyle: Google
+ColumnLimit: 100
AllowShortIfStatementsOnASingleLine: false
IndentPPDirectives: AfterHash
diff --git a/compiler-rt/lib/lsan/.clang-format b/compiler-rt/lib/lsan/.clang-format
index 1f2a97030379d..616c985fb7d82 100644
--- a/compiler-rt/lib/lsan/.clang-format
+++ b/compiler-rt/lib/lsan/.clang-format
@@ -1,3 +1,4 @@
BasedOnStyle: Google
+ColumnLimit: 100
AllowShortIfStatementsOnASingleLine: false
IndentPPDirectives: AfterHash
diff --git a/compiler-rt/lib/msan/.clang-format b/compiler-rt/lib/msan/.clang-format
index 1f2a97030379d..616c985fb7d82 100644
--- a/compiler-rt/lib/msan/.clang-format
+++ b/compiler-rt/lib/msan/.clang-format
@@ -1,3 +1,4 @@
BasedOnStyle: Google
+ColumnLimit: 100
AllowShortIfStatementsOnASingleLine: false
IndentPPDirectives: AfterHash
diff --git a/compiler-rt/lib/safestack/.clang-format b/compiler-rt/lib/safestack/.clang-format
index 1f2a97030379d..616c985fb7d82 100644
--- a/compiler-rt/lib/safestack/.clang-format
+++ b/compiler-rt/lib/safestack/.clang-format
@@ -1,3 +1,4 @@
BasedOnStyle: Google
+ColumnLimit: 100
AllowShortIfStatementsOnASingleLine: false
IndentPPDirectives: AfterHash
diff --git a/compiler-rt/lib/sanitizer_common/.clang-format b/compiler-rt/lib/sanitizer_common/.clang-format
index 1f2a97030379d..616c985fb7d82 100644
--- a/compiler-rt/lib/sanitizer_common/.clang-format
+++ b/compiler-rt/lib/sanitizer_common/.clang-format
@@ -1,3 +1,4 @@
BasedOnStyle: Google
+ColumnLimit: 100
AllowShortIfStatementsOnASingleLine: false
IndentPPDirectives: AfterHash
diff --git a/compiler-rt/lib/tsan/.clang-format b/compiler-rt/lib/tsan/.clang-format
index 1f2a97030379d..616c985fb7d82 100644
--- a/compiler-rt/lib/tsan/.clang-format
+++ b/compiler-rt/lib/tsan/.clang-format
@@ -1,3 +1,4 @@
BasedOnStyle: Google
+ColumnLimit: 100
AllowShortIfStatementsOnASingleLine: false
IndentPPDirectives: AfterHash
More information about the llvm-commits
mailing list