]> granicus.if.org Git - clang/commitdiff
Fixup unit tests for DiagnosticOptions change
authorDouglas Gregor <dgregor@apple.com>
Tue, 23 Oct 2012 22:31:51 +0000 (22:31 +0000)
committerDouglas Gregor <dgregor@apple.com>
Tue, 23 Oct 2012 22:31:51 +0000 (22:31 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@166509 91177308-0d34-0410-b5e6-96231b3b80d8

unittests/AST/CommentLexer.cpp
unittests/AST/CommentParser.cpp
unittests/Basic/SourceManagerTest.cpp
unittests/Lex/LexerTest.cpp

index cc4535a163c4e83506f4f6cc7079b97abb533419..f8746d91e602e22c5e961eadb27f01acaf5201e8 100644 (file)
@@ -29,7 +29,7 @@ protected:
   CommentLexerTest()
     : FileMgr(FileMgrOpts),
       DiagID(new DiagnosticIDs()),
-      Diags(DiagID, new IgnoringDiagConsumer()),
+      Diags(DiagID, new DiagnosticOptions, new IgnoringDiagConsumer()),
       SourceMgr(Diags, FileMgr),
       Traits(Allocator) {
   }
index e4226e7d3d0839530243802f4174856bcacc1ddd..8cfb24438f1dc02097a614022a200d7297ff52d3 100644 (file)
@@ -36,7 +36,7 @@ protected:
   CommentParserTest()
     : FileMgr(FileMgrOpts),
       DiagID(new DiagnosticIDs()),
-      Diags(DiagID, new IgnoringDiagConsumer()),
+      Diags(DiagID, new DiagnosticOptions, new IgnoringDiagConsumer()),
       SourceMgr(Diags, FileMgr),
       Traits(Allocator) {
   }
index a04539b1bada29b978056e463260a6172b7bb1b9..63c64835a0eab82e25ae29df8db50686bcc34747 100644 (file)
@@ -32,7 +32,7 @@ protected:
   SourceManagerTest()
     : FileMgr(FileMgrOpts),
       DiagID(new DiagnosticIDs()),
-      Diags(DiagID, new IgnoringDiagConsumer()),
+      Diags(DiagID, new DiagnosticOptions, new IgnoringDiagConsumer()),
       SourceMgr(Diags, FileMgr),
       TargetOpts(new TargetOptions) {
     TargetOpts->Triple = "x86_64-apple-darwin11.1.0";
index 069b3ccff98014ec90f966481d62e7a91344039a..593fdb572a5964b65e56e44b1c627020d86e5577 100644 (file)
@@ -31,7 +31,7 @@ protected:
   LexerTest()
     : FileMgr(FileMgrOpts),
       DiagID(new DiagnosticIDs()),
-      Diags(DiagID, new IgnoringDiagConsumer()),
+      Diags(DiagID, new DiagnosticOptions, new IgnoringDiagConsumer()),
       SourceMgr(Diags, FileMgr),
       TargetOpts(new TargetOptions) 
   {