Skip to content

Commit

Permalink
Format the code using clang-format 4.0.0-svn278786. Script used:
Browse files Browse the repository at this point in the history
CLANG_FORMAT=~/dev/debian/pkg-llvm/llvm-toolchain/branches/llvm-toolchain-snapshot_4.0~svn278786/build-llvm/bin/clang-format
mv intl/unicharutil/util/nsUnicodePropertyData.{cpp,cppbk}
(for i in $(find . -type f -name "*.h" -o -name "*.cpp"|grep -v -E '(media/webrtc/trunk/|media/ffvpx/|media/gmp-clearkey/|media/libvorbis/|media/gmp-clearkey/|media/openmax_il/|media/libopus/|media/libsoundtouch/|media/libcubeb/|media/mtransport/third_party|media/libstagefright/|media/omx-plugin/|intl/icu/|ipc/chromium/src/|gfx/angle/|gfx/thebes/|gfx/cairo/|gfx/graphite2|gfx/skia/|xpcom/tests/|dom/base/test/|dom/bindings/test/|dom/media/platforms/ffmpeg/ffmpeg57/|dom/media/platforms/ffmpeg/libav5|gfx/harfbuzz/|image/test/gtest/|ipc/ipdl/test/cxx/|ipc/testshell/|js/src/jsapi-tests/|media/mtransport/test/|mfbt/tests/|modules/brotli/|modules/fdlibm/|modules/freetype2/|modules/woff2/|modules/zlib/|other-licenses/|nsprpub/|security/nss/|security/sandbox/chromium/|testing/gtest/|storage/test/|toolkit/crashreporter/google-breakpad/|xpcom/tests/|xpcom/glue/tests/|widget/tests/|uriloader/exthandler/tests/tools/profiler/tests/|/obj-|testing/gtest/|mfbt/tests/|memory/jemalloc/|media/mtransport/|ipc/ipdl/test/|image/test|gfx/testsd|dom/media/gtest/|build/clang-plugin/tests/)'); do
	echo $i
	$CLANG_FORMAT -i $i
	# uses .clang-format
done) 2>&1 | tee clang-format.out
mv intl/unicharutil/util/nsUnicodePropertyData.{cppbk,cpp}
  • Loading branch information
sylvestre committed Aug 17, 2016
1 parent 03b3c20 commit 6a47f1d
Show file tree
Hide file tree
Showing 11,378 changed files with 1,176,385 additions and 1,211,247 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
9 changes: 9 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,12 @@ BasedOnStyle: Mozilla

# Ignore all comments because they aren't reflowed properly.
CommentPragmas: "^"

# Force pointers to the type for C++.
DerivePointerAlignment: false
PointerAlignment: Left


# Prevent the lost of indentation with these macros
MacroBlockBegin: NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION
MacroBlockEnd: NS_INTERFACE_MAP_END
Loading

0 comments on commit 6a47f1d

Please sign in to comment.