]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
remove indents from preprocessor macros
authorMartin Taibr <taibr.martin@gmail.com>
Sat, 23 Sep 2017 23:20:29 +0000 (01:20 +0200)
committerMartin Taibr <taibr.martin@gmail.com>
Sat, 23 Sep 2017 23:20:29 +0000 (01:20 +0200)
qcsrc/tools/uncrustify-unmodified.py
qcsrc/uncrustify.cfg

index c9c558428ab79adc64d3aa9bb49cabc0f9bdf263..a5869accae20604fb2888c178dcda5bb4ac2b0f9 100755 (executable)
@@ -25,7 +25,7 @@ def main():
        # get all remote branches - those would potentially get merge conflicts if we formatted everything
        branches = run('git branch --list --remotes')
        # strip the leading spaces and ignore branches that are presumably used for debugging uncrustify
-       branches = [b.strip() for b in branches if "uncrustify" not in b]
+       branches = [b.strip() for b in branches if "uncrustify" not in b and "uncrustified" not in b]
        branches.remove('origin/HEAD -> origin/master')
        branches.remove('origin/master')
 
index 0bcab10d6109a90597b0fd5544f465ca2e9df4a7..64fe7dd5cb7addb7128031abc85b531ddd0a751f 100644 (file)
@@ -1752,7 +1752,7 @@ cmt_insert_before_preproc                = false    # false/true
 
 # Control indent of preprocessors inside #if blocks at brace level 0
 # WARNING: Indifferent... please decide manually.
-pp_indent                                = ignore    # ignore/add/remove/force
+pp_indent                                = remove    # ignore/add/remove/force
 
 # Whether to indent #if/#else/#endif at the brace level (true) or from column 1 (false)
 pp_indent_at_level                       = false    # false/true