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

Unified Diff: tools/git/move_source_file.py

Issue 772563003: Move many of v8_inspector dependencies out of core/ (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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 | « sky/engine/web/WebLocalFrameImpl.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/git/move_source_file.py
diff --git a/tools/git/move_source_file.py b/tools/git/move_source_file.py
index a60c7e13e1e4dbd4b738a36694175cb368f1e46c..c7fc4672d850d1019a2f46afd65cf4aae7fccc86 100755
--- a/tools/git/move_source_file.py
+++ b/tools/git/move_source_file.py
@@ -33,7 +33,7 @@ if __name__ == '__main__':
sort_headers = __import__('sort-headers')
-HANDLED_EXTENSIONS = ['.cc', '.mm', '.h', '.hh']
+HANDLED_EXTENSIONS = ['.cc', '.mm', '.h', '.hh', '.cpp']
def IsHandledFile(path):
@@ -84,7 +84,7 @@ def UpdatePostMove(from_path, to_path):
files_with_changed_includes = mffr.MultiFileFindReplace(
r'(#(include|import)\s*["<])%s([>"])' % re.escape(from_path),
r'\1%s\3' % to_path,
- ['*.cc', '*.h', '*.m', '*.mm'])
+ ['*.cc', '*.h', '*.m', '*.mm', '*.cpp'])
# Reorder headers in files that changed.
for changed_file in files_with_changed_includes:
@@ -100,7 +100,7 @@ def UpdatePostMove(from_path, to_path):
mffr.MultiFileFindReplace(
r'(//.*)%s' % re.escape(from_path),
r'\1%s' % to_path,
- ['*.cc', '*.h', '*.m', '*.mm'])
+ ['*.cc', '*.h', '*.m', '*.mm', '*.cpp'])
# Update references in .gyp(i) files.
def PathMinusFirstComponent(path):
@@ -113,7 +113,7 @@ def UpdatePostMove(from_path, to_path):
mffr.MultiFileFindReplace(
r'([\'"])%s([\'"])' % re.escape(PathMinusFirstComponent(from_path)),
r'\1%s\2' % PathMinusFirstComponent(to_path),
- ['*.gyp*'])
+ ['*.gyp*', '*.gni', '*.gn'])
def MakeIncludeGuardName(path_from_root):
« no previous file with comments | « sky/engine/web/WebLocalFrameImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698