• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-Mar-2022-

ClangFormat.pmH A D03-Mar-20223.2 KiB12988

READMEH A D03-Mar-20221.3 KiB3621

check-last-commitH A D03-Mar-20222.9 KiB9971

excludelistH A D03-Mar-2022614.7 KiB16,25616,255

generate-style-excludelistH A D03-Mar-2022801 3216

reformat-formatted-filesH A D03-Mar-20221.3 KiB5031

remove_not_existent_files_from_clang_excludelistH A D03-Mar-20221.3 KiB3821

README

1Style enforcing code.
2
3== How to reproduce the binaries at <https://dev-www.libreoffice.org/bin/> ==
4
5- Linux:
6
7  - Built from source on openSUSE Leap 42.3
8  - get <http://releases.llvm.org/5.0.0/llvm-5.0.0.src.tar.xz>
9  - get <http://releases.llvm.org/5.0.0/cfe-5.0.0.src.tar.xz>  and extract this as tools/clang/ in the LLVM source code
10  - mkdir workdir; cd workdir; cmake -G 'Unix Makefiles' -DCMAKE_INSTALL_PREFIX=$PWD/../instdir -DCMAKE_BUILD_TYPE=Release -DLLVM_BUILD_STATIC=true ..; make -j8 clang-format
11  - this produces a binary that is statically linked
12
13- macOS:
14
15  - <http://releases.llvm.org/5.0.0/clang+llvm-5.0.0-x86_64-apple-darwin.tar.xz> provides a portable binary already
16
17- Windows:
18
19  - <http://releases.llvm.org/5.0.0/LLVM-5.0.0-win32.exe> provides a portable binary already
20
21== Directory contents ==
22
23- excludelist: list of existing files not to be formatted:
24
25  - if you rename a file mentioned in this list, please update the entry (and
26    keep the file sorted)
27
28- check-last-commit: this is used during gerrit / jenkins verification
29
30- ClangFormat.pm: shared code between the git hook and these scripts
31
32- generate-style-excludelist: was used to generate `excludelist`
33
34- reformat-formatted-files: run this script in case the style config changes or
35  clang-format version is updated
36