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

Unified Diff: runtime/PRESUBMIT.py

Issue 2483363002: clang-formats remaining files and adds a presubmit check. (Closed)
Patch Set: Format include file Created 4 years, 1 month 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 | « runtime/CPPLINT.cfg ('k') | runtime/bin/loader.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/PRESUBMIT.py
diff --git a/runtime/PRESUBMIT.py b/runtime/PRESUBMIT.py
index 946f54f96328d720ace0e3ee5cda4dbb85c211b1..0170f2f98d67efb2b22f06ea1775c7b328b525f8 100644
--- a/runtime/PRESUBMIT.py
+++ b/runtime/PRESUBMIT.py
@@ -48,11 +48,17 @@ def CheckGn(input_api, output_api):
return input_api.canned_checks.CheckGNFormatted(input_api, output_api)
+def CheckFormatted(input_api, output_api):
+ return input_api.canned_checks.CheckPatchFormatted(input_api, output_api)
+
+
def CheckChangeOnUpload(input_api, output_api):
return (RunLint(input_api, output_api) +
- CheckGn(input_api, output_api))
+ CheckGn(input_api, output_api) +
+ CheckFormatted(input_api, output_api))
def CheckChangeOnCommit(input_api, output_api):
return (RunLint(input_api, output_api) +
- CheckGn(input_api, output_api))
+ CheckGn(input_api, output_api) +
+ CheckFormatted(input_api, output_api))
« no previous file with comments | « runtime/CPPLINT.cfg ('k') | runtime/bin/loader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698