[Preprocessor] Pass TranslationUnitKind to the preprocessor and if it is TU_Prefix
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Fri, 7 Mar 2014 07:47:58 +0000 (07:47 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Fri, 7 Mar 2014 07:47:58 +0000 (07:47 +0000)
commite1974dcd92b0f27e4a8ba54887640b2a93993b40
treebbd8e20e8b482ec5577257f8ceda44a2eaab0f1a
parent648250a2e50c00eb5c56182a7d2f2b41f74ab16e
[Preprocessor] Pass TranslationUnitKind to the preprocessor and if it is TU_Prefix
avoid warning for unused macros.

rdar://15034698

llvm-svn: 203213
clang/include/clang/Frontend/CompilerInstance.h
clang/include/clang/Lex/Preprocessor.h
clang/lib/Frontend/ChainedIncludesSource.cpp
clang/lib/Frontend/CompilerInstance.cpp
clang/lib/Frontend/FrontendAction.cpp
clang/lib/Lex/PPLexerChange.cpp
clang/lib/Lex/Preprocessor.cpp
clang/test/Index/preamble.c