Commit 95f6a93c authored by Hans Fugal's avatar Hans Fugal Committed by dcsommer

move clang disable of Thens.cpp to thens.rb

Summary: So when we re-generate code we don't cause clang test failures (until #4412111 is done)

Test Plan: git diff

Reviewed By: jsedgwick@fb.com

Subscribers: net-systems@, fugalh, mathieubaudet, exa, njormrod, folly-diffs@

FB internal diff: D1644550

Tasks: 4412111

Signature: t1:1644550:1414604128:8184e7ce1f3e417c170ef67346d553caecc1f013
parent 03bcae3a
// This file is @generated by thens.rb // This file is @generated by thens.rb
#include <folly/wangle/test/Thens.h>
#ifndef __clang__
// TODO: fails to compile with clang:dev. See task #4412111 // TODO: fails to compile with clang:dev. See task #4412111
#ifndef __clang__
#include <folly/wangle/test/Thens.h>
TEST(Future, thenVariants) { TEST(Future, thenVariants) {
SomeClass anObject; SomeClass anObject;
......
#!/usr/bin/env ruby #!/usr/bin/env ruby
# ruby thens.rb > Thens.cpp
# An exercise in combinatorics. # An exercise in combinatorics.
# (ordinary/static function, member function, std::function, lambda) # (ordinary/static function, member function, std::function, lambda)
# X # X
...@@ -59,7 +61,10 @@ tests = ( ...@@ -59,7 +61,10 @@ tests = (
).map {|a| test(a)}.flatten ).map {|a| test(a)}.flatten
print <<EOF print <<EOF
// This file is #{"@"}generated by thens.rb // This file is #{"@"}generated by thens.rb. Do not edit directly.
// TODO: fails to compile with clang:dev. See task #4412111
#ifndef __clang__
#include <folly/wangle/test/Thens.h> #include <folly/wangle/test/Thens.h>
...@@ -69,4 +74,6 @@ TEST(Future, thenVariants) { ...@@ -69,4 +74,6 @@ TEST(Future, thenVariants) {
#{tests.join("\n ")} #{tests.join("\n ")}
} }
#endif
EOF EOF
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment