Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(278)

Unified Diff: Makefile.standalone

Issue 372133002: Subzero: Add "make format-diff" target. (Closed) Base URL: https://gerrit.chromium.org/gerrit/p/native_client/pnacl-subzero.git@master
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Makefile.standalone
diff --git a/Makefile.standalone b/Makefile.standalone
index 6a50f9a0302b8687c86509254db370d32b400f2f..12a3d11502f411f21bcf54f3e840066fbd81a6dd 100644
--- a/Makefile.standalone
+++ b/Makefile.standalone
@@ -80,5 +80,12 @@ format:
$(LLVM_BIN_PATH)/clang-format -style=LLVM -i \
src/Ice*.h src/Ice*.cpp src/llvm2ice.cpp
jvoung (off chromium) 2014/07/08 23:56:24 btw, I think the reason Karl missed clang-formatti
+# Assumes clang-format-diff.py is within $PATH, and that the
+# clang-format it calls is also within $PATH. This may require adding
+# /usr/lib/clang-format to $PATH.
+format-diff:
+ git diff -U0 HEAD^ | \
+ /usr/lib/clang-format/clang-format-diff.py -p1 -style=LLVM -i
jvoung (off chromium) 2014/07/08 23:56:24 Not sure of a better way... my desktop definitely
+
clean:
rm -rf llvm2ice *.o build/
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698