From a0e3ae4ce01d07e575d1ab8966f78c835039ef09 Mon Sep 17 00:00:00 2001 From: Dean Michael Berris Date: Wed, 2 May 2018 00:43:17 +0000 Subject: [PATCH] [XRay][tools] Rename llvm-xray filenames from .cc -> .cpp (NFC) Summary: This brings the filenames in accordance to the style guide and LLVM conventions for C++ filenames. As suggested by rnk@ in D46068. Reviewers: rnk Subscribers: mgorny, mgrang, llvm-commits Differential Revision: https://reviews.llvm.org/D46301 llvm-svn: 331321 --- llvm/tools/llvm-xray/CMakeLists.txt | 20 ++++++++++---------- .../{func-id-helper.cc => func-id-helper.cpp} | 2 +- llvm/tools/llvm-xray/{llvm-xray.cc => llvm-xray.cpp} | 2 +- .../llvm-xray/{xray-account.cc => xray-account.cpp} | 0 .../{xray-color-helper.cc => xray-color-helper.cpp} | 2 +- .../{xray-converter.cc => xray-converter.cpp} | 2 +- .../llvm-xray/{xray-extract.cc => xray-extract.cpp} | 2 +- .../{xray-graph-diff.cc => xray-graph-diff.cpp} | 2 +- .../llvm-xray/{xray-graph.cc => xray-graph.cpp} | 2 +- .../{xray-registry.cc => xray-registry.cpp} | 2 +- .../llvm-xray/{xray-stacks.cc => xray-stacks.cpp} | 2 +- 11 files changed, 19 insertions(+), 19 deletions(-) rename llvm/tools/llvm-xray/{func-id-helper.cc => func-id-helper.cpp} (96%) rename llvm/tools/llvm-xray/{llvm-xray.cc => llvm-xray.cpp} (96%) rename llvm/tools/llvm-xray/{xray-account.cc => xray-account.cpp} (100%) rename llvm/tools/llvm-xray/{xray-color-helper.cc => xray-color-helper.cpp} (99%) rename llvm/tools/llvm-xray/{xray-converter.cc => xray-converter.cpp} (99%) rename llvm/tools/llvm-xray/{xray-extract.cc => xray-extract.cpp} (98%) rename llvm/tools/llvm-xray/{xray-graph-diff.cc => xray-graph-diff.cpp} (99%) rename llvm/tools/llvm-xray/{xray-graph.cc => xray-graph.cpp} (99%) rename llvm/tools/llvm-xray/{xray-registry.cc => xray-registry.cpp} (95%) rename llvm/tools/llvm-xray/{xray-stacks.cc => xray-stacks.cpp} (99%) diff --git a/llvm/tools/llvm-xray/CMakeLists.txt b/llvm/tools/llvm-xray/CMakeLists.txt index 73d81df..ca2937e 100644 --- a/llvm/tools/llvm-xray/CMakeLists.txt +++ b/llvm/tools/llvm-xray/CMakeLists.txt @@ -7,14 +7,14 @@ set(LLVM_LINK_COMPONENTS XRay) set(LLVM_XRAY_TOOLS - func-id-helper.cc - xray-account.cc - xray-color-helper.cc - xray-converter.cc - xray-extract.cc - xray-graph.cc - xray-graph-diff.cc - xray-stacks.cc - xray-registry.cc) + func-id-helper.cpp + xray-account.cpp + xray-color-helper.cpp + xray-converter.cpp + xray-extract.cpp + xray-graph.cpp + xray-graph-diff.cpp + xray-stacks.cpp + xray-registry.cpp) -add_llvm_tool(llvm-xray llvm-xray.cc ${LLVM_XRAY_TOOLS}) +add_llvm_tool(llvm-xray llvm-xray.cpp ${LLVM_XRAY_TOOLS}) diff --git a/llvm/tools/llvm-xray/func-id-helper.cc b/llvm/tools/llvm-xray/func-id-helper.cpp similarity index 96% rename from llvm/tools/llvm-xray/func-id-helper.cc rename to llvm/tools/llvm-xray/func-id-helper.cpp index 9bf55b2..c2bef6d 100644 --- a/llvm/tools/llvm-xray/func-id-helper.cc +++ b/llvm/tools/llvm-xray/func-id-helper.cpp @@ -1,4 +1,4 @@ -//===- xray-fc-account.cc - XRay Function Call Accounting Tool ------------===// +//===- xray-fc-account.cpp: XRay Function Call Accounting Tool ------------===// // // The LLVM Compiler Infrastructure // diff --git a/llvm/tools/llvm-xray/llvm-xray.cc b/llvm/tools/llvm-xray/llvm-xray.cpp similarity index 96% rename from llvm/tools/llvm-xray/llvm-xray.cc rename to llvm/tools/llvm-xray/llvm-xray.cpp index 17cc9f9..e74628f 100644 --- a/llvm/tools/llvm-xray/llvm-xray.cc +++ b/llvm/tools/llvm-xray/llvm-xray.cpp @@ -1,4 +1,4 @@ -//===- llvm-xray.cc - XRay Tool Main Program ------------------------------===// +//===- llvm-xray.cpp: XRay Tool Main Program ------------------------------===// // // The LLVM Compiler Infrastructure // diff --git a/llvm/tools/llvm-xray/xray-account.cc b/llvm/tools/llvm-xray/xray-account.cpp similarity index 100% rename from llvm/tools/llvm-xray/xray-account.cc rename to llvm/tools/llvm-xray/xray-account.cpp diff --git a/llvm/tools/llvm-xray/xray-color-helper.cc b/llvm/tools/llvm-xray/xray-color-helper.cpp similarity index 99% rename from llvm/tools/llvm-xray/xray-color-helper.cc rename to llvm/tools/llvm-xray/xray-color-helper.cpp index 61314d3..78a264b 100644 --- a/llvm/tools/llvm-xray/xray-color-helper.cc +++ b/llvm/tools/llvm-xray/xray-color-helper.cpp @@ -1,4 +1,4 @@ -//===-- xray-graph.cc - XRay Function Call Graph Renderer -----------------===// +//===-- xray-graph.cpp: XRay Function Call Graph Renderer -----------------===// // // The LLVM Compiler Infrastructure // diff --git a/llvm/tools/llvm-xray/xray-converter.cc b/llvm/tools/llvm-xray/xray-converter.cpp similarity index 99% rename from llvm/tools/llvm-xray/xray-converter.cc rename to llvm/tools/llvm-xray/xray-converter.cpp index aa0da55..ee6a76a 100644 --- a/llvm/tools/llvm-xray/xray-converter.cc +++ b/llvm/tools/llvm-xray/xray-converter.cpp @@ -1,4 +1,4 @@ -//===- xray-converter.cc - XRay Trace Conversion --------------------------===// +//===- xray-converter.cpp: XRay Trace Conversion --------------------------===// // // The LLVM Compiler Infrastructure // diff --git a/llvm/tools/llvm-xray/xray-extract.cc b/llvm/tools/llvm-xray/xray-extract.cpp similarity index 98% rename from llvm/tools/llvm-xray/xray-extract.cc rename to llvm/tools/llvm-xray/xray-extract.cpp index cd87798..10fe7d8 100644 --- a/llvm/tools/llvm-xray/xray-extract.cc +++ b/llvm/tools/llvm-xray/xray-extract.cpp @@ -1,4 +1,4 @@ -//===- xray-extract.cc - XRay Instrumentation Map Extraction --------------===// +//===- xray-extract.cpp: XRay Instrumentation Map Extraction --------------===// // // The LLVM Compiler Infrastructure // diff --git a/llvm/tools/llvm-xray/xray-graph-diff.cc b/llvm/tools/llvm-xray/xray-graph-diff.cpp similarity index 99% rename from llvm/tools/llvm-xray/xray-graph-diff.cc rename to llvm/tools/llvm-xray/xray-graph-diff.cpp index 3c69b3f..a22f2a9 100644 --- a/llvm/tools/llvm-xray/xray-graph-diff.cc +++ b/llvm/tools/llvm-xray/xray-graph-diff.cpp @@ -1,4 +1,4 @@ -//===-- xray-graph-diff.cc - XRay Function Call Graph Renderer ------------===// +//===-- xray-graph-diff.cpp: XRay Function Call Graph Renderer ------------===// // // The LLVM Compiler Infrastructure // diff --git a/llvm/tools/llvm-xray/xray-graph.cc b/llvm/tools/llvm-xray/xray-graph.cpp similarity index 99% rename from llvm/tools/llvm-xray/xray-graph.cc rename to llvm/tools/llvm-xray/xray-graph.cpp index feb6763..c619bf8 100644 --- a/llvm/tools/llvm-xray/xray-graph.cc +++ b/llvm/tools/llvm-xray/xray-graph.cpp @@ -1,4 +1,4 @@ -//===-- xray-graph.cc - XRay Function Call Graph Renderer -----------------===// +//===-- xray-graph.cpp: XRay Function Call Graph Renderer -----------------===// // // The LLVM Compiler Infrastructure // diff --git a/llvm/tools/llvm-xray/xray-registry.cc b/llvm/tools/llvm-xray/xray-registry.cpp similarity index 95% rename from llvm/tools/llvm-xray/xray-registry.cc rename to llvm/tools/llvm-xray/xray-registry.cpp index 36d3a2e..fe58e4d 100644 --- a/llvm/tools/llvm-xray/xray-registry.cc +++ b/llvm/tools/llvm-xray/xray-registry.cpp @@ -1,4 +1,4 @@ -//===- xray-registry.cc - Implement a command registry. -------------------===// +//===- xray-registry.cpp: Implement a command registry. -------------------===// // // The LLVM Compiler Infrastructure // diff --git a/llvm/tools/llvm-xray/xray-stacks.cc b/llvm/tools/llvm-xray/xray-stacks.cpp similarity index 99% rename from llvm/tools/llvm-xray/xray-stacks.cc rename to llvm/tools/llvm-xray/xray-stacks.cpp index 9474de0..1a60697 100644 --- a/llvm/tools/llvm-xray/xray-stacks.cc +++ b/llvm/tools/llvm-xray/xray-stacks.cpp @@ -1,4 +1,4 @@ -//===- xray-stacks.cc - XRay Function Call Stack Accounting ---------------===// +//===- xray-stacks.cpp: XRay Function Call Stack Accounting ---------------===// // // The LLVM Compiler Infrastructure // -- 2.7.4