[PATCH] D20369: [ASTMatcher] Fix a ASTMatcher test failure on Windows.

Haojian Wu via cfe-commits cfe-commits at lists.llvm.org
Wed May 18 07:49:55 PDT 2016


hokein created this revision.
hokein added reviewers: alexfh, aaron.ballman.
hokein added a subscriber: cfe-commits.
Herald added a subscriber: klimek.

http://reviews.llvm.org/D20369

Files:
  unittests/ASTMatchers/ASTMatchersTest.h

Index: unittests/ASTMatchers/ASTMatchersTest.h
===================================================================
--- unittests/ASTMatchers/ASTMatchersTest.h
+++ unittests/ASTMatchers/ASTMatchersTest.h
@@ -79,6 +79,8 @@
   // Some tests need rtti/exceptions on
   Args.push_back("-frtti");
   Args.push_back("-fexceptions");
+  // Keep the same template handling behavior on Windows and Linux.
+  Args.push_back("-fno-delayed-template-parsing");
   if (!runToolOnCodeWithArgs(
           Factory->create(), Code, Args, Filename, "clang-tool",
           std::make_shared<PCHContainerOperations>(), VirtualMappedFiles)) {


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D20369.57623.patch
Type: text/x-patch
Size: 622 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160518/a9f18be6/attachment.bin>


More information about the cfe-commits mailing list