libv8 6.7.288.46.1 → 7.3.492.27.0beta1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (408) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +3 -0
  3. data/CHANGELOG.md +4 -0
  4. data/README.md +2 -0
  5. data/ext/libv8/builder.rb +6 -2
  6. data/lib/libv8/version.rb +1 -1
  7. data/vendor/depot_tools/.gitattributes +1 -0
  8. data/vendor/depot_tools/.gitignore +7 -0
  9. data/vendor/depot_tools/CROS_OWNERS +5 -0
  10. data/vendor/depot_tools/OWNERS +12 -1
  11. data/vendor/depot_tools/PRESUBMIT.py +16 -9
  12. data/vendor/depot_tools/README.md +9 -2
  13. data/vendor/depot_tools/autoninja +14 -6
  14. data/vendor/depot_tools/autoninja.bat +11 -1
  15. data/vendor/depot_tools/autoninja.py +40 -18
  16. data/vendor/depot_tools/bb +12 -0
  17. data/vendor/depot_tools/bb.bat +7 -0
  18. data/vendor/depot_tools/bootstrap/win/manifest.txt +1 -1
  19. data/vendor/depot_tools/bootstrap/win/manifest_bleeding_edge.txt +1 -1
  20. data/vendor/depot_tools/bootstrap/win/win_tools.py +2 -1
  21. data/vendor/depot_tools/buildbucket.py +57 -4
  22. data/vendor/depot_tools/cipd +157 -44
  23. data/vendor/depot_tools/cipd.bat +51 -14
  24. data/vendor/depot_tools/cipd.ps1 +104 -42
  25. data/vendor/depot_tools/cipd_client_version +1 -1
  26. data/vendor/depot_tools/cipd_client_version.digests +21 -0
  27. data/vendor/depot_tools/cipd_manifest.txt +19 -6
  28. data/vendor/depot_tools/cipd_manifest.versions +318 -0
  29. data/vendor/depot_tools/clang_format.py +4 -4
  30. data/vendor/depot_tools/cpplint.py +44 -199
  31. data/vendor/depot_tools/dart_format.py +2 -2
  32. data/vendor/depot_tools/detect_host_arch.py +8 -3
  33. data/vendor/depot_tools/download_from_google_storage.py +47 -39
  34. data/vendor/depot_tools/fetch.py +30 -18
  35. data/vendor/depot_tools/fetch_configs/android_internal.py +34 -0
  36. data/vendor/depot_tools/fetch_configs/chromium.py +18 -1
  37. data/vendor/depot_tools/fetch_configs/config_util.py +4 -2
  38. data/vendor/depot_tools/fetch_configs/inspector_protocol.py +40 -0
  39. data/vendor/depot_tools/fetch_configs/node-ci.py +41 -0
  40. data/vendor/depot_tools/fix_encoding.py +3 -3
  41. data/vendor/depot_tools/gclient +1 -1
  42. data/vendor/depot_tools/gclient.py +415 -198
  43. data/vendor/depot_tools/gclient_eval.py +220 -171
  44. data/vendor/depot_tools/gclient_paths.py +142 -0
  45. data/vendor/depot_tools/gclient_scm.py +200 -51
  46. data/vendor/depot_tools/gclient_utils.py +88 -191
  47. data/vendor/depot_tools/gerrit_client.py +13 -0
  48. data/vendor/depot_tools/gerrit_util.py +158 -23
  49. data/vendor/depot_tools/git-nav-upstream +1 -1
  50. data/vendor/depot_tools/git_cache.py +77 -24
  51. data/vendor/depot_tools/git_cl.py +705 -1099
  52. data/vendor/depot_tools/git_common.py +9 -6
  53. data/vendor/depot_tools/git_map_branches.py +19 -2
  54. data/vendor/depot_tools/git_nav_downstream.py +3 -4
  55. data/vendor/depot_tools/git_rebase_update.py +14 -0
  56. data/vendor/depot_tools/git_reparent_branch.py +8 -2
  57. data/vendor/depot_tools/gn.py +38 -3
  58. data/vendor/depot_tools/gsutil.py +8 -3
  59. data/vendor/depot_tools/gsutil.py.bat +15 -0
  60. data/vendor/depot_tools/gsutil.vpython +16 -0
  61. data/vendor/depot_tools/infra/config/OWNERS +0 -1
  62. data/vendor/depot_tools/infra/config/recipes.cfg +3 -2
  63. data/vendor/depot_tools/lucicfg +12 -0
  64. data/vendor/depot_tools/lucicfg.bat +7 -0
  65. data/vendor/depot_tools/man/html/git-map-branches.html +34 -2
  66. data/vendor/depot_tools/man/html/git-new-branch.html +40 -32
  67. data/vendor/depot_tools/man/man1/git-map-branches.1 +24 -5
  68. data/vendor/depot_tools/man/man1/git-new-branch.1 +35 -27
  69. data/vendor/depot_tools/man/src/git-map-branches.demo.1.sh +1 -0
  70. data/vendor/depot_tools/man/src/git-map-branches.txt +10 -0
  71. data/vendor/depot_tools/man/src/git-new-branch.demo.1.sh +9 -4
  72. data/vendor/depot_tools/man/src/git-new-branch.txt +1 -1
  73. data/vendor/depot_tools/metrics.README.md +98 -0
  74. data/vendor/depot_tools/metrics.py +296 -0
  75. data/vendor/depot_tools/metrics_utils.py +303 -0
  76. data/vendor/depot_tools/my_activity.py +91 -29
  77. data/vendor/depot_tools/ninja +1 -1
  78. data/vendor/depot_tools/ninjalog.README.md +64 -0
  79. data/vendor/depot_tools/ninjalog_uploader.py +232 -0
  80. data/vendor/depot_tools/ninjalog_uploader_wrapper.py +116 -0
  81. data/vendor/depot_tools/owners.py +30 -13
  82. data/vendor/depot_tools/owners_finder.py +5 -2
  83. data/vendor/depot_tools/presubmit_canned_checks.py +188 -29
  84. data/vendor/depot_tools/presubmit_support.py +18 -41
  85. data/vendor/depot_tools/pylintrc +23 -19
  86. data/vendor/depot_tools/recipes/OWNERS +2 -0
  87. data/vendor/depot_tools/recipes/README.recipes.md +344 -151
  88. data/vendor/depot_tools/recipes/recipe_modules/bot_update/OWNERS +2 -0
  89. data/vendor/depot_tools/recipes/recipe_modules/bot_update/__init__.py +2 -16
  90. data/vendor/depot_tools/recipes/recipe_modules/bot_update/api.py +141 -99
  91. data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/basic.json +5 -8
  92. data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/basic_luci.json +5 -8
  93. data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/basic_with_branch_heads.json +6 -98
  94. data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/clobber.json +4 -9
  95. data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/deprecated_got_revision_mapping.json +45 -5
  96. data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/gerrit_no_rebase_patch_ref.json +4 -9
  97. data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/gerrit_no_reset.json +4 -9
  98. data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/{tryjob.json → input_commit_with_id_without_repo.json} +6 -11
  99. data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/{tryjob_empty_revision.json → multiple_patch_refs.json} +8 -9
  100. data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/no_apply_patch_on_gclient.json +19 -29
  101. data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/{trychange.json → refs.json} +4 -9
  102. data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/reset_root_solution_revision.json +4 -9
  103. data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/tryjob_fail.json +51 -6
  104. data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/tryjob_fail_patch.json +50 -6
  105. data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/tryjob_fail_patch_download.json +51 -6
  106. data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/tryjob_gerrit_angle.json +17 -25
  107. data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/tryjob_gerrit_branch_heads.json +17 -25
  108. data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/tryjob_gerrit_feature_branch.json +18 -26
  109. data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/tryjob_gerrit_v8_feature_branch.json +18 -26
  110. data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/tryjob_gerrit_webrtc.json +26 -28
  111. data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/tryjob_v8.json +45 -5
  112. data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/tryjob_v8_head_by_default.json +17 -25
  113. data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/unrecognized_commit_repo.json +13 -0
  114. data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/with_manifest_name.json +13 -152
  115. data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/with_tags.json +4 -9
  116. data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.py +185 -202
  117. data/vendor/depot_tools/recipes/recipe_modules/bot_update/resources/bot_update.py +52 -157
  118. data/vendor/depot_tools/recipes/recipe_modules/bot_update/test_api.py +5 -14
  119. data/vendor/depot_tools/recipes/recipe_modules/bot_update/tests/ensure_checkout.py +34 -0
  120. data/vendor/depot_tools/recipes/recipe_modules/cipd/api.py +14 -2
  121. data/vendor/depot_tools/recipes/recipe_modules/cipd/examples/full.expected/basic.json +4 -5
  122. data/vendor/depot_tools/recipes/recipe_modules/cipd/examples/full.expected/basic_pkg.json +4 -5
  123. data/vendor/depot_tools/recipes/recipe_modules/cipd/examples/full.expected/describe-failed.json +7 -5
  124. data/vendor/depot_tools/recipes/recipe_modules/cipd/examples/full.expected/describe-many-instances.json +4 -5
  125. data/vendor/depot_tools/recipes/recipe_modules/cipd/examples/full.expected/mac64.json +4 -5
  126. data/vendor/depot_tools/recipes/recipe_modules/cipd/examples/full.expected/pkg_bad_file.json +9 -3
  127. data/vendor/depot_tools/recipes/recipe_modules/cipd/examples/full.expected/pkg_bad_mode.json +9 -3
  128. data/vendor/depot_tools/recipes/recipe_modules/cipd/examples/full.expected/pkg_bad_verfile.json +9 -3
  129. data/vendor/depot_tools/recipes/recipe_modules/cipd/examples/full.expected/win64.json +4 -5
  130. data/vendor/depot_tools/recipes/recipe_modules/cipd/examples/platform_suffix.expected/junk arch.json +2 -3
  131. data/vendor/depot_tools/recipes/recipe_modules/cipd/examples/platform_suffix.expected/junk bits.json +2 -3
  132. data/vendor/depot_tools/recipes/recipe_modules/cipd/examples/platform_suffix.expected/linux_arm_32.json +2 -3
  133. data/vendor/depot_tools/recipes/recipe_modules/cipd/examples/platform_suffix.expected/linux_arm_64.json +2 -3
  134. data/vendor/depot_tools/recipes/recipe_modules/cipd/examples/platform_suffix.expected/linux_intel_32.json +2 -3
  135. data/vendor/depot_tools/recipes/recipe_modules/cipd/examples/platform_suffix.expected/linux_intel_64.json +2 -3
  136. data/vendor/depot_tools/recipes/recipe_modules/cipd/examples/platform_suffix.expected/linux_mips_64.json +2 -3
  137. data/vendor/depot_tools/recipes/recipe_modules/cipd/examples/platform_suffix.expected/mac_intel_64.json +2 -3
  138. data/vendor/depot_tools/recipes/recipe_modules/cipd/examples/platform_suffix.expected/win_intel_32.json +2 -3
  139. data/vendor/depot_tools/recipes/recipe_modules/cipd/examples/platform_suffix.expected/win_intel_64.json +2 -3
  140. data/vendor/depot_tools/recipes/recipe_modules/depot_tools/api.py +13 -8
  141. data/vendor/depot_tools/recipes/recipe_modules/depot_tools/examples/full.expected/basic.json +18 -12
  142. data/vendor/depot_tools/recipes/recipe_modules/depot_tools/examples/full.expected/basic_luci.json +18 -12
  143. data/vendor/depot_tools/recipes/recipe_modules/depot_tools/examples/full.expected/win.json +18 -12
  144. data/vendor/depot_tools/recipes/recipe_modules/depot_tools/examples/full.py +3 -0
  145. data/vendor/depot_tools/recipes/recipe_modules/gclient/__init__.py +1 -0
  146. data/vendor/depot_tools/recipes/recipe_modules/gclient/api.py +58 -46
  147. data/vendor/depot_tools/recipes/recipe_modules/gclient/config.py +65 -22
  148. data/vendor/depot_tools/recipes/recipe_modules/gclient/examples/full.expected/basic.json +20 -21
  149. data/vendor/depot_tools/recipes/recipe_modules/gclient/examples/full.expected/buildbot.json +20 -21
  150. data/vendor/depot_tools/recipes/recipe_modules/gclient/examples/full.expected/revision.json +20 -21
  151. data/vendor/depot_tools/recipes/recipe_modules/gclient/examples/full.expected/tryserver.json +20 -21
  152. data/vendor/depot_tools/recipes/recipe_modules/gclient/examples/full.py +5 -2
  153. data/vendor/depot_tools/recipes/recipe_modules/gclient/tests/patch_project.py +62 -14
  154. data/vendor/depot_tools/recipes/recipe_modules/gerrit/api.py +24 -38
  155. data/vendor/depot_tools/recipes/recipe_modules/gerrit/examples/full.expected/basic.json +56 -50
  156. data/vendor/depot_tools/recipes/recipe_modules/gerrit/examples/full.py +15 -9
  157. data/vendor/depot_tools/recipes/recipe_modules/git/__init__.py +4 -1
  158. data/vendor/depot_tools/recipes/recipe_modules/git/api.py +34 -22
  159. data/vendor/depot_tools/recipes/recipe_modules/git/examples/full.expected/basic.json +5 -6
  160. data/vendor/depot_tools/recipes/recipe_modules/git/examples/full.expected/basic_branch.json +5 -6
  161. data/vendor/depot_tools/recipes/recipe_modules/git/examples/full.expected/basic_file_name.json +5 -6
  162. data/vendor/depot_tools/recipes/recipe_modules/git/examples/full.expected/basic_hash.json +5 -6
  163. data/vendor/depot_tools/recipes/recipe_modules/git/examples/full.expected/basic_luci.json +222 -0
  164. data/vendor/depot_tools/recipes/recipe_modules/git/examples/full.expected/basic_ref.json +5 -6
  165. data/vendor/depot_tools/recipes/recipe_modules/git/examples/full.expected/basic_submodule_update_force.json +5 -6
  166. data/vendor/depot_tools/recipes/recipe_modules/git/examples/full.expected/basic_tags.json +224 -0
  167. data/vendor/depot_tools/recipes/recipe_modules/git/examples/full.expected/can_fail_build.json +10 -6
  168. data/vendor/depot_tools/recipes/recipe_modules/git/examples/full.expected/cannot_fail_build.json +5 -7
  169. data/vendor/depot_tools/recipes/recipe_modules/git/examples/full.expected/cat-file_test.json +5 -6
  170. data/vendor/depot_tools/recipes/recipe_modules/git/examples/full.expected/count-objects_delta.json +5 -6
  171. data/vendor/depot_tools/recipes/recipe_modules/git/examples/full.expected/count-objects_failed.json +5 -7
  172. data/vendor/depot_tools/recipes/recipe_modules/git/examples/full.expected/count-objects_with_bad_output.json +5 -6
  173. data/vendor/depot_tools/recipes/recipe_modules/git/examples/full.expected/count-objects_with_bad_output_fails_build.json +10 -5
  174. data/vendor/depot_tools/recipes/recipe_modules/git/examples/full.expected/curl_trace_file.json +5 -6
  175. data/vendor/depot_tools/recipes/recipe_modules/git/examples/full.expected/git-cache-checkout.json +8 -9
  176. data/vendor/depot_tools/recipes/recipe_modules/git/examples/full.expected/platform_win.json +5 -6
  177. data/vendor/depot_tools/recipes/recipe_modules/git/examples/full.expected/rebase_failed.json +12 -8
  178. data/vendor/depot_tools/recipes/recipe_modules/git/examples/full.expected/remote_not_origin.json +5 -6
  179. data/vendor/depot_tools/recipes/recipe_modules/git/examples/full.expected/set_got_revision.json +5 -6
  180. data/vendor/depot_tools/recipes/recipe_modules/git/examples/full.py +27 -11
  181. data/vendor/depot_tools/recipes/recipe_modules/git_cl/api.py +1 -1
  182. data/vendor/depot_tools/recipes/recipe_modules/git_cl/examples/full.expected/basic.json +12 -13
  183. data/vendor/depot_tools/recipes/recipe_modules/gitiles/__init__.py +5 -0
  184. data/vendor/depot_tools/recipes/recipe_modules/gitiles/api.py +120 -5
  185. data/vendor/depot_tools/recipes/recipe_modules/gitiles/examples/full.expected/basic.json +45 -3
  186. data/vendor/depot_tools/recipes/recipe_modules/gitiles/examples/full.py +25 -0
  187. data/vendor/depot_tools/recipes/recipe_modules/gitiles/resources/gerrit_client.py +56 -4
  188. data/vendor/depot_tools/recipes/recipe_modules/gitiles/tests/parse_repo_url.expected/basic.json +6 -0
  189. data/vendor/depot_tools/recipes/recipe_modules/gitiles/tests/parse_repo_url.py +49 -0
  190. data/vendor/depot_tools/recipes/recipe_modules/gsutil/api.py +24 -13
  191. data/vendor/depot_tools/recipes/recipe_modules/gsutil/examples/full.expected/basic.json +13 -14
  192. data/vendor/depot_tools/recipes/recipe_modules/infra_paths/examples/full.expected/basic.json +2 -3
  193. data/vendor/depot_tools/recipes/recipe_modules/infra_paths/examples/full.expected/paths_buildbot_linux.json +2 -3
  194. data/vendor/depot_tools/recipes/recipe_modules/infra_paths/examples/full.expected/paths_buildbot_mac.json +2 -3
  195. data/vendor/depot_tools/recipes/recipe_modules/infra_paths/examples/full.expected/paths_buildbot_win.json +2 -3
  196. data/vendor/depot_tools/recipes/recipe_modules/infra_paths/examples/full.expected/paths_generic_linux.json +2 -3
  197. data/vendor/depot_tools/recipes/recipe_modules/infra_paths/examples/full.expected/paths_generic_mac.json +2 -3
  198. data/vendor/depot_tools/recipes/recipe_modules/infra_paths/examples/full.expected/paths_generic_win.json +2 -3
  199. data/vendor/depot_tools/recipes/recipe_modules/infra_paths/examples/full.expected/paths_kitchen_linux.json +2 -3
  200. data/vendor/depot_tools/recipes/recipe_modules/infra_paths/examples/full.expected/paths_kitchen_mac.json +2 -3
  201. data/vendor/depot_tools/recipes/recipe_modules/infra_paths/examples/full.expected/paths_kitchen_win.json +2 -3
  202. data/vendor/depot_tools/recipes/recipe_modules/infra_paths/path_config.py +1 -2
  203. data/vendor/depot_tools/recipes/recipe_modules/osx_sdk/__init__.py +35 -0
  204. data/vendor/depot_tools/recipes/recipe_modules/osx_sdk/api.py +116 -0
  205. data/vendor/depot_tools/recipes/recipe_modules/osx_sdk/examples/full.expected/linux.json +22 -0
  206. data/vendor/depot_tools/recipes/recipe_modules/osx_sdk/examples/full.expected/mac.json +82 -0
  207. data/vendor/depot_tools/recipes/recipe_modules/osx_sdk/examples/full.expected/win.json +22 -0
  208. data/vendor/depot_tools/recipes/recipe_modules/osx_sdk/examples/full.py +23 -0
  209. data/vendor/depot_tools/recipes/recipe_modules/presubmit/__init__.py +1 -0
  210. data/vendor/depot_tools/recipes/recipe_modules/presubmit/api.py +2 -7
  211. data/vendor/depot_tools/recipes/recipe_modules/presubmit/examples/full.expected/basic.json +7 -6
  212. data/vendor/depot_tools/recipes/recipe_modules/tryserver/__init__.py +1 -0
  213. data/vendor/depot_tools/recipes/recipe_modules/tryserver/api.py +117 -8
  214. data/vendor/depot_tools/recipes/recipe_modules/tryserver/examples/full.expected/basic_tags.json +4 -5
  215. data/vendor/depot_tools/recipes/recipe_modules/tryserver/examples/full.expected/set_failure_hash_with_no_steps.json +7 -4
  216. data/vendor/depot_tools/recipes/recipe_modules/tryserver/examples/full.expected/with_gerrit_patch.json +98 -7
  217. data/vendor/depot_tools/recipes/recipe_modules/tryserver/examples/full.expected/with_gerrit_patch_and_target_ref.json +147 -0
  218. data/vendor/depot_tools/recipes/recipe_modules/tryserver/examples/full.expected/with_git_patch.json +8 -5
  219. data/vendor/depot_tools/recipes/recipe_modules/tryserver/examples/full.expected/with_git_patch_luci.json +8 -5
  220. data/vendor/depot_tools/recipes/recipe_modules/tryserver/examples/full.expected/with_wrong_patch.json +9 -6
  221. data/vendor/depot_tools/recipes/recipe_modules/tryserver/examples/full.expected/with_wrong_patch_new.json +9 -6
  222. data/vendor/depot_tools/recipes/recipe_modules/tryserver/examples/full.py +27 -2
  223. data/vendor/depot_tools/recipes/recipe_modules/tryserver/test_api.py +14 -0
  224. data/vendor/depot_tools/recipes/recipe_modules/windows_sdk/__init__.py +25 -0
  225. data/vendor/depot_tools/recipes/recipe_modules/windows_sdk/api.py +137 -0
  226. data/vendor/depot_tools/recipes/recipe_modules/windows_sdk/examples/full.expected/linux.json +22 -0
  227. data/vendor/depot_tools/recipes/recipe_modules/windows_sdk/examples/full.expected/mac.json +22 -0
  228. data/vendor/depot_tools/recipes/recipe_modules/windows_sdk/examples/full.expected/win.json +107 -0
  229. data/vendor/depot_tools/recipes/recipe_modules/windows_sdk/examples/full.py +26 -0
  230. data/vendor/depot_tools/recipes/recipes.py +37 -27
  231. data/vendor/depot_tools/recipes/recipes/fetch_end_to_end_test.expected/basic.json +7 -10
  232. data/vendor/depot_tools/repo +34 -8
  233. data/vendor/depot_tools/roll_dep.py +52 -49
  234. data/vendor/depot_tools/scm.py +38 -23
  235. data/vendor/depot_tools/setup_color.py +4 -2
  236. data/vendor/depot_tools/split_cl.py +32 -4
  237. data/vendor/depot_tools/subprocess2.py +22 -4
  238. data/vendor/depot_tools/third_party/httplib2/README.chromium +2 -2
  239. data/vendor/depot_tools/third_party/httplib2/__init__.py +242 -158
  240. data/vendor/depot_tools/third_party/httplib2/cacerts.txt +57 -44
  241. data/vendor/depot_tools/third_party/httplib2/socks.py +15 -5
  242. data/vendor/depot_tools/third_party/logilab/README.chromium +2 -4
  243. data/vendor/depot_tools/third_party/logilab/astroid/README.chromium +2 -1
  244. data/vendor/depot_tools/third_party/logilab/astroid/__init__.py +10 -5
  245. data/vendor/depot_tools/third_party/logilab/astroid/__pkginfo__.py +5 -5
  246. data/vendor/depot_tools/third_party/logilab/astroid/arguments.py +233 -0
  247. data/vendor/depot_tools/third_party/logilab/astroid/as_string.py +82 -33
  248. data/vendor/depot_tools/third_party/logilab/astroid/bases.py +137 -153
  249. data/vendor/depot_tools/third_party/logilab/astroid/brain/{builtin_inference.py → brain_builtin_inference.py} +117 -26
  250. data/vendor/depot_tools/third_party/logilab/astroid/brain/brain_dateutil.py +15 -0
  251. data/vendor/depot_tools/third_party/logilab/astroid/brain/{py2gi.py → brain_gi.py} +48 -8
  252. data/vendor/depot_tools/third_party/logilab/astroid/brain/{py2mechanize.py → brain_mechanize.py} +0 -0
  253. data/vendor/depot_tools/third_party/logilab/astroid/brain/{pynose.py → brain_nose.py} +4 -1
  254. data/vendor/depot_tools/third_party/logilab/astroid/brain/brain_numpy.py +62 -0
  255. data/vendor/depot_tools/third_party/logilab/astroid/brain/brain_pytest.py +76 -0
  256. data/vendor/depot_tools/third_party/logilab/astroid/brain/brain_qt.py +44 -0
  257. data/vendor/depot_tools/third_party/logilab/astroid/brain/{pysix_moves.py → brain_six.py} +28 -1
  258. data/vendor/depot_tools/third_party/logilab/astroid/brain/brain_ssl.py +65 -0
  259. data/vendor/depot_tools/third_party/logilab/astroid/brain/brain_stdlib.py +473 -0
  260. data/vendor/depot_tools/third_party/logilab/astroid/builder.py +104 -81
  261. data/vendor/depot_tools/third_party/logilab/astroid/context.py +81 -0
  262. data/vendor/depot_tools/third_party/logilab/astroid/decorators.py +75 -0
  263. data/vendor/depot_tools/third_party/logilab/astroid/exceptions.py +20 -0
  264. data/vendor/depot_tools/third_party/logilab/astroid/inference.py +137 -183
  265. data/vendor/depot_tools/third_party/logilab/astroid/manager.py +45 -169
  266. data/vendor/depot_tools/third_party/logilab/astroid/mixins.py +37 -14
  267. data/vendor/depot_tools/third_party/logilab/astroid/modutils.py +112 -41
  268. data/vendor/depot_tools/third_party/logilab/astroid/node_classes.py +243 -156
  269. data/vendor/depot_tools/third_party/logilab/astroid/nodes.py +35 -22
  270. data/vendor/depot_tools/third_party/logilab/astroid/objects.py +186 -0
  271. data/vendor/depot_tools/third_party/logilab/astroid/protocols.py +157 -102
  272. data/vendor/depot_tools/third_party/logilab/astroid/raw_building.py +32 -8
  273. data/vendor/depot_tools/third_party/logilab/astroid/rebuilder.py +372 -309
  274. data/vendor/depot_tools/third_party/logilab/astroid/scoped_nodes.py +652 -420
  275. data/vendor/depot_tools/third_party/logilab/astroid/test_utils.py +4 -21
  276. data/vendor/depot_tools/third_party/logilab/astroid/transforms.py +96 -0
  277. data/vendor/depot_tools/third_party/logilab/astroid/util.py +89 -0
  278. data/vendor/depot_tools/third_party/logilab/lazy_object_proxy/LICENSE +19 -0
  279. data/vendor/depot_tools/third_party/logilab/lazy_object_proxy/README.chromium +11 -0
  280. data/vendor/depot_tools/third_party/logilab/lazy_object_proxy/__init__.py +20 -0
  281. data/vendor/depot_tools/third_party/logilab/lazy_object_proxy/cext.c +1421 -0
  282. data/vendor/depot_tools/third_party/logilab/lazy_object_proxy/compat.py +9 -0
  283. data/vendor/depot_tools/third_party/logilab/lazy_object_proxy/simple.py +246 -0
  284. data/vendor/depot_tools/third_party/logilab/lazy_object_proxy/slots.py +414 -0
  285. data/vendor/depot_tools/third_party/logilab/lazy_object_proxy/utils.py +13 -0
  286. data/vendor/depot_tools/third_party/logilab/wrapt/LICENSE +24 -0
  287. data/vendor/depot_tools/third_party/logilab/wrapt/README.chromium +11 -0
  288. data/vendor/depot_tools/third_party/logilab/wrapt/__init__.py +19 -0
  289. data/vendor/depot_tools/third_party/logilab/wrapt/_wrappers.c +2729 -0
  290. data/vendor/depot_tools/third_party/logilab/wrapt/arguments.py +96 -0
  291. data/vendor/depot_tools/third_party/logilab/wrapt/decorators.py +512 -0
  292. data/vendor/depot_tools/third_party/logilab/wrapt/importer.py +228 -0
  293. data/vendor/depot_tools/third_party/logilab/wrapt/wrappers.py +901 -0
  294. data/vendor/depot_tools/third_party/pylint/README.chromium +2 -25
  295. data/vendor/depot_tools/third_party/pylint/__pkginfo__.py +13 -3
  296. data/vendor/depot_tools/third_party/pylint/checkers/__init__.py +1 -2
  297. data/vendor/depot_tools/third_party/pylint/checkers/async.py +82 -0
  298. data/vendor/depot_tools/third_party/pylint/checkers/base.py +893 -119
  299. data/vendor/depot_tools/third_party/pylint/checkers/classes.py +342 -204
  300. data/vendor/depot_tools/third_party/pylint/checkers/design_analysis.py +51 -34
  301. data/vendor/depot_tools/third_party/pylint/checkers/exceptions.py +84 -47
  302. data/vendor/depot_tools/third_party/pylint/checkers/format.py +55 -30
  303. data/vendor/depot_tools/third_party/pylint/checkers/imports.py +314 -73
  304. data/vendor/depot_tools/third_party/pylint/checkers/logging.py +10 -8
  305. data/vendor/depot_tools/third_party/pylint/checkers/misc.py +2 -1
  306. data/vendor/depot_tools/third_party/pylint/checkers/newstyle.py +45 -48
  307. data/vendor/depot_tools/third_party/pylint/checkers/python3.py +31 -21
  308. data/vendor/depot_tools/third_party/pylint/checkers/raw_metrics.py +3 -3
  309. data/vendor/depot_tools/third_party/pylint/checkers/similar.py +4 -5
  310. data/vendor/depot_tools/third_party/pylint/checkers/spelling.py +24 -10
  311. data/vendor/depot_tools/third_party/pylint/checkers/stdlib.py +120 -56
  312. data/vendor/depot_tools/third_party/pylint/checkers/strings.py +38 -35
  313. data/vendor/depot_tools/third_party/pylint/checkers/typecheck.py +485 -138
  314. data/vendor/depot_tools/third_party/pylint/checkers/utils.py +319 -142
  315. data/vendor/depot_tools/third_party/pylint/checkers/variables.py +329 -207
  316. data/vendor/depot_tools/third_party/pylint/config.py +739 -76
  317. data/vendor/depot_tools/third_party/pylint/epylint.py +9 -5
  318. data/vendor/depot_tools/third_party/pylint/extensions/__init__.py +0 -0
  319. data/vendor/depot_tools/third_party/pylint/extensions/check_docs.py +311 -0
  320. data/vendor/depot_tools/third_party/pylint/extensions/check_elif.py +62 -0
  321. data/vendor/depot_tools/third_party/{logilab/common → pylint}/graph.py +30 -133
  322. data/vendor/depot_tools/third_party/pylint/gui.py +2 -2
  323. data/vendor/depot_tools/third_party/pylint/interfaces.py +21 -3
  324. data/vendor/depot_tools/third_party/pylint/lint.py +123 -140
  325. data/vendor/depot_tools/third_party/pylint/pyreverse/diadefslib.py +10 -13
  326. data/vendor/depot_tools/third_party/pylint/pyreverse/diagrams.py +15 -4
  327. data/vendor/depot_tools/third_party/pylint/pyreverse/inspector.py +372 -0
  328. data/vendor/depot_tools/third_party/pylint/pyreverse/main.py +30 -7
  329. data/vendor/depot_tools/third_party/pylint/pyreverse/utils.py +80 -2
  330. data/vendor/depot_tools/third_party/{logilab/common → pylint/pyreverse}/vcgutils.py +19 -37
  331. data/vendor/depot_tools/third_party/pylint/pyreverse/writer.py +3 -4
  332. data/vendor/depot_tools/third_party/pylint/reporters/__init__.py +34 -18
  333. data/vendor/depot_tools/third_party/pylint/reporters/guireporter.py +1 -1
  334. data/vendor/depot_tools/third_party/pylint/reporters/html.py +10 -3
  335. data/vendor/depot_tools/third_party/pylint/reporters/json.py +10 -4
  336. data/vendor/depot_tools/third_party/pylint/reporters/text.py +94 -3
  337. data/vendor/depot_tools/third_party/pylint/reporters/ureports/__init__.py +106 -0
  338. data/vendor/depot_tools/third_party/{logilab/common → pylint/reporters}/ureports/html_writer.py +17 -57
  339. data/vendor/depot_tools/third_party/{logilab/common → pylint/reporters}/ureports/nodes.py +52 -74
  340. data/vendor/depot_tools/third_party/{logilab/common → pylint/reporters}/ureports/text_writer.py +14 -60
  341. data/vendor/depot_tools/third_party/pylint/testutils.py +22 -20
  342. data/vendor/depot_tools/third_party/pylint/utils.py +268 -44
  343. data/vendor/depot_tools/third_party/repo/progress.py +42 -0
  344. data/vendor/depot_tools/update_depot_tools +1 -1
  345. data/vendor/depot_tools/upload_metrics.py +25 -0
  346. data/vendor/depot_tools/win_toolchain/get_toolchain_if_necessary.py +45 -15
  347. data/vendor/depot_tools/win_toolchain/package_from_installed.py +71 -24
  348. data/vendor/depot_tools/yapf +1 -1
  349. data/vendor/depot_tools/yapf.bat +1 -1
  350. metadata +92 -77
  351. data/vendor/depot_tools/git-crsync +0 -3
  352. data/vendor/depot_tools/infra/config/cq.cfg +0 -32
  353. data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/apply_gerrit_ref.json +0 -29
  354. data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/apply_gerrit_ref_custom.json +0 -29
  355. data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/buildbot.json +0 -105
  356. data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/shallow.json +0 -195
  357. data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/tryjob_gerrit_angle_deprecated.json +0 -248
  358. data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/tryjob_gerrit_v8.json +0 -248
  359. data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/with_manifest_name_no_patch.json +0 -105
  360. data/vendor/depot_tools/recipes/recipe_modules/bot_update/resources/apply_gerrit.py +0 -33
  361. data/vendor/depot_tools/third_party/logilab/astroid/brain/py2pytest.py +0 -31
  362. data/vendor/depot_tools/third_party/logilab/astroid/brain/py2qt4.py +0 -22
  363. data/vendor/depot_tools/third_party/logilab/astroid/brain/py2stdlib.py +0 -334
  364. data/vendor/depot_tools/third_party/logilab/astroid/inspector.py +0 -273
  365. data/vendor/depot_tools/third_party/logilab/astroid/utils.py +0 -239
  366. data/vendor/depot_tools/third_party/logilab/common/LICENSE.txt +0 -339
  367. data/vendor/depot_tools/third_party/logilab/common/README.chromium +0 -11
  368. data/vendor/depot_tools/third_party/logilab/common/__init__.py +0 -175
  369. data/vendor/depot_tools/third_party/logilab/common/__pkginfo__.py +0 -57
  370. data/vendor/depot_tools/third_party/logilab/common/cache.py +0 -114
  371. data/vendor/depot_tools/third_party/logilab/common/changelog.py +0 -238
  372. data/vendor/depot_tools/third_party/logilab/common/clcommands.py +0 -334
  373. data/vendor/depot_tools/third_party/logilab/common/cli.py +0 -211
  374. data/vendor/depot_tools/third_party/logilab/common/compat.py +0 -78
  375. data/vendor/depot_tools/third_party/logilab/common/configuration.py +0 -1105
  376. data/vendor/depot_tools/third_party/logilab/common/contexts.py +0 -5
  377. data/vendor/depot_tools/third_party/logilab/common/corbautils.py +0 -117
  378. data/vendor/depot_tools/third_party/logilab/common/daemon.py +0 -101
  379. data/vendor/depot_tools/third_party/logilab/common/date.py +0 -335
  380. data/vendor/depot_tools/third_party/logilab/common/dbf.py +0 -231
  381. data/vendor/depot_tools/third_party/logilab/common/debugger.py +0 -214
  382. data/vendor/depot_tools/third_party/logilab/common/decorators.py +0 -281
  383. data/vendor/depot_tools/third_party/logilab/common/deprecation.py +0 -189
  384. data/vendor/depot_tools/third_party/logilab/common/fileutils.py +0 -404
  385. data/vendor/depot_tools/third_party/logilab/common/interface.py +0 -71
  386. data/vendor/depot_tools/third_party/logilab/common/logging_ext.py +0 -195
  387. data/vendor/depot_tools/third_party/logilab/common/modutils.py +0 -702
  388. data/vendor/depot_tools/third_party/logilab/common/optik_ext.py +0 -392
  389. data/vendor/depot_tools/third_party/logilab/common/optparser.py +0 -92
  390. data/vendor/depot_tools/third_party/logilab/common/proc.py +0 -277
  391. data/vendor/depot_tools/third_party/logilab/common/pyro_ext.py +0 -180
  392. data/vendor/depot_tools/third_party/logilab/common/pytest.py +0 -1199
  393. data/vendor/depot_tools/third_party/logilab/common/registry.py +0 -1119
  394. data/vendor/depot_tools/third_party/logilab/common/shellutils.py +0 -462
  395. data/vendor/depot_tools/third_party/logilab/common/sphinx_ext.py +0 -87
  396. data/vendor/depot_tools/third_party/logilab/common/sphinxutils.py +0 -122
  397. data/vendor/depot_tools/third_party/logilab/common/table.py +0 -929
  398. data/vendor/depot_tools/third_party/logilab/common/tasksqueue.py +0 -101
  399. data/vendor/depot_tools/third_party/logilab/common/testlib.py +0 -1392
  400. data/vendor/depot_tools/third_party/logilab/common/textutils.py +0 -537
  401. data/vendor/depot_tools/third_party/logilab/common/tree.py +0 -369
  402. data/vendor/depot_tools/third_party/logilab/common/umessage.py +0 -194
  403. data/vendor/depot_tools/third_party/logilab/common/ureports/__init__.py +0 -172
  404. data/vendor/depot_tools/third_party/logilab/common/ureports/docbook_writer.py +0 -140
  405. data/vendor/depot_tools/third_party/logilab/common/urllib2ext.py +0 -89
  406. data/vendor/depot_tools/third_party/logilab/common/visitor.py +0 -109
  407. data/vendor/depot_tools/third_party/logilab/common/xmlrpcutils.py +0 -131
  408. data/vendor/depot_tools/third_party/logilab/common/xmlutils.py +0 -61
@@ -1 +1 @@
1
- git_revision:4d19637ec2c3d1efd8c6a1b05285118b786919e2
1
+ git_revision:bd09df254cc0d6ca4319f23c16b9039091be5b00
@@ -0,0 +1,21 @@
1
+ # This file was generated by
2
+ #
3
+ # cipd selfupdate-roll -version-file cipd_client_version \
4
+ # -version git_revision:bd09df254cc0d6ca4319f23c16b9039091be5b00
5
+ #
6
+ # Do not modify manually. All changes will be overwritten.
7
+ # Use 'cipd selfupdate-roll ...' to modify.
8
+
9
+ linux-386 sha256 23b2f95b3f0c5ea9f6fd324ca74005a62f2fcb98b71319e1a6a26e397c377c14
10
+ linux-amd64 sha256 e647f6534fd79d9fc1e3b0071623109be14e6b0477ad862f37eac86c0668f6f3
11
+ linux-arm64 sha256 4c037a17b36e6a5cd971dcfb49425f0b660bd61596c4fa66fb70d7d2c1219926
12
+ linux-armv6l sha256 4eaa0ca59354ee575c864f8cf437cc50806db084dfc9a92fb614c566aa5994f1
13
+ linux-mips64 sha256 9692967944ddf9cf2ca9af6bea412783cff510f2ea2d3fd7a3eb63dfc9ceec51
14
+ linux-mips64le sha256 c6736a879d57dc18eb138aaa3410ddc62666e22d8631def1ea4d1b56a58e7c44
15
+ linux-mipsle sha256 74520d54f9e083a8238246aef206c75bef7e4be5a6434ce425c03d59c4d9965e
16
+ linux-ppc64 sha256 2c838dae5d1ec2850daa1420d4ee6f2eb1890e556c23f02cd525bf4b9cd529d7
17
+ linux-ppc64le sha256 05bb6488174857393819bc86f84c6af7d7b0a9689227b337dc6055db3d24edab
18
+ linux-s390x sha256 b2bde3787c62914514d38bd643fef69659ccc97e15d07abaa67e3480306c0934
19
+ mac-amd64 sha256 b6f197cce904461e52fae4d3a1542f1af084c627b573af6ddaaed232b8b269b1
20
+ windows-386 sha256 a70ea062902f95813864151f0f7ee4dde277065315bcd83c5187a30f3a74ce12
21
+ windows-amd64 sha256 34de43295f6f0468653521ad42813b69614b94fef0abf5b7886067d4e5724bb1
@@ -2,6 +2,12 @@
2
2
  # Use of this source code is governed by a BSD-style license that can be
3
3
  # found in the LICENSE file.
4
4
 
5
+ # Pin resolved versions in the repo, to reduce trust in the CIPD backend.
6
+ #
7
+ # To regenerate them (after modifying this file):
8
+ # cipd ensure-file-resolve -ensure-file cipd_manifest.txt
9
+ $ResolvedVersions cipd_manifest.versions
10
+
5
11
  # Fully supported plaforms.
6
12
  $VerifiedPlatform linux-amd64 mac-amd64 windows-amd64 windows-386
7
13
 
@@ -9,19 +15,26 @@ $VerifiedPlatform linux-amd64 mac-amd64 windows-amd64 windows-386
9
15
  # them, but we do not test they work. They also may not have all necessary
10
16
  # vpython packages.
11
17
  $VerifiedPlatform linux-386 linux-ppc64 linux-ppc64le linux-s390x
12
- $VerifiedPlatform linux-arm64 linux-armv6l linux-mips64
18
+ $VerifiedPlatform linux-arm64 linux-armv6l
19
+ $VerifiedPlatform linux-mips64 linux-mips64le linux-mipsle
13
20
 
14
21
  # vpython.
15
- infra/tools/luci/vpython/${platform} git_revision:4d19637ec2c3d1efd8c6a1b05285118b786919e2
22
+ infra/tools/luci/vpython/${platform} git_revision:0bff6ebf817352838b0e6f65fd6460b38c505c9c
16
23
 
17
24
  # LUCI editor
18
- infra/tools/luci/led/${platform} git_revision:7ba61969ccbe1f9679661555f72ca947da508a70
25
+ infra/tools/luci/led/${platform} git_revision:e4631c9c5c5abf39ac8247aaf647a95563714ec1
26
+
27
+ # LUCI config generator
28
+ infra/tools/luci/lucicfg/${platform} git_revision:b1dbee0e43053ad42566a64d37b0eb1502a20302
19
29
 
20
30
  # Mac toolchain installer
21
- infra/tools/mac_toolchain/${os=mac}-${arch} git_revision:796d2b92cff93fc2059623ce0a66284373ceea0a
31
+ infra/tools/mac_toolchain/${os=mac}-${arch} git_revision:edd5644be66d37cdf82978efb0e5d6504d0d552f
22
32
 
23
33
  # LUCI rpc command line tool
24
- infra/tools/prpc/${platform} git_revision:e1abc57be62d198b5c2f487bfb2fa2d2eb0e867c
34
+ infra/tools/prpc/${platform} git_revision:edd5644be66d37cdf82978efb0e5d6504d0d552f
25
35
 
26
36
  # LUCI authentication command line tool
27
- infra/tools/luci-auth/${platform} git_revision:e1abc57be62d198b5c2f487bfb2fa2d2eb0e867c
37
+ infra/tools/luci-auth/${platform} git_revision:edd5644be66d37cdf82978efb0e5d6504d0d552f
38
+
39
+ # LUCI Buildbucket CLI
40
+ infra/tools/bb/${platform} git_revision:080c945efd74d45e9edac5d5b6cc598bbe106593
@@ -0,0 +1,318 @@
1
+ # This file is auto-generated by 'cipd ensure-file-resolve'.
2
+ # Do not modify manually. All changes will be overwritten.
3
+
4
+ infra/tools/bb/linux-386
5
+ git_revision:080c945efd74d45e9edac5d5b6cc598bbe106593
6
+ fdciGVssAXvDr0HvgQKT2TLsYyrTcdwRwk44pyb0Id4C
7
+
8
+ infra/tools/bb/linux-amd64
9
+ git_revision:080c945efd74d45e9edac5d5b6cc598bbe106593
10
+ 6sM6knGGJJgRtQkuwHUvh1c0S_izy43PdQSERPdUedYC
11
+
12
+ infra/tools/bb/linux-arm64
13
+ git_revision:080c945efd74d45e9edac5d5b6cc598bbe106593
14
+ nf61pf7VbAJFXF16LMEJm0_03C4ddODnoe6iKA7LhfIC
15
+
16
+ infra/tools/bb/linux-armv6l
17
+ git_revision:080c945efd74d45e9edac5d5b6cc598bbe106593
18
+ 959E62T5yolri6gKaE61ToFXMDdwDdaNOZTQpPjI_NQC
19
+
20
+ infra/tools/bb/linux-mips64
21
+ git_revision:080c945efd74d45e9edac5d5b6cc598bbe106593
22
+ 7R90YbsSC58qU6A-bw2VQimuObLCPx47Qdxu-A9ahUsC
23
+
24
+ infra/tools/bb/linux-mips64le
25
+ git_revision:080c945efd74d45e9edac5d5b6cc598bbe106593
26
+ YvA529eJIIOpBGCtR6ukFJW8iwivI_6QiuD1lIKHW7AC
27
+
28
+ infra/tools/bb/linux-mipsle
29
+ git_revision:080c945efd74d45e9edac5d5b6cc598bbe106593
30
+ dRUDkkV8QdrBy2sqqmd1JkZ99EItzuzUuvhwQDsfHJYC
31
+
32
+ infra/tools/bb/linux-ppc64
33
+ git_revision:080c945efd74d45e9edac5d5b6cc598bbe106593
34
+ 0LVjahpJgft-BxAzzw-3Po4ol4kHVbzDTVo87q5Yy2sC
35
+
36
+ infra/tools/bb/linux-ppc64le
37
+ git_revision:080c945efd74d45e9edac5d5b6cc598bbe106593
38
+ VHm9AhQQ4TvfVCRmKTR3efk3gPrFgY0QMy26oMmSFs4C
39
+
40
+ infra/tools/bb/linux-s390x
41
+ git_revision:080c945efd74d45e9edac5d5b6cc598bbe106593
42
+ 8pr-CZr8-VtstOg5j8_GNrwR5npg-_ehgx2cmegd3jMC
43
+
44
+ infra/tools/bb/mac-amd64
45
+ git_revision:080c945efd74d45e9edac5d5b6cc598bbe106593
46
+ dJ3Ichyo64zrOAu4OUta9RV2xqMCgZH2_Pvj6scvRMAC
47
+
48
+ infra/tools/bb/windows-386
49
+ git_revision:080c945efd74d45e9edac5d5b6cc598bbe106593
50
+ pyc5WnBzHkr4jV2-GEUmndS5z5P4YrQLsKGe0LjroLUC
51
+
52
+ infra/tools/bb/windows-amd64
53
+ git_revision:080c945efd74d45e9edac5d5b6cc598bbe106593
54
+ -JYvGoq3ij5K77096hPj4ldwj1t9tYvYuMJ7MW-zRsAC
55
+
56
+ infra/tools/luci-auth/linux-386
57
+ git_revision:edd5644be66d37cdf82978efb0e5d6504d0d552f
58
+ 8TWSqbfcomDrxK72OV-nPlCUsb58EiGmWPI7Ml3C1j4C
59
+
60
+ infra/tools/luci-auth/linux-amd64
61
+ git_revision:edd5644be66d37cdf82978efb0e5d6504d0d552f
62
+ nVALr-QAQcGQzbeduXLm18hqyxFmi2NxfJ--3iW7BhUC
63
+
64
+ infra/tools/luci-auth/linux-arm64
65
+ git_revision:edd5644be66d37cdf82978efb0e5d6504d0d552f
66
+ hV3ksc0ub0GrxOx8C4hMOfjswtKrdHYl8Svt6_1RrDgC
67
+
68
+ infra/tools/luci-auth/linux-armv6l
69
+ git_revision:edd5644be66d37cdf82978efb0e5d6504d0d552f
70
+ Qq9BPtwG3VKRHHwEwI2-8W8nPeyLeVL1Nvhw2uTG50gC
71
+
72
+ infra/tools/luci-auth/linux-mips64
73
+ git_revision:edd5644be66d37cdf82978efb0e5d6504d0d552f
74
+ Arr-nYTrW89jp-E6g1NXpkZ2Er8q4CJm7A1Z6FnYcJIC
75
+
76
+ infra/tools/luci-auth/linux-mips64le
77
+ git_revision:edd5644be66d37cdf82978efb0e5d6504d0d552f
78
+ j65WEvX_eRsHFUZ8zAQDZF2eadCfdCp8RYgHQOm2_a0C
79
+
80
+ infra/tools/luci-auth/linux-mipsle
81
+ git_revision:edd5644be66d37cdf82978efb0e5d6504d0d552f
82
+ QXLayUV_TvsPU2ak8YFFH9yCN3y45HlYr_I_nN69JK4C
83
+
84
+ infra/tools/luci-auth/linux-ppc64
85
+ git_revision:edd5644be66d37cdf82978efb0e5d6504d0d552f
86
+ CrEGeZSEp8erFoF07WfO17_XLIgKGiCBr1HSsVpRGa0C
87
+
88
+ infra/tools/luci-auth/linux-ppc64le
89
+ git_revision:edd5644be66d37cdf82978efb0e5d6504d0d552f
90
+ 0rogC4GEIKSXnV8Na5fKIrDe8fsRF8Q4yTMNqdGMVCEC
91
+
92
+ infra/tools/luci-auth/linux-s390x
93
+ git_revision:edd5644be66d37cdf82978efb0e5d6504d0d552f
94
+ 3el1lBm8KsCamV8r8H2e052zg-Yf6t4pZdUzuyWRm44C
95
+
96
+ infra/tools/luci-auth/mac-amd64
97
+ git_revision:edd5644be66d37cdf82978efb0e5d6504d0d552f
98
+ 9SZu6I4X6qu0mqPhjD2U7YmLk1SkPPh4x5hUhvIHTdUC
99
+
100
+ infra/tools/luci-auth/windows-386
101
+ git_revision:edd5644be66d37cdf82978efb0e5d6504d0d552f
102
+ l3cXhvcusi9ypW-29WeabxvkEVjQ6p1Xwc80VfLTqNwC
103
+
104
+ infra/tools/luci-auth/windows-amd64
105
+ git_revision:edd5644be66d37cdf82978efb0e5d6504d0d552f
106
+ GBs8p3OBQPPVvztd0oS5qFhvEy5JVvPZFnbod0DZ-FAC
107
+
108
+ infra/tools/luci/led/linux-386
109
+ git_revision:e4631c9c5c5abf39ac8247aaf647a95563714ec1
110
+ WmLhGAU8dI-OUoQFtns-pa4cwdmPsgEi0ifsEsgXGIoC
111
+
112
+ infra/tools/luci/led/linux-amd64
113
+ git_revision:e4631c9c5c5abf39ac8247aaf647a95563714ec1
114
+ bIXofUbVs48AlVC4Wg8EQILoOonaYPPX1uSXgiy_sP8C
115
+
116
+ infra/tools/luci/led/linux-arm64
117
+ git_revision:e4631c9c5c5abf39ac8247aaf647a95563714ec1
118
+ PEzkMzBHP2aQXCByroOgjlbO_RHg9uKLqKK7_5EFvUkC
119
+
120
+ infra/tools/luci/led/linux-armv6l
121
+ git_revision:e4631c9c5c5abf39ac8247aaf647a95563714ec1
122
+ iuHuYjaoRnUa1DtgIW_VqutuVVDScDeRGFlMvG_F4oEC
123
+
124
+ infra/tools/luci/led/linux-mips64
125
+ git_revision:e4631c9c5c5abf39ac8247aaf647a95563714ec1
126
+ 9nte8TLuUUpDqdGurb5YQ5_yrIIHAe8QC7nlsqZv8eIC
127
+
128
+ infra/tools/luci/led/linux-mips64le
129
+ git_revision:e4631c9c5c5abf39ac8247aaf647a95563714ec1
130
+ qiJ8qoUmPPmfq-Fkox0cFtPEVhFRuw5EMTdNjVIMtT8C
131
+
132
+ infra/tools/luci/led/linux-mipsle
133
+ git_revision:e4631c9c5c5abf39ac8247aaf647a95563714ec1
134
+ RtausZx16fkl65FgESrLvYX12FWJwnZGRket5j8n7p4C
135
+
136
+ infra/tools/luci/led/linux-ppc64
137
+ git_revision:e4631c9c5c5abf39ac8247aaf647a95563714ec1
138
+ yVttYbuzyiJWgWPf6tEoV80EtuOLiNvuRwJSoYoQrp4C
139
+
140
+ infra/tools/luci/led/linux-ppc64le
141
+ git_revision:e4631c9c5c5abf39ac8247aaf647a95563714ec1
142
+ N4VNZVNlmIUYTyBleWG3M8-Lz0j9B8fyi8h6GIjawCMC
143
+
144
+ infra/tools/luci/led/linux-s390x
145
+ git_revision:e4631c9c5c5abf39ac8247aaf647a95563714ec1
146
+ lDaipKpuK69E3jDZesWdQmeW5McLDesvSqhRumCcP14C
147
+
148
+ infra/tools/luci/led/mac-amd64
149
+ git_revision:e4631c9c5c5abf39ac8247aaf647a95563714ec1
150
+ yFn0BLG3ZK1vIwcbWuniqi7w3gsOED7-BWvdAPfh8_4C
151
+
152
+ infra/tools/luci/led/windows-386
153
+ git_revision:e4631c9c5c5abf39ac8247aaf647a95563714ec1
154
+ EFthyJJIkZJfC52-d8jd0vVmZibzDbrvGqDwsuRD7hsC
155
+
156
+ infra/tools/luci/led/windows-amd64
157
+ git_revision:e4631c9c5c5abf39ac8247aaf647a95563714ec1
158
+ VlDL4g6pdFTxz61iQdlA55IWS2Gx8421BcXm92H5iLEC
159
+
160
+ infra/tools/luci/lucicfg/linux-386
161
+ git_revision:b1dbee0e43053ad42566a64d37b0eb1502a20302
162
+ RyA-MKvh2YU4w-1MBZ3XFnFJDvAB5f-TUCfPy6Vo-hwC
163
+
164
+ infra/tools/luci/lucicfg/linux-amd64
165
+ git_revision:b1dbee0e43053ad42566a64d37b0eb1502a20302
166
+ KnFdZRjhMkpQ8cp5kUncDG6Kj2KXHE6b1L3j9mYBBM8C
167
+
168
+ infra/tools/luci/lucicfg/linux-arm64
169
+ git_revision:b1dbee0e43053ad42566a64d37b0eb1502a20302
170
+ jFW-An-kloCZGZGCZ27eWn465kt6znCdflqKUuYeAaIC
171
+
172
+ infra/tools/luci/lucicfg/linux-armv6l
173
+ git_revision:b1dbee0e43053ad42566a64d37b0eb1502a20302
174
+ f5ajllwfnkbwHTZUhq8fAomKL1T-mrqrcrGQiy8rbbQC
175
+
176
+ infra/tools/luci/lucicfg/linux-mips64
177
+ git_revision:b1dbee0e43053ad42566a64d37b0eb1502a20302
178
+ CKxhSu3ddgRPM31mCZDDHXI9PTw27236SkVf-u7qwd4C
179
+
180
+ infra/tools/luci/lucicfg/linux-mips64le
181
+ git_revision:b1dbee0e43053ad42566a64d37b0eb1502a20302
182
+ nqyKvhL5PorLQbKqWY7WElNHDvtkV3bvz3h0figLepwC
183
+
184
+ infra/tools/luci/lucicfg/linux-mipsle
185
+ git_revision:b1dbee0e43053ad42566a64d37b0eb1502a20302
186
+ W4GuKT7dAoMQwG4vnqT8e1VsV8VIMz3NzQmgtFOeaDUC
187
+
188
+ infra/tools/luci/lucicfg/linux-ppc64
189
+ git_revision:b1dbee0e43053ad42566a64d37b0eb1502a20302
190
+ ydOFRX3yAkcDJHbqY8d-KZBpKHbJE3bWeVO3UET6_5kC
191
+
192
+ infra/tools/luci/lucicfg/linux-ppc64le
193
+ git_revision:b1dbee0e43053ad42566a64d37b0eb1502a20302
194
+ M8XG-GiXv_YVmR05pcc3IobNS_QKZY8YrhG5hPSwmb4C
195
+
196
+ infra/tools/luci/lucicfg/linux-s390x
197
+ git_revision:b1dbee0e43053ad42566a64d37b0eb1502a20302
198
+ uO0EFzlu-ytLrVwSi9U-8TF3TuP3aqFqpci5j-xTsKEC
199
+
200
+ infra/tools/luci/lucicfg/mac-amd64
201
+ git_revision:b1dbee0e43053ad42566a64d37b0eb1502a20302
202
+ 88C0eZY7h_pTim4U_BHokhp5T-Ajg79uqmCswmHcOXkC
203
+
204
+ infra/tools/luci/lucicfg/windows-386
205
+ git_revision:b1dbee0e43053ad42566a64d37b0eb1502a20302
206
+ GtDSK5R4yqlRNbpgPW6pX41mU8ScrZBKc0_HnkMwDr0C
207
+
208
+ infra/tools/luci/lucicfg/windows-amd64
209
+ git_revision:b1dbee0e43053ad42566a64d37b0eb1502a20302
210
+ MqpuIAeFAetEW11Ux-OBSFdcsH9mINm6nonJKqB-S2IC
211
+
212
+ infra/tools/luci/vpython/linux-386
213
+ git_revision:0bff6ebf817352838b0e6f65fd6460b38c505c9c
214
+ hDxqETS31-yTo7GwC2HqaApd0iJet2SY4OiJEsUyNCMC
215
+
216
+ infra/tools/luci/vpython/linux-amd64
217
+ git_revision:0bff6ebf817352838b0e6f65fd6460b38c505c9c
218
+ 7qzFcNYLB1D_BGFy6fpzh0P-DsZYBUVCP9ZtAB0uxnsC
219
+
220
+ infra/tools/luci/vpython/linux-arm64
221
+ git_revision:0bff6ebf817352838b0e6f65fd6460b38c505c9c
222
+ zq5Hwaq-RokAF7bce8Cmlx8YOtewy3JMwXdLHWk_rjcC
223
+
224
+ infra/tools/luci/vpython/linux-armv6l
225
+ git_revision:0bff6ebf817352838b0e6f65fd6460b38c505c9c
226
+ yYgRbOGEPXfub9AFWdsilgQbCgwRLtGUcUpzpJkCFngC
227
+
228
+ infra/tools/luci/vpython/linux-mips64
229
+ git_revision:0bff6ebf817352838b0e6f65fd6460b38c505c9c
230
+ N4HgXrUQw8IZFlexxaKE2a-jH8zIwPP9sHeqoVFEIo4C
231
+
232
+ infra/tools/luci/vpython/linux-mips64le
233
+ git_revision:0bff6ebf817352838b0e6f65fd6460b38c505c9c
234
+ 0aQ-DKIWmmmrxyd8MmzDzA9x3XM-o8eI0C1wXdBIumgC
235
+
236
+ infra/tools/luci/vpython/linux-mipsle
237
+ git_revision:0bff6ebf817352838b0e6f65fd6460b38c505c9c
238
+ n6ZukkiBoX5BKNMKKoCCiGtW09uX_a0Ij01zTptnBycC
239
+
240
+ infra/tools/luci/vpython/linux-ppc64
241
+ git_revision:0bff6ebf817352838b0e6f65fd6460b38c505c9c
242
+ fVxtIcvV7DW4xZWiRuQgCaTxrDUKyJxslwXR8KEVcVoC
243
+
244
+ infra/tools/luci/vpython/linux-ppc64le
245
+ git_revision:0bff6ebf817352838b0e6f65fd6460b38c505c9c
246
+ yibQZZJ880xjI2yLgnWlFqHx-LyeF2vMHxtoNYNnKnoC
247
+
248
+ infra/tools/luci/vpython/linux-s390x
249
+ git_revision:0bff6ebf817352838b0e6f65fd6460b38c505c9c
250
+ aFYWGtD5op5kPmLd3762oTd47lK4mNipD3HH2CBp248C
251
+
252
+ infra/tools/luci/vpython/mac-amd64
253
+ git_revision:0bff6ebf817352838b0e6f65fd6460b38c505c9c
254
+ PuCG_gwsNxvgGPY3GCHh6r_YN4cFW41S_r8gDWwDWDQC
255
+
256
+ infra/tools/luci/vpython/windows-386
257
+ git_revision:0bff6ebf817352838b0e6f65fd6460b38c505c9c
258
+ BnTSl9Kg9mym5puBG0rsbnMhnrOZASlnjEdzR4u01JgC
259
+
260
+ infra/tools/luci/vpython/windows-amd64
261
+ git_revision:0bff6ebf817352838b0e6f65fd6460b38c505c9c
262
+ Iyp60AaJ1mWp8wKg_EYpvvre6pdrLUhGSfhzI2_ILQ4C
263
+
264
+ infra/tools/mac_toolchain/mac-amd64
265
+ git_revision:edd5644be66d37cdf82978efb0e5d6504d0d552f
266
+ WvNxqV3SDEsYZovJkXsk17k5B70pSV7QAe6XjFEupb0C
267
+
268
+ infra/tools/prpc/linux-386
269
+ git_revision:edd5644be66d37cdf82978efb0e5d6504d0d552f
270
+ tGUz4jW0Ade3imPLEFKRw_P4bjAS7bv5m2PlzVQ6jz8C
271
+
272
+ infra/tools/prpc/linux-amd64
273
+ git_revision:edd5644be66d37cdf82978efb0e5d6504d0d552f
274
+ pExQS2vSbmaeBkZkdOavcI4eVXfEvox789FgQBPHsxIC
275
+
276
+ infra/tools/prpc/linux-arm64
277
+ git_revision:edd5644be66d37cdf82978efb0e5d6504d0d552f
278
+ saOhcc1VfDbTUCoKjK8pySKKM7Iey3PBMnX-oo4Uu6UC
279
+
280
+ infra/tools/prpc/linux-armv6l
281
+ git_revision:edd5644be66d37cdf82978efb0e5d6504d0d552f
282
+ mgp4kRNoetXPvq-H537SBuI2-UbuX7DTEZoYvRhKmCsC
283
+
284
+ infra/tools/prpc/linux-mips64
285
+ git_revision:edd5644be66d37cdf82978efb0e5d6504d0d552f
286
+ 7ZJBF9a0cErmn8KtWNWr_sZzirXlrs_uDqy0pBG3eYQC
287
+
288
+ infra/tools/prpc/linux-mips64le
289
+ git_revision:edd5644be66d37cdf82978efb0e5d6504d0d552f
290
+ RSTGfX_zpPdAS-yB2dkffiB-rM6278zuDanNFXaOEscC
291
+
292
+ infra/tools/prpc/linux-mipsle
293
+ git_revision:edd5644be66d37cdf82978efb0e5d6504d0d552f
294
+ AqDFThd6i2ZradBxxPgj8iSl1ZIHzFw6mClJ2fTSX9oC
295
+
296
+ infra/tools/prpc/linux-ppc64
297
+ git_revision:edd5644be66d37cdf82978efb0e5d6504d0d552f
298
+ g5rarKCGPYw-711M2yaB1Jo4sRa9_YB26IKQoxtRE60C
299
+
300
+ infra/tools/prpc/linux-ppc64le
301
+ git_revision:edd5644be66d37cdf82978efb0e5d6504d0d552f
302
+ pqNZUNS0AOD30-ODWPT8H1ZM82pmjV5rZbvbhFnHXtsC
303
+
304
+ infra/tools/prpc/linux-s390x
305
+ git_revision:edd5644be66d37cdf82978efb0e5d6504d0d552f
306
+ WKRLbWviTHeAaXMNXy4jNbX9mxMwOpX0I5ZHLOClD-QC
307
+
308
+ infra/tools/prpc/mac-amd64
309
+ git_revision:edd5644be66d37cdf82978efb0e5d6504d0d552f
310
+ C1jj72eXIs6P6BqI5JKCB7aWunWNwM8-0HoioGEbAc8C
311
+
312
+ infra/tools/prpc/windows-386
313
+ git_revision:edd5644be66d37cdf82978efb0e5d6504d0d552f
314
+ jQzFRINB55LRit23_YVllNePCZscUR9iebEKbvIKB2UC
315
+
316
+ infra/tools/prpc/windows-amd64
317
+ git_revision:edd5644be66d37cdf82978efb0e5d6504d0d552f
318
+ 97GIuWDvHohWyH9KfvpdGiWqPa0MtD__ITW7-lXiNrEC
@@ -9,7 +9,7 @@ clang-format binaries are pulled down from Google Cloud Storage whenever you
9
9
  sync Chrome, to platform-specific locations. This script knows how to locate
10
10
  those tools, assuming the script is invoked from inside a Chromium checkout."""
11
11
 
12
- import gclient_utils
12
+ import gclient_paths
13
13
  import os
14
14
  import subprocess
15
15
  import sys
@@ -25,14 +25,14 @@ class NotFoundError(Exception):
25
25
 
26
26
  def FindClangFormatToolInChromiumTree():
27
27
  """Return a path to the clang-format executable, or die trying."""
28
- bin_path = gclient_utils.GetBuildtoolsPlatformBinaryPath()
28
+ bin_path = gclient_paths.GetBuildtoolsPlatformBinaryPath()
29
29
  if not bin_path:
30
30
  raise NotFoundError(
31
31
  'Could not find checkout in any parent of the current path.\n'
32
32
  'Set CHROMIUM_BUILDTOOLS_PATH to use outside of a chromium checkout.')
33
33
 
34
34
  tool_path = os.path.join(bin_path,
35
- 'clang-format' + gclient_utils.GetExeSuffix())
35
+ 'clang-format' + gclient_paths.GetExeSuffix())
36
36
  if not os.path.exists(tool_path):
37
37
  raise NotFoundError('File does not exist: %s' % tool_path)
38
38
  return tool_path
@@ -40,7 +40,7 @@ def FindClangFormatToolInChromiumTree():
40
40
 
41
41
  def FindClangFormatScriptInChromiumTree(script_name):
42
42
  """Return a path to a clang-format helper script, or die trying."""
43
- tools_path = gclient_utils.GetBuildtoolsPath()
43
+ tools_path = gclient_paths.GetBuildtoolsPath()
44
44
  if not tools_path:
45
45
  raise NotFoundError(
46
46
  'Could not find checkout in any parent of the current path.\n',
@@ -53,19 +53,12 @@ import sre_compile
53
53
  import string
54
54
  import sys
55
55
  import unicodedata
56
- import sysconfig
57
-
58
- try:
59
- xrange # Python 2
60
- except NameError:
61
- xrange = range # Python 3
62
56
 
63
57
 
64
58
  _USAGE = """
65
59
  Syntax: cpplint.py [--verbose=#] [--output=vs7] [--filter=-x,+y,...]
66
60
  [--counting=total|toplevel|detailed] [--root=subdir]
67
- [--linelength=digits] [--headers=x,y,...]
68
- [--quiet]
61
+ [--linelength=digits]
69
62
  <file> [file] ...
70
63
 
71
64
  The style guidelines this tries to follow are those in
@@ -92,9 +85,6 @@ Syntax: cpplint.py [--verbose=#] [--output=vs7] [--filter=-x,+y,...]
92
85
  verbose=#
93
86
  Specify a number 0-5 to restrict errors to certain verbosity levels.
94
87
 
95
- quiet
96
- Don't print anything if no errors are found.
97
-
98
88
  filter=-x,+y,...
99
89
  Specify a comma-separated list of category-filters to apply: only
100
90
  error messages whose category names pass the filters will be printed.
@@ -126,13 +116,12 @@ Syntax: cpplint.py [--verbose=#] [--output=vs7] [--filter=-x,+y,...]
126
116
  ignored.
127
117
 
128
118
  Examples:
129
- Assuming that top/src/.git exists (and cwd=top/src), the header guard
130
- CPP variables for top/src/chrome/browser/ui/browser.h are:
119
+ Assuming that src/.git exists, the header guard CPP variables for
120
+ src/chrome/browser/ui/browser.h are:
131
121
 
132
122
  No flag => CHROME_BROWSER_UI_BROWSER_H_
133
123
  --root=chrome => BROWSER_UI_BROWSER_H_
134
124
  --root=chrome/browser => UI_BROWSER_H_
135
- --root=.. => SRC_CHROME_BROWSER_UI_BROWSER_H_
136
125
 
137
126
  linelength=digits
138
127
  This is the allowed line length for the project. The default value is
@@ -147,14 +136,6 @@ Syntax: cpplint.py [--verbose=#] [--output=vs7] [--filter=-x,+y,...]
147
136
  Examples:
148
137
  --extensions=hpp,cpp
149
138
 
150
- headers=x,y,...
151
- The header extensions that cpplint will treat as .h in checks. Values are
152
- automatically added to --extensions list.
153
-
154
- Examples:
155
- --headers=hpp,hxx
156
- --headers=hpp
157
-
158
139
  cpplint.py supports per-directory configurations specified in CPPLINT.cfg
159
140
  files. CPPLINT.cfg file can contain a number of key=value pairs.
160
141
  Currently the following options are supported:
@@ -163,8 +144,6 @@ Syntax: cpplint.py [--verbose=#] [--output=vs7] [--filter=-x,+y,...]
163
144
  filter=+filter1,-filter2,...
164
145
  exclude_files=regex
165
146
  linelength=80
166
- root=subdir
167
- headers=x,y,...
168
147
 
169
148
  "set noparent" option prevents cpplint from traversing directory tree
170
149
  upwards looking for more .cfg files in parent directories. This option
@@ -180,12 +159,6 @@ Syntax: cpplint.py [--verbose=#] [--output=vs7] [--filter=-x,+y,...]
180
159
 
181
160
  "linelength" allows to specify the allowed line length for the project.
182
161
 
183
- The "root" option is similar in function to the --root flag (see example
184
- above). Paths are relative to the directory of the CPPLINT.cfg.
185
-
186
- The "headers" option is similar in function to the --headers flag
187
- (see example above).
188
-
189
162
  CPPLINT.cfg has an effect on files in the same directory and all
190
163
  sub-directories, unless overridden by a nested configuration file.
191
164
 
@@ -552,7 +525,10 @@ _error_suppressions = {}
552
525
  # The root directory used for deriving header guard CPP variable.
553
526
  # This is set by --root flag.
554
527
  _root = None
555
- _root_debug = False
528
+
529
+ # The project root directory. Used for deriving header guard CPP variable.
530
+ # This is set by --project_root flag. Must be an absolute path.
531
+ _project_root = None
556
532
 
557
533
  # The allowed line length of files.
558
534
  # This is set by --linelength flag.
@@ -562,25 +538,10 @@ _line_length = 80
562
538
  # This is set by --extensions flag.
563
539
  _valid_extensions = set(['cc', 'h', 'cpp', 'cu', 'cuh'])
564
540
 
565
- # Treat all headers starting with 'h' equally: .h, .hpp, .hxx etc.
566
- # This is set by --headers flag.
567
- _hpp_headers = set(['h'])
568
-
569
541
  # {str, bool}: a map from error categories to booleans which indicate if the
570
542
  # category should be suppressed for every line.
571
543
  _global_error_suppressions = {}
572
544
 
573
- def ProcessHppHeadersOption(val):
574
- global _hpp_headers
575
- try:
576
- _hpp_headers = set(val.split(','))
577
- # Automatically append to extensions list so it does not have to be set 2 times
578
- _valid_extensions.update(_hpp_headers)
579
- except ValueError:
580
- PrintUsage('Header extensions must be comma separated list.')
581
-
582
- def IsHeaderExtension(file_extension):
583
- return file_extension in _hpp_headers
584
545
 
585
546
  def ParseNolintSuppressions(filename, raw_line, linenum, error):
586
547
  """Updates the global list of line error-suppressions.
@@ -873,7 +834,6 @@ class _CppLintState(object):
873
834
  self._filters_backup = self.filters[:]
874
835
  self.counting = 'total' # In what way are we counting errors?
875
836
  self.errors_by_category = {} # string to int dict storing error counts
876
- self.quiet = False # Suppress non-error messagess?
877
837
 
878
838
  # output format:
879
839
  # "emacs" - format that emacs can parse (default)
@@ -884,12 +844,6 @@ class _CppLintState(object):
884
844
  """Sets the output format for errors."""
885
845
  self.output_format = output_format
886
846
 
887
- def SetQuiet(self, quiet):
888
- """Sets the module's quiet settings, and returns the previous setting."""
889
- last_quiet = self.quiet
890
- self.quiet = quiet
891
- return last_quiet
892
-
893
847
  def SetVerboseLevel(self, level):
894
848
  """Sets the module's verbosity, and returns the previous setting."""
895
849
  last_verbose_level = self.verbose_level
@@ -957,7 +911,7 @@ class _CppLintState(object):
957
911
  for category, count in self.errors_by_category.iteritems():
958
912
  sys.stderr.write('Category \'%s\' errors found: %d\n' %
959
913
  (category, count))
960
- sys.stdout.write('Total errors found: %d\n' % self.error_count)
914
+ sys.stderr.write('Total errors found: %d\n' % self.error_count)
961
915
 
962
916
  _cpplint_state = _CppLintState()
963
917
 
@@ -971,14 +925,6 @@ def _SetOutputFormat(output_format):
971
925
  """Sets the module's output format."""
972
926
  _cpplint_state.SetOutputFormat(output_format)
973
927
 
974
- def _Quiet():
975
- """Return's the module's quiet setting."""
976
- return _cpplint_state.quiet
977
-
978
- def _SetQuiet(quiet):
979
- """Set the module's quiet status, and return previous setting."""
980
- return _cpplint_state.SetQuiet(quiet)
981
-
982
928
 
983
929
  def _VerboseLevel():
984
930
  """Returns the module's verbosity setting."""
@@ -1125,6 +1071,10 @@ class FileInfo(object):
1125
1071
  if os.path.exists(fullname):
1126
1072
  project_dir = os.path.dirname(fullname)
1127
1073
 
1074
+ if _project_root:
1075
+ prefix = os.path.commonprefix([_project_root, project_dir])
1076
+ return fullname[len(prefix) + 1:]
1077
+
1128
1078
  if os.path.exists(os.path.join(project_dir, ".svn")):
1129
1079
  # If there's a .svn file in the current directory, we recursively look
1130
1080
  # up the directory tree for the top of the SVN checkout
@@ -1139,13 +1089,12 @@ class FileInfo(object):
1139
1089
 
1140
1090
  # Not SVN <= 1.6? Try to find a git, hg, or svn top level directory by
1141
1091
  # searching up from the current path.
1142
- root_dir = current_dir = os.path.dirname(fullname)
1143
- while current_dir != os.path.dirname(current_dir):
1144
- if (os.path.exists(os.path.join(current_dir, ".git")) or
1145
- os.path.exists(os.path.join(current_dir, ".hg")) or
1146
- os.path.exists(os.path.join(current_dir, ".svn"))):
1147
- root_dir = current_dir
1148
- current_dir = os.path.dirname(current_dir)
1092
+ root_dir = os.path.dirname(fullname)
1093
+ while (root_dir != os.path.dirname(root_dir) and
1094
+ not os.path.exists(os.path.join(root_dir, ".git")) and
1095
+ not os.path.exists(os.path.join(root_dir, ".hg")) and
1096
+ not os.path.exists(os.path.join(root_dir, ".svn"))):
1097
+ root_dir = os.path.dirname(root_dir)
1149
1098
 
1150
1099
  if (os.path.exists(os.path.join(root_dir, ".git")) or
1151
1100
  os.path.exists(os.path.join(root_dir, ".hg")) or
@@ -1240,8 +1189,8 @@ def Error(filename, linenum, category, confidence, message):
1240
1189
  if _ShouldPrintError(category, confidence, linenum):
1241
1190
  _cpplint_state.IncrementErrorCount(category)
1242
1191
  if _cpplint_state.output_format == 'vs7':
1243
- sys.stderr.write('%s(%s): error cpplint: [%s] %s [%d]\n' % (
1244
- filename, linenum, category, message, confidence))
1192
+ sys.stderr.write('%s(%s): %s [%s] [%d]\n' % (
1193
+ filename, linenum, message, category, confidence))
1245
1194
  elif _cpplint_state.output_format == 'eclipse':
1246
1195
  sys.stderr.write('%s:%s: warning: %s [%s] [%d]\n' % (
1247
1196
  filename, linenum, message, category, confidence))
@@ -1783,30 +1732,6 @@ def GetIndentLevel(line):
1783
1732
  else:
1784
1733
  return 0
1785
1734
 
1786
- def PathSplitToList(path):
1787
- """Returns the path split into a list by the separator.
1788
-
1789
- Args:
1790
- path: An absolute or relative path (e.g. '/a/b/c/' or '../a')
1791
-
1792
- Returns:
1793
- A list of path components (e.g. ['a', 'b', 'c]).
1794
- """
1795
- lst = []
1796
- while True:
1797
- (head, tail) = os.path.split(path)
1798
- if head == path: # absolute paths end
1799
- lst.append(head)
1800
- break
1801
- if tail == path: # relative paths end
1802
- lst.append(tail)
1803
- break
1804
-
1805
- path = head
1806
- lst.append(tail)
1807
-
1808
- lst.reverse()
1809
- return lst
1810
1735
 
1811
1736
  def GetHeaderGuardCPPVariable(filename):
1812
1737
  """Returns the CPP variable that should be used as a header guard.
@@ -1829,58 +1754,8 @@ def GetHeaderGuardCPPVariable(filename):
1829
1754
 
1830
1755
  fileinfo = FileInfo(filename)
1831
1756
  file_path_from_root = fileinfo.RepositoryName()
1832
-
1833
- def FixupPathFromRoot():
1834
- if _root_debug:
1835
- sys.stderr.write("\n_root fixup, _root = '%s', repository name = '%s'\n"
1836
- %(_root, fileinfo.RepositoryName()))
1837
-
1838
- # Process the file path with the --root flag if it was set.
1839
- if not _root:
1840
- if _root_debug:
1841
- sys.stderr.write("_root unspecified\n")
1842
- return file_path_from_root
1843
-
1844
- def StripListPrefix(lst, prefix):
1845
- # f(['x', 'y'], ['w, z']) -> None (not a valid prefix)
1846
- if lst[:len(prefix)] != prefix:
1847
- return None
1848
- # f(['a, 'b', 'c', 'd'], ['a', 'b']) -> ['c', 'd']
1849
- return lst[(len(prefix)):]
1850
-
1851
- # root behavior:
1852
- # --root=subdir , lstrips subdir from the header guard
1853
- maybe_path = StripListPrefix(PathSplitToList(file_path_from_root),
1854
- PathSplitToList(_root))
1855
-
1856
- if _root_debug:
1857
- sys.stderr.write(("_root lstrip (maybe_path=%s, file_path_from_root=%s," +
1858
- " _root=%s)\n") %(maybe_path, file_path_from_root, _root))
1859
-
1860
- if maybe_path:
1861
- return os.path.join(*maybe_path)
1862
-
1863
- # --root=.. , will prepend the outer directory to the header guard
1864
- full_path = fileinfo.FullName()
1865
- root_abspath = os.path.abspath(_root)
1866
-
1867
- maybe_path = StripListPrefix(PathSplitToList(full_path),
1868
- PathSplitToList(root_abspath))
1869
-
1870
- if _root_debug:
1871
- sys.stderr.write(("_root prepend (maybe_path=%s, full_path=%s, " +
1872
- "root_abspath=%s)\n") %(maybe_path, full_path, root_abspath))
1873
-
1874
- if maybe_path:
1875
- return os.path.join(*maybe_path)
1876
-
1877
- if _root_debug:
1878
- sys.stderr.write("_root ignore, returning %s\n" %(file_path_from_root))
1879
-
1880
- # --root=FAKE_DIR is ignored
1881
- return file_path_from_root
1882
-
1883
- file_path_from_root = FixupPathFromRoot()
1757
+ if _root:
1758
+ file_path_from_root = re.sub('^' + _root + os.sep, '', file_path_from_root)
1884
1759
  return re.sub(r'[^a-zA-Z0-9]', '_', file_path_from_root).upper() + '_'
1885
1760
 
1886
1761
 
@@ -2655,7 +2530,7 @@ class NestingState(object):
2655
2530
  # };
2656
2531
  class_decl_match = Match(
2657
2532
  r'^(\s*(?:template\s*<[\w\s<>,:]*>\s*)?'
2658
- r'(class|struct)\s+(?:[A-Z_]+\s+)*(\w+(?:::\w+)*))'
2533
+ r'(class|struct)\s+(?:[A-Z0-9_]+\s+)*(\w+(?:::\w+)*))'
2659
2534
  r'(.*)$', line)
2660
2535
  if (class_decl_match and
2661
2536
  (not self.stack or self.stack[-1].open_parentheses == 0)):
@@ -3080,7 +2955,7 @@ def CheckForFunctionLengths(filename, clean_lines, linenum,
3080
2955
  # ignore it, unless it's TEST or TEST_F.
3081
2956
  function_name = match_result.group(1).split()[-1]
3082
2957
  if function_name == 'TEST' or function_name == 'TEST_F' or (
3083
- not Match(r'[A-Z_]+$', function_name)):
2958
+ not Match(r'[A-Z_0-9]+$', function_name)):
3084
2959
  starting_func = True
3085
2960
 
3086
2961
  if starting_func:
@@ -3989,14 +3864,6 @@ def CheckTrailingSemicolon(filename, clean_lines, linenum, error):
3989
3864
  # outputting warnings for the matching closing brace, if there are
3990
3865
  # nested blocks with trailing semicolons, we will get the error
3991
3866
  # messages in reversed order.
3992
-
3993
- # We need to check the line forward for NOLINT
3994
- raw_lines = clean_lines.raw_lines
3995
- ParseNolintSuppressions(filename, raw_lines[endlinenum-1], endlinenum-1,
3996
- error)
3997
- ParseNolintSuppressions(filename, raw_lines[endlinenum], endlinenum,
3998
- error)
3999
-
4000
3867
  error(filename, endlinenum, 'readability/braces', 4,
4001
3868
  "You don't need a ; after a }")
4002
3869
 
@@ -4294,16 +4161,6 @@ def GetLineWidth(line):
4294
4161
  if unicodedata.east_asian_width(uc) in ('W', 'F'):
4295
4162
  width += 2
4296
4163
  elif not unicodedata.combining(uc):
4297
- # Issue 337
4298
- # https://mail.python.org/pipermail/python-list/2012-August/628809.html
4299
- if (sys.version_info.major, sys.version_info.minor) <= (3, 2):
4300
- # https://github.com/python/cpython/blob/2.7/Include/unicodeobject.h#L81
4301
- is_wide_build = sysconfig.get_config_var("Py_UNICODE_SIZE") >= 4
4302
- # https://github.com/python/cpython/blob/2.7/Objects/unicodeobject.c#L564
4303
- is_low_surrogate = 0xDC00 <= ord(uc) <= 0xDFFF
4304
- if not is_wide_build and is_low_surrogate:
4305
- width -= 1
4306
-
4307
4164
  width += 1
4308
4165
  return width
4309
4166
  else:
@@ -4377,7 +4234,7 @@ def CheckStyle(filename, clean_lines, linenum, file_extension, nesting_state,
4377
4234
 
4378
4235
  # Check if the line is a header guard.
4379
4236
  is_header_guard = False
4380
- if IsHeaderExtension(file_extension):
4237
+ if file_extension == 'h':
4381
4238
  cppvar = GetHeaderGuardCPPVariable(filename)
4382
4239
  if (line.startswith('#ifndef %s' % cppvar) or
4383
4240
  line.startswith('#define %s' % cppvar) or
@@ -4726,7 +4583,7 @@ def CheckLanguage(filename, clean_lines, linenum, file_extension,
4726
4583
  CheckGlobalStatic(filename, clean_lines, linenum, error)
4727
4584
  CheckPrintf(filename, clean_lines, linenum, error)
4728
4585
 
4729
- if IsHeaderExtension(file_extension):
4586
+ if file_extension == 'h':
4730
4587
  # TODO(unknown): check that 1-arg constructors are explicit.
4731
4588
  # How to tell it's a constructor?
4732
4589
  # (handled in CheckForNonStandardConstructs for now)
@@ -4808,6 +4665,9 @@ def CheckLanguage(filename, clean_lines, linenum, file_extension,
4808
4665
 
4809
4666
  if Search(r'sizeof\(.+\)', tok): continue
4810
4667
  if Search(r'arraysize\(\w+\)', tok): continue
4668
+ if Search(r'base::size\(.+\)', tok): continue
4669
+ if Search(r'std::size\(.+\)', tok): continue
4670
+ if Search(r'std::extent<.+>', tok): continue
4811
4671
 
4812
4672
  tok = tok.lstrip('(')
4813
4673
  tok = tok.rstrip(')')
@@ -4833,12 +4693,12 @@ def CheckLanguage(filename, clean_lines, linenum, file_extension,
4833
4693
  # Check for use of unnamed namespaces in header files. Registration
4834
4694
  # macros are typically OK, so we allow use of "namespace {" on lines
4835
4695
  # that end with backslashes.
4836
- if (IsHeaderExtension(file_extension)
4696
+ if (file_extension == 'h'
4837
4697
  and Search(r'\bnamespace\s*{', line)
4838
4698
  and line[-1] != '\\'):
4839
4699
  error(filename, linenum, 'build/namespaces', 4,
4840
4700
  'Do not use unnamed namespaces in header files. See '
4841
- 'https://google-styleguide.googlecode.com/svn/trunk/cppguide.xml#Namespaces'
4701
+ 'https://google.github.io/styleguide/cppguide.html#Namespaces'
4842
4702
  ' for more information.')
4843
4703
 
4844
4704
 
@@ -5923,7 +5783,7 @@ def ProcessFileData(filename, file_extension, lines, error,
5923
5783
  RemoveMultiLineComments(filename, lines, error)
5924
5784
  clean_lines = CleansedLines(lines)
5925
5785
 
5926
- if IsHeaderExtension(file_extension):
5786
+ if file_extension == 'h':
5927
5787
  CheckForHeaderGuard(filename, clean_lines, error)
5928
5788
 
5929
5789
  for line in xrange(clean_lines.NumLines()):
@@ -5992,9 +5852,6 @@ def ProcessConfigOverrides(filename):
5992
5852
  if base_name:
5993
5853
  pattern = re.compile(val)
5994
5854
  if pattern.match(base_name):
5995
- if _cpplint_state.quiet:
5996
- # Suppress "Ignoring file" warning when using --quiet.
5997
- return False
5998
5855
  sys.stderr.write('Ignoring "%s": file excluded by "%s". '
5999
5856
  'File path component "%s" matches '
6000
5857
  'pattern "%s"\n' %
@@ -6006,12 +5863,6 @@ def ProcessConfigOverrides(filename):
6006
5863
  _line_length = int(val)
6007
5864
  except ValueError:
6008
5865
  sys.stderr.write('Line length must be numeric.')
6009
- elif name == 'root':
6010
- global _root
6011
- # root directories are specified relative to CPPLINT.cfg dir.
6012
- _root = os.path.join(os.path.dirname(cfg_file), val)
6013
- elif name == 'headers':
6014
- ProcessHppHeadersOption(val)
6015
5866
  else:
6016
5867
  sys.stderr.write(
6017
5868
  'Invalid configuration option (%s) in file %s\n' %
@@ -6046,7 +5897,6 @@ def ProcessFile(filename, vlevel, extra_check_functions=[]):
6046
5897
 
6047
5898
  _SetVerboseLevel(vlevel)
6048
5899
  _BackupFilters()
6049
- old_errors = _cpplint_state.error_count
6050
5900
 
6051
5901
  if not ProcessConfigOverrides(filename):
6052
5902
  _RestoreFilters()
@@ -6115,10 +5965,7 @@ def ProcessFile(filename, vlevel, extra_check_functions=[]):
6115
5965
  Error(filename, linenum, 'whitespace/newline', 1,
6116
5966
  'Unexpected \\r (^M) found; better to use only \\n')
6117
5967
 
6118
- # Suppress printing anything if --quiet was passed unless the error
6119
- # count has increased after processing this file.
6120
- if not _cpplint_state.quiet or old_errors != _cpplint_state.error_count:
6121
- sys.stdout.write('Done processing %s\n' % filename)
5968
+ sys.stderr.write('Done processing %s\n' % filename)
6122
5969
  _RestoreFilters()
6123
5970
 
6124
5971
 
@@ -6157,20 +6004,20 @@ def ParseArguments(args):
6157
6004
  """
6158
6005
  try:
6159
6006
  (opts, filenames) = getopt.getopt(args, '', ['help', 'output=', 'verbose=',
6007
+ 'headers=', # We understand but ignore headers.
6160
6008
  'counting=',
6161
6009
  'filter=',
6162
6010
  'root=',
6163
6011
  'linelength=',
6164
6012
  'extensions=',
6165
- 'headers=',
6166
- 'quiet'])
6167
- except getopt.GetoptError:
6168
- PrintUsage('Invalid arguments.')
6013
+ 'project_root=',
6014
+ 'repository='])
6015
+ except getopt.GetoptError as e:
6016
+ PrintUsage('Invalid arguments: {}'.format(e))
6169
6017
 
6170
6018
  verbosity = _VerboseLevel()
6171
6019
  output_format = _OutputFormat()
6172
6020
  filters = ''
6173
- quiet = _Quiet()
6174
6021
  counting_style = ''
6175
6022
 
6176
6023
  for (opt, val) in opts:
@@ -6180,8 +6027,6 @@ def ParseArguments(args):
6180
6027
  if val not in ('emacs', 'vs7', 'eclipse'):
6181
6028
  PrintUsage('The only allowed output formats are emacs, vs7 and eclipse.')
6182
6029
  output_format = val
6183
- elif opt == '--quiet':
6184
- quiet = True
6185
6030
  elif opt == '--verbose':
6186
6031
  verbosity = int(val)
6187
6032
  elif opt == '--filter':
@@ -6195,6 +6040,11 @@ def ParseArguments(args):
6195
6040
  elif opt == '--root':
6196
6041
  global _root
6197
6042
  _root = val
6043
+ elif opt == '--project_root' or opt == "--repository":
6044
+ global _project_root
6045
+ _project_root = val
6046
+ if not os.path.isabs(_project_root):
6047
+ PrintUsage('Project root must be an absolute path.')
6198
6048
  elif opt == '--linelength':
6199
6049
  global _line_length
6200
6050
  try:
@@ -6207,14 +6057,11 @@ def ParseArguments(args):
6207
6057
  _valid_extensions = set(val.split(','))
6208
6058
  except ValueError:
6209
6059
  PrintUsage('Extensions must be comma separated list.')
6210
- elif opt == '--headers':
6211
- ProcessHppHeadersOption(val)
6212
6060
 
6213
6061
  if not filenames:
6214
6062
  PrintUsage('No files were specified.')
6215
6063
 
6216
6064
  _SetOutputFormat(output_format)
6217
- _SetQuiet(quiet)
6218
6065
  _SetVerboseLevel(verbosity)
6219
6066
  _SetFilters(filters)
6220
6067
  _SetCountingStyle(counting_style)
@@ -6235,9 +6082,7 @@ def main():
6235
6082
  _cpplint_state.ResetErrorCounts()
6236
6083
  for filename in filenames:
6237
6084
  ProcessFile(filename, _cpplint_state.verbose_level)
6238
- # If --quiet is passed, suppress printing error count unless there are errors.
6239
- if not _cpplint_state.quiet or _cpplint_state.error_count > 0:
6240
- _cpplint_state.PrintErrorCounts()
6085
+ _cpplint_state.PrintErrorCounts()
6241
6086
 
6242
6087
  sys.exit(_cpplint_state.error_count > 0)
6243
6088