A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://clang.llvm.org/doxygen/classclang_1_1MultipleIncludeOpt.html below:

clang: clang::MultipleIncludeOpt Class Reference

Implements the simple state machine that the Lexer class uses to detect files subject to the 'multiple-include' optimization. More...

#include "clang/Lex/MultipleIncludeOpt.h"

Implements the simple state machine that the Lexer class uses to detect files subject to the 'multiple-include' optimization.

The public methods in this class are triggered by various events that occur when a file is lexed, and after the entire file is lexed, information about which macro (if any) controls the header is returned.

Definition at line 28 of file MultipleIncludeOpt.h.

◆ MultipleIncludeOpt() ◆ EnterTopLevelConditional() void clang::MultipleIncludeOpt::EnterTopLevelConditional ( ) inline ◆ EnterTopLevelIfndef()

Called when entering a top-level #ifndef directive (or the "\#if !defined" equivalent) without any preceding tokens.

Note, we don't care about the input value of 'ReadAnyTokens'. The caller ensures that this is only called if there are no tokens read before the #ifndef. The caller is required to do this, because reading the #if line obviously reads in tokens.

Definition at line 128 of file MultipleIncludeOpt.h.

References Invalidate(), and Loc.

◆ ExitTopLevelConditional() void clang::MultipleIncludeOpt::ExitTopLevelConditional ( ) inline ◆ ExpandedMacro() void clang::MultipleIncludeOpt::ExpandedMacro ( ) inline

ExpandedMacro - When a macro is expanded with this lexer as the current buffer, this method is called to disable the MIOpt if needed.

Definition at line 119 of file MultipleIncludeOpt.h.

◆ GetControllingMacroAtEndOfFile() const IdentifierInfo * clang::MultipleIncludeOpt::GetControllingMacroAtEndOfFile ( ) const inline ◆ GetDefinedLocation() SourceLocation clang::MultipleIncludeOpt::GetDefinedLocation ( ) const inline ◆ GetDefinedMacro() const IdentifierInfo * clang::MultipleIncludeOpt::GetDefinedMacro ( ) const inline ◆ getHasReadAnyTokensVal() bool clang::MultipleIncludeOpt::getHasReadAnyTokensVal ( ) const inline ◆ getImmediatelyAfterTopLevelIfndef() bool clang::MultipleIncludeOpt::getImmediatelyAfterTopLevelIfndef ( ) const inline ◆ GetMacroLocation() ◆ Invalidate() void clang::MultipleIncludeOpt::Invalidate ( ) inline ◆ ReadToken() ◆ resetImmediatelyAfterTopLevelIfndef() void clang::MultipleIncludeOpt::resetImmediatelyAfterTopLevelIfndef ( ) inline ◆ SetDefinedMacro() ◆ SetReadToken() void clang::MultipleIncludeOpt::SetReadToken ( bool  Value ) inline

SetReadToken - Set whether the value of 'ReadAnyTokens'.

Called to override when encountering tokens outside of the include guard that have no effect if the file in question is is included multiple times (e.g. the null directive).

Definition at line 115 of file MultipleIncludeOpt.h.

Referenced by clang::Preprocessor::HandleDirective().

The documentation for this class was generated from the following file:


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4