Lines Matching refs:Preprocessor

1 //===--- PPDirectives.cpp - Directive Handling for Preprocessor -----------===//
10 /// Implements # directive processing for the Preprocessor.
35 #include "clang/Lex/Preprocessor.h"
59 // Utility Methods for Preprocessor Directive Handling.
62 MacroInfo *Preprocessor::AllocateMacroInfo(SourceLocation L) {
67 DefMacroDirective *Preprocessor::AllocateDefMacroDirective(MacroInfo *MI,
73 Preprocessor::AllocateUndefMacroDirective(SourceLocation UndefLoc) {
78 Preprocessor::AllocateVisibilityMacroDirective(SourceLocation Loc,
85 SourceRange Preprocessor::DiscardUntilEndOfDirective(Token &Tmp) {
179 static bool isReservedCXXAttributeName(Preprocessor &PP, IdentifierInfo *II) {
195 static MacroDiag shouldWarnOnMacroDef(Preprocessor &PP, IdentifierInfo *II) {
209 static MacroDiag shouldWarnOnMacroUndef(Preprocessor &PP, IdentifierInfo *II) {
343 bool Preprocessor::CheckMacroName(Token &MacroNameTok, MacroUse isDefineUndef,
409 void Preprocessor::ReadMacroName(Token &MacroNameTok, MacroUse isDefineUndef,
438 SourceLocation Preprocessor::CheckEndOfDirective(const char *DirType,
469 void Preprocessor::SuggestTypoedDirective(const Token &Tok,
502 void Preprocessor::SkipExcludedConditionalBlock(SourceLocation HashTokenLoc,
539 Preprocessor &PP;
544 SkippingRangeStateTy(Preprocessor &PP) : PP(PP) {}
882 Module *Preprocessor::getModuleForLocation(SourceLocation Loc,
904 Preprocessor::getHeaderToIncludeForDiagnostics(SourceLocation IncLoc,
974 OptionalFileEntryRef Preprocessor::LookupFile(
1100 Preprocessor::LookupEmbedFile(StringRef Filename, bool isAngled, bool OpenFile,
1170 // Preprocessor Directive Handling.
1173 class Preprocessor::ResetMacroExpansionHelper {
1175 ResetMacroExpansionHelper(Preprocessor *pp)
1186 Preprocessor *PP;
1196 void Preprocessor::HandleSkippedDirectiveWhileUsingPCH(Token &Result,
1221 void Preprocessor::HandleDirective(Token &Result) {
1439 unsigned DiagID, Preprocessor &PP,
1497 void Preprocessor::HandleLineDirective() {
1577 Preprocessor &PP) {
1659 void Preprocessor::HandleDigitDirective(Token &DigitTok) {
1735 void Preprocessor::HandleUserDiagnosticDirective(Token &Tok,
1757 void Preprocessor::HandleIdentSCCSDirective(Token &Tok) {
1792 void Preprocessor::HandleMacroPublicDirective(Token &Tok) {
1819 void Preprocessor::HandleMacroPrivateDirective() {
1846 // Preprocessor Include Directive Handling.
1855 bool Preprocessor::GetIncludeFilenameSpelling(SourceLocation Loc,
1903 void Preprocessor::EnterAnnotationToken(SourceRange Range,
1920 Preprocessor &PP, SourceLocation HashLoc, Token &IncludeTok,
1998 bool Preprocessor::checkModuleIsAvailable(const LangOptions &LangOpts,
2027 Preprocessor::getIncludeNextStart(const Token &IncludeNextTok) const {
2067 void Preprocessor::HandleIncludeDirective(SourceLocation HashLoc,
2117 OptionalFileEntryRef Preprocessor::LookupHeaderIncludeOrImport(
2244 Preprocessor::ImportAction Preprocessor::HandleHeaderIncludeOrImport(
2717 void Preprocessor::HandleIncludeNextDirective(SourceLocation HashLoc,
2730 void Preprocessor::HandleMicrosoftImportDirective(Token &Tok) {
2745 void Preprocessor::HandleImportDirective(SourceLocation HashLoc,
2759 void Preprocessor::HandleIncludeMacrosDirective(SourceLocation HashLoc,
2783 // Preprocessor Macro Directive Handling.
2790 bool Preprocessor::ReadMacroParameterList(MacroInfo *MI, Token &Tok) {
2929 MacroInfo *Preprocessor::ReadOptionalMacroParameterListAndBody(
3167 void Preprocessor::HandleDefineDirective(
3316 void Preprocessor::HandleUndefDirective() {
3363 // Preprocessor Conditional Directive Handling.
3371 void Preprocessor::HandleIfdefDirective(Token &Result,
3449 void Preprocessor::HandleIfDirective(Token &IfToken,
3501 void Preprocessor::HandleEndifDirective(Token &EndifToken) {
3527 void Preprocessor::HandleElseDirective(Token &Result, const Token &HashToken) {
3567 void Preprocessor::HandleElifFamilyDirective(Token &ElifToken,
3647 Preprocessor::LexEmbedParameters(Token &CurTok, bool ForHasEmbed) {
3899 void Preprocessor::HandleEmbedDirectiveImpl(
3948 void Preprocessor::HandleEmbedDirective(SourceLocation HashLoc, Token &EmbedTok,