[Libreoffice-commits] core.git: .clang-format

Miklos Vajna (via logerrit) logerrit at kemper.freedesktop.org
Wed Feb 26 08:13:23 UTC 2020


 .clang-format |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit 6397a0d49c1672eadf2408e2deac8399322e3013
Author:     Miklos Vajna <vmiklos at collabora.com>
AuthorDate: Tue Feb 25 21:11:51 2020 +0100
Commit:     Miklos Vajna <vmiklos at collabora.com>
CommitDate: Wed Feb 26 09:12:49 2020 +0100

    clang-format: don't sort using declarations
    
    Our clang-format-5.0.0 does sorting in a way different to clang-format
    from git, so prepare for that unwanted change now.
    
    There are two differences:
    
    - newer clang-format does uniq sort
    - the ordering also differs, e.g. 'librevenge::RVNGInputStream' used to
      be ordered before 'librevenge::RVNG_SEEK_CUR', now it's ordered after
      that
    
    Turning the sorting off is always possible, i.e. running
    solenv/clang-format/reformat-formatted-files after this change results
    in no changes.
    
    Change-Id: I146874d4d5a9ad1c45826285fdc798fec77d6ade
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/89480
    Tested-by: Jenkins
    Reviewed-by: Miklos Vajna <vmiklos at collabora.com>

diff --git a/.clang-format b/.clang-format
index d16c2f72d040..16fd8b1263e7 100644
--- a/.clang-format
+++ b/.clang-format
@@ -45,3 +45,4 @@ SpaceAfterControlStatementKeyword: true
 SpaceBeforeAssignmentOperators: true
 ContinuationIndentWidth: 4
 SortIncludes: false
+SortUsingDeclarations: false


More information about the Libreoffice-commits mailing list