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

Unified Diff: tools/git/move_source_file.py

Issue 761903003: Update from https://crrev.com/306655 (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 | « tools/clang/scripts/run_tool.py ('k') | tools/idl_parser/idl_parser.py » ('j') | 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..2de0b5b1f51b5744c004ebfdf14ae6b69d97c55c 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):
« no previous file with comments | « tools/clang/scripts/run_tool.py ('k') | tools/idl_parser/idl_parser.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698