Add LexIncludeFilename.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59187 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/include/clang/Lex/PreprocessorLexer.h b/include/clang/Lex/PreprocessorLexer.h
index 7ac1eea..12a0cef 100644
--- a/include/clang/Lex/PreprocessorLexer.h
+++ b/include/clang/Lex/PreprocessorLexer.h
@@ -61,6 +61,8 @@
PreprocessorLexer() {}
+ virtual void IndirectLex(Token& Result) = 0;
+
protected:
//===--------------------------------------------------------------------===//
@@ -99,7 +101,15 @@
return ConditionalStack.back();
}
- unsigned getConditionalStackDepth() const { return ConditionalStack.size(); }
+ unsigned getConditionalStackDepth() const { return ConditionalStack.size(); }
+
+ //===--------------------------------------------------------------------===//
+ // Misc. lexing methods.
+
+ /// LexIncludeFilename - After the preprocessor has parsed a #include, lex and
+ /// (potentially) macro expand the filename. If the sequence parsed is not
+ /// lexically legal, emit a diagnostic and return a result EOM token.
+ void LexIncludeFilename(Token &Result);
};
} // end namespace clang