[nautilus/wip/oholy/ci-style-check: 23/29] uncrustify: Fix indentation of ternary operators statements
- From: Ondrej Holy <oholy src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/wip/oholy/ci-style-check: 23/29] uncrustify: Fix indentation of ternary operators statements
- Date: Wed, 1 Apr 2020 08:32:42 +0000 (UTC)
commit c4fb0bf07373aab8ab83442c3bef48db98ac1270
Author: Ondrej Holy <oholy redhat com>
Date: Wed Apr 1 09:56:22 2020 +0200
uncrustify: Fix indentation of ternary operators statements
Let's add "indent_ternary_operator = 1" to our uncrustify.cfg in order
to prevent the following unwanted change:
list = back ? nautilus_window_slot_get_back_history (self->window_slot) :
- nautilus_window_slot_get_forward_history (self->window_slot);
+ nautilus_window_slot_get_forward_history (self->window_slot);
data/uncrustify.cfg | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/data/uncrustify.cfg b/data/uncrustify.cfg
index 3567b1d58..58e86baa2 100644
--- a/data/uncrustify.cfg
+++ b/data/uncrustify.cfg
@@ -16,6 +16,9 @@
# Allman style
#
+# indent
+indent_ternary_operator = 1
+
# indent using tabs
output_tab_size = 4
indent_columns = output_tab_size
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]