summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/test/clang-modernize/Core/NoReformattingNeeded.cpp
diff options
context:
space:
mode:
authorEdwin Vane <edwin.vane@intel.com>2013-10-05 12:15:58 +0000
committerEdwin Vane <edwin.vane@intel.com>2013-10-05 12:15:58 +0000
commitc0f00b79f79171b3595f77df8f7fa4cf16365c3b (patch)
treef6fee93270bec60820cb94dbb9aded358a444316 /clang-tools-extra/test/clang-modernize/Core/NoReformattingNeeded.cpp
parentc83946f7f522c4b45d60f3bac4849f0811e18d30 (diff)
downloadbcm5719-llvm-c0f00b79f79171b3595f77df8f7fa4cf16365c3b.tar.gz
bcm5719-llvm-c0f00b79f79171b3595f77df8f7fa4cf16365c3b.zip
clang-modernize: Apply replacements using clang-apply-replacements
Summary: The clang-apply-replacements process is now invoked to apply replacements between applying transforms. This resulted in a massive simplification of the tool: - FileOverrides class no longer needed. - Change tracking and code formatting no longer needed. - No more dependency on libclangApplyReplacements. - Final syntax check is easier to do directly now than with a separate header/source pair. Replacement handling stuff abstracted into a new header/source pair to de-clutter ClangModernize.cpp somewhat. Tests updated. Differential Revision: http://llvm-reviews.chandlerc.com/D1836 llvm-svn: 192032
Diffstat (limited to 'clang-tools-extra/test/clang-modernize/Core/NoReformattingNeeded.cpp')
-rw-r--r--clang-tools-extra/test/clang-modernize/Core/NoReformattingNeeded.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/clang-tools-extra/test/clang-modernize/Core/NoReformattingNeeded.cpp b/clang-tools-extra/test/clang-modernize/Core/NoReformattingNeeded.cpp
deleted file mode 100644
index e58fdb24068..00000000000
--- a/clang-tools-extra/test/clang-modernize/Core/NoReformattingNeeded.cpp
+++ /dev/null
@@ -1,10 +0,0 @@
-// RUN: grep -Ev "// *[A-Z-]+:" %s > %t.cpp
-// RUN: clang-modernize -format-style=LLVM -use-auto %t.cpp -- -std=c++11
-// RUN: FileCheck --strict-whitespace -input-file=%t.cpp %s
-
-class C {};
-
-void f() { //
- C *a = new C();
- // CHECK: {{^\ \ auto\ a\ \=\ new\ C\(\);}}
-}
OpenPOWER on IntegriCloud