|
@@ -18,6 +18,7 @@
|
|
|
#include "clang/Lex/HeaderSearch.h"
|
|
|
#include "clang/Lex/HeaderSearchOptions.h"
|
|
|
#include "clang/Lex/Preprocessor.h"
|
|
|
+#include "clang/Lex/PreprocessorOptions.h"
|
|
|
#include "llvm/ADT/SmallString.h"
|
|
|
#include "llvm/Config/config.h"
|
|
|
|
|
@@ -69,8 +70,7 @@ TEST_F(SourceManagerTest, isBeforeInTranslationUnit) {
|
|
|
VoidModuleLoader ModLoader;
|
|
|
HeaderSearch HeaderInfo(new HeaderSearchOptions, FileMgr, Diags, LangOpts,
|
|
|
&*Target);
|
|
|
- Preprocessor PP(Diags, LangOpts,
|
|
|
- Target.getPtr(),
|
|
|
+ Preprocessor PP(new PreprocessorOptions(), Diags, LangOpts, Target.getPtr(),
|
|
|
SourceMgr, HeaderInfo, ModLoader,
|
|
|
/*IILookup =*/ 0,
|
|
|
/*OwnsHeaderSearch =*/false,
|
|
@@ -185,8 +185,7 @@ TEST_F(SourceManagerTest, getMacroArgExpandedLocation) {
|
|
|
VoidModuleLoader ModLoader;
|
|
|
HeaderSearch HeaderInfo(new HeaderSearchOptions, FileMgr, Diags, LangOpts,
|
|
|
&*Target);
|
|
|
- Preprocessor PP(Diags, LangOpts,
|
|
|
- Target.getPtr(),
|
|
|
+ Preprocessor PP(new PreprocessorOptions(), Diags, LangOpts, Target.getPtr(),
|
|
|
SourceMgr, HeaderInfo, ModLoader,
|
|
|
/*IILookup =*/ 0,
|
|
|
/*OwnsHeaderSearch =*/false,
|
|
@@ -283,8 +282,7 @@ TEST_F(SourceManagerTest, isBeforeInTranslationUnitWithMacroInInclude) {
|
|
|
VoidModuleLoader ModLoader;
|
|
|
HeaderSearch HeaderInfo(new HeaderSearchOptions, FileMgr, Diags, LangOpts,
|
|
|
&*Target);
|
|
|
- Preprocessor PP(Diags, LangOpts,
|
|
|
- Target.getPtr(),
|
|
|
+ Preprocessor PP(new PreprocessorOptions(), Diags, LangOpts, Target.getPtr(),
|
|
|
SourceMgr, HeaderInfo, ModLoader,
|
|
|
/*IILookup =*/ 0,
|
|
|
/*OwnsHeaderSearch =*/false,
|