[nautilus/wip/oholy/ci-style-check: 16/22] uncrustify: Fix indentation of ternary operators statements
- From: António Fernandes <antoniof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/wip/oholy/ci-style-check: 16/22] uncrustify: Fix indentation of ternary operators statements
- Date: Sun, 5 Apr 2020 16:23:26 +0000 (UTC)
commit 787842f948b102d408e1e4148eeec28e71470870
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]