openldap: upgrade to 2.6.8
[LibreOffice.git] / solenv / clang-format / generate-style-excludelist
blobb34b2041dea2be04524fc6f7f291a0db93a21bb3
1 #!/usr/bin/env perl
2 # This file is part of the LibreOffice project.
4 # This Source Code Form is subject to the terms of the Mozilla Public
5 # License, v. 2.0. If a copy of the MPL was not distributed with this
6 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 # Generates an excludelist containing all existing cxx/hxx files.
10 use strict;
11 use warnings;
12 use lib "solenv/clang-format";
13 use ClangFormat;
15 my $src = ClangFormat::get_extension_regex();
16 my @filenames = ();
18 # Get a list of files.
19 open (FILES, "git ls-files |") || die "Cannot run git ls-files.";
20 while (my $filename = <FILES>)
22 chomp $filename;
23 if ($filename =~ /\.($src)$/)
25 push @filenames, $filename;
29 ClangFormat::set_excludelist(\@filenames);
31 # vim: set shiftwidth=4 softtabstop=4 expandtab: