diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2014-03-07 07:47:58 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2014-03-07 07:47:58 +0000 |
commit | e1974dcd92b0f27e4a8ba54887640b2a93993b40 (patch) | |
tree | bbd8e20e8b482ec5577257f8ceda44a2eaab0f1a /clang/lib/Lex/Preprocessor.cpp | |
parent | 648250a2e50c00eb5c56182a7d2f2b41f74ab16e (diff) | |
download | bcm5719-llvm-e1974dcd92b0f27e4a8ba54887640b2a93993b40.tar.gz bcm5719-llvm-e1974dcd92b0f27e4a8ba54887640b2a93993b40.zip |
[Preprocessor] Pass TranslationUnitKind to the preprocessor and if it is TU_Prefix
avoid warning for unused macros.
rdar://15034698
llvm-svn: 203213
Diffstat (limited to 'clang/lib/Lex/Preprocessor.cpp')
-rw-r--r-- | clang/lib/Lex/Preprocessor.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/lib/Lex/Preprocessor.cpp b/clang/lib/Lex/Preprocessor.cpp index e7d844087c0..2125d180e80 100644 --- a/clang/lib/Lex/Preprocessor.cpp +++ b/clang/lib/Lex/Preprocessor.cpp @@ -59,11 +59,13 @@ Preprocessor::Preprocessor(IntrusiveRefCntPtr<PreprocessorOptions> PPOpts, const TargetInfo *target, SourceManager &SM, HeaderSearch &Headers, ModuleLoader &TheModuleLoader, IdentifierInfoLookup *IILookup, bool OwnsHeaders, - bool DelayInitialization, bool IncrProcessing) + bool DelayInitialization, bool IncrProcessing, + TranslationUnitKind TUKind) : PPOpts(PPOpts), Diags(&diags), LangOpts(opts), Target(target), FileMgr(Headers.getFileMgr()), SourceMgr(SM), HeaderInfo(Headers), TheModuleLoader(TheModuleLoader), ExternalSource(0), Identifiers(opts, IILookup), IncrementalProcessing(IncrProcessing), + TUKind(TUKind), CodeComplete(0), CodeCompletionFile(0), CodeCompletionOffset(0), LastTokenWasAt(false), ModuleImportExpectsIdentifier(false), CodeCompletionReached(0), SkipMainFilePreamble(0, true), CurPPLexer(0), |