[clang-tools-extra] r187048 - cpp11-migrate: Fix build break on Windows introduced in r187041.

Guillaume Papin guillaume.papin at epitech.eu
Wed Jul 24 08:35:24 PDT 2013


Author: papin_g
Date: Wed Jul 24 10:35:24 2013
New Revision: 187048

URL: http://llvm.org/viewvc/llvm-project?rev=187048&view=rev
Log:
cpp11-migrate: Fix build break on Windows introduced in r187041.

r187041 changed the way the transform are created and the order the transformed
are applied "may" have changed as well (no specific constraints exist on the
order). This produced a test failure on the Windows buildbot.

Now the test use -std=c++11, so 'nullptr' is defined and the test is not anymore
dependent on the order the transforms are applied.

Modified:
    clang-tools-extra/trunk/test/cpp11-migrate/Combined/combined.cpp

Modified: clang-tools-extra/trunk/test/cpp11-migrate/Combined/combined.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/test/cpp11-migrate/Combined/combined.cpp?rev=187048&r1=187047&r2=187048&view=diff
==============================================================================
--- clang-tools-extra/trunk/test/cpp11-migrate/Combined/combined.cpp (original)
+++ clang-tools-extra/trunk/test/cpp11-migrate/Combined/combined.cpp Wed Jul 24 10:35:24 2013
@@ -1,8 +1,8 @@
 // RUN: grep -Ev "// *[A-Z-]+:" %s > %t.cpp
 // RUN: grep -Ev "// *[A-Z-]+:" %s > %t_risky.cpp
-// RUN: cpp11-migrate -loop-convert -use-nullptr %t.cpp --
+// RUN: cpp11-migrate -loop-convert -use-nullptr %t.cpp -- -std=c++11
 // RUN: FileCheck -input-file=%t.cpp %s
-// RUN: cpp11-migrate -loop-convert -use-nullptr -risk=risky %t_risky.cpp --
+// RUN: cpp11-migrate -loop-convert -use-nullptr -risk=risky %t_risky.cpp -- -std=c++11
 // RUN: FileCheck -check-prefix=RISKY -input-file=%t_risky.cpp %s
 
 #define NULL 0





More information about the cfe-commits mailing list