示例#1
0
文件: LLVMCompat.cpp 项目: kknox/HIP
void EnterPreprocessorTokenStream(clang::Preprocessor& _pp, const clang::Token *start, size_t len, bool DisableMacroExpansion) {
#if (LLVM_VERSION_MAJOR == 3) && (LLVM_VERSION_MINOR == 8)
    _pp.EnterTokenStream(start, len, false, DisableMacroExpansion);
#else
    _pp.EnterTokenStream(clang::ArrayRef<clang::Token>{start, len}, DisableMacroExpansion);
#endif
}
示例#2
0
void ParserProxy::EnterTokenStream(clang::Preprocessor& PP) {
    PP.EnterTokenStream(&(CurrentToken()), 1, true, false);
}