Home
last modified time | relevance | path

Searched full:preprocessor (Results 1 – 25 of 641) sorted by relevance

12345678910>>...26

/freebsd/crypto/openssl/external/perl/Text-Template-1.56/lib/Text/Template/
H A DPreprocess.pm16 my $pp = $args{PREPROCESSOR} || $self->{PREPROCESSOR};
32 sub preprocessor { subroutine
35 my $old_pp = $self->{PREPROCESSOR};
37 $self->{PREPROCESSOR} = $pp if @_ > 1; # OK to pass $pp=undef
65 my $result = $t->fill_in(..., PREPROCESSOR => \&pp);
67 my $old_pp = $t->preprocessor(\&new_pp);
71 C<Text::Template::Preprocess> provides a new C<PREPROCESSOR> option to
72 C<fill_in>. If the C<PREPROCESSOR> option is supplied, it must be a
73 reference to a preprocessor subroutine. When filling out a template,
74 C<Text::Template::Preprocessor> will use this subroutine to preprocess
[all …]
/freebsd/contrib/llvm-project/clang/lib/Lex/
H A DPreprocessor.cpp1 //===- Preprocessor.cpp - C Language Family Preprocessor Implementation ---===//
9 // This file implements the Preprocessor interface.
16 // -fworking-directory - #line's with preprocessor's working dir.
27 #include "clang/Lex/Preprocessor.h"
83 Preprocessor::Preprocessor(std::shared_ptr<PreprocessorOptions> PPOpts, in Preprocessor() function in Preprocessor
95 // deferred to Preprocessor::Initialize(). in Preprocessor()
172 Preprocessor::~Preprocessor() { in ~Preprocessor()
192 void Preprocessor::Initialize(const TargetInfo &Target, in Initialize()
220 void Preprocessor::InitializeForModelFile() { in InitializeForModelFile()
232 void Preprocessor::FinalizeForModelFile() { in FinalizeForModelFile()
[all …]
H A DPragma.cpp10 // pragma related methods of the Preprocessor class.
32 #include "clang/Lex/Preprocessor.h"
67 void EmptyPragmaHandler::HandlePragma(Preprocessor &PP, in HandlePragma()
107 void PragmaNamespace::HandlePragma(Preprocessor &PP, in HandlePragma()
128 // Preprocessor Pragma Directive Handling.
136 Preprocessor &Self;
167 void Preprocessor::HandlePragmaDirective(PragmaIntroducer Introducer) { in HandlePragmaDirective()
189 void Preprocessor::Handle_Pragma(Token &Tok) { in Handle_Pragma()
358 void Preprocessor::HandleMicrosoft__pragma(Token &Tok) { in HandleMicrosoft__pragma()
417 void Preprocessor::HandlePragmaOnce(Token &OnceTok) { in HandlePragmaOnce()
[all …]
H A DPPLexerChange.cpp1 //===--- PPLexerChange.cpp - Handle changing lexers in the preprocessor ---===//
9 // This file implements pieces of the Preprocessor interface that manage the
19 #include "clang/Lex/Preprocessor.h"
35 bool Preprocessor::isInPrimaryFile() const { in isInPrimaryFile()
50 PreprocessorLexer *Preprocessor::getCurrentFileLexer() const { in getCurrentFileLexer()
69 bool Preprocessor::EnterSourceFile(FileID FID, ConstSearchDirIterator CurDir, in EnterSourceFile()
113 void Preprocessor::EnterSourceFileWithLexer(Lexer *TheLexer, in EnterSourceFileWithLexer()
151 void Preprocessor::EnterMacro(Token &Tok, SourceLocation ILEnd, in EnterMacro()
180 void Preprocessor::EnterTokenStream(const Token *Toks, unsigned NumToks, in EnterTokenStream()
247 void Preprocessor::PropagateLineStartLeadingSpaceInfo(Token &Result) { in PropagateLineStartLeadingSpaceInfo()
[all …]
H A DMacroArgs.cpp16 #include "clang/Lex/Preprocessor.h"
26 bool VarargsElided, Preprocessor &PP) { in create()
78 void MacroArgs::destroy(Preprocessor &PP) { in destroy()
84 // Add this to the preprocessor's free list. in destroy()
89 /// deallocate - This should only be called by the Preprocessor when managing
137 Preprocessor &PP) { in invokedWithVariadicArgument()
147 Preprocessor &PP) const { in ArgNeedsPreexpansion()
162 Preprocessor &PP) { in getPreExpArgument()
205 /// preprocessor operator. If Charify is true, then it should be turned into
209 Preprocessor &PP, bool Charify, in StringifyArgument()
/freebsd/contrib/file/magic/Magdir/
H A Dtroff9 0 search/1 .\\" troff or preprocessor input text
12 0 search/1 '\\" troff or preprocessor input text
15 0 search/1 '.\\" troff or preprocessor input text
18 0 search/1 \\" troff or preprocessor input text
21 #0 search/1 ''' troff or preprocessor input text
23 0 regex/20l \^\\.[A-Za-z][A-Za-z0-9][\ \t] troff or preprocessor input text
26 0 regex/20l \^\\.[A-Za-z][A-Za-z0-9]$ troff or preprocessor input text
/freebsd/contrib/llvm-project/clang/include/clang/Lex/
H A DCodeCompletionHandler.h1 //===--- CodeCompletionHandler.h - Preprocessor code completion -*- C++ -*-===//
10 // code-completion callbacks for the preprocessor.
24 /// completion within the preprocessor.
29 /// Callback invoked when performing code completion for a preprocessor
32 /// This callback will be invoked when the preprocessor processes a '#' at the
35 /// \param InConditional Whether we're inside a preprocessor conditional
40 /// code that was excluded due to preprocessor conditionals.
50 /// Callback invoked when performing code completion in a preprocessor
H A DMacroArgs.h24 class Preprocessor; variable
52 /// Preprocessor owns which we use to avoid thrashing malloc/free.
68 bool VarargsElided, Preprocessor &PP);
72 void destroy(Preprocessor &PP);
76 bool ArgNeedsPreexpansion(const Token *ArgTok, Preprocessor &PP) const;
91 getPreExpArgument(unsigned Arg, Preprocessor &PP);
117 bool invokedWithVariadicArgument(const MacroInfo *const MI, Preprocessor &PP);
121 /// preprocessor operator. If Charify is true, then it should be turned into
125 Preprocessor &PP, bool Charify,
130 /// deallocate - This should only be called by the Preprocessor when managing
H A DTokenLexer.h23 class Preprocessor; variable
31 friend class Preprocessor; variable
40 /// The current preprocessor object we are expanding for.
41 Preprocessor &PP;
47 /// the preprocessor, or some other buffer that we may or may not own
49 /// Note that if it points into Preprocessor's cache buffer, the Preprocessor
109 MacroArgs *ActualArgs, Preprocessor &pp) in TokenLexer()
118 bool ownsTokens, bool isReinject, Preprocessor &pp) in TokenLexer()
151 /// preprocessor directive.
238 Preprocessor &PP);
H A DPPEmbedParameters.h9 // Defines all of the preprocessor directive parmeters for #embed
22 /// Preprocessor extension embed parameter "clang::offset"
32 /// Preprocessor standard embed parameter "limit"
42 /// Preprocessor standard embed parameter "prefix"
52 /// Preprocessor standard embed parameter "suffix"
62 /// Preprocessor standard embed parameter "if_empty"
H A DPreprocessor.h1 //===- Preprocessor.h - C Language Family Preprocessor ----------*- C++ -*-===//
10 /// Defines the clang::Preprocessor interface.
135 /// know anything about preprocessor-level issues like the \#include stack,
137 class Preprocessor {
157 /// objects internal to the Preprocessor.
222 // State that is set before the preprocessor begins.
227 // State that changes while the preprocessor runs:
230 /// Whether the preprocessor owns the header search object.
237 /// when parsing preprocessor directives.
264 /// preprocessor. It is declared/expanded here because its role/lifetime is
[all …]
H A DDependencyDirectivesScanner.h11 /// minimum necessary preprocessor directives for evaluating includes. It
13 /// conditional preprocessor logic that contains one of those.
57 /// Represents the kind of preprocessor directive or a module declaration that
93 /// scanning. It's used to track various preprocessor directives that could
108 /// Scan the input for the preprocessor directives that might have
111 /// This function ignores all non-preprocessor code and anything that
H A DPreprocessorOptions.h65 /// used in preprocessor initialization to InitializePreprocessor().
75 /// Initialize the preprocessor with the compiler and target specific
148 /// When enabled, preprocessor is in a mode for parsing a single file only.
151 /// in preprocessor directive conditions it causes all blocks to be parsed so
155 /// When enabled, the preprocessor will construct editor placeholder tokens.
192 /// Function for getting the dependency preprocessor directives of a file.
195 /// source input is scanned for the preprocessor directives that might have an
205 /// Set up preprocessor for RunAnalysis action.
/freebsd/contrib/llvm-project/clang/include/clang/Analysis/
H A DMacroExpansionContext.h14 #include "clang/Lex/Preprocessor.h"
27 /// Preprocessor. It means that it can track source locations from a single
71 /// \remark MacroExpansionContext object must outlive the Preprocessor
80 /// Register the necessary callbacks to the Preprocessor to record the
82 /// outlives the given Preprocessor.
83 void registerForPreprocessor(Preprocessor &PP);
118 Preprocessor *PP = nullptr;
122 /// This callback is called by the preprocessor.
/freebsd/contrib/ncurses/ncurses/tty/
H A DMKexpanded.sh40 preprocessor="$1"
42 preprocessor="cc -E"
46 preprocessor="$preprocessor $*"
48 preprocessor="$preprocessor -DHAVE_CONFIG_H -I. -I../include"
129 $preprocessor $TMP 2>/dev/null | \
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DMacroPPCallbacks.h22 class Preprocessor; variable
30 /// Preprocessor.
31 Preprocessor &PP;
63 /// Use the passed preprocessor to write the macro name and value from the
69 /// \param PP Preprocessor.
73 const MacroInfo &MI, Preprocessor &PP,
90 MacroPPCallbacks(CodeGenerator *Gen, Preprocessor &PP);
H A DCoverageMappingGen.h19 #include "clang/Lex/Preprocessor.h"
34 class Preprocessor; variable
40 PPIfElse, // Preprocessor #if/#else ...
66 /// the preprocessor.
77 // updated every time Preprocessor::Lex lexes a new token.
90 bool HandleComment(Preprocessor &PP, SourceRange Range) override;
128 static CoverageSourceInfo *setUpCoverageCallbacks(Preprocessor &PP);
/freebsd/contrib/llvm-project/clang/include/clang/Tooling/Syntax/
H A DTokens.h8 // Record tokens that a preprocessor emits and define operations to map between
9 // the tokens written in a file and tokens produced by the preprocessor.
44 class Preprocessor; variable
151 /// 1. Expanded tokens: tokens produced by the preprocessor after all macro
183 /// All tokens produced by the preprocessor after all macro replacements,
238 /// directives or disabled preprocessor branches.
264 /// An expansion produced by the preprocessor, includes macro expansions and
265 /// preprocessor directives. Preprocessor always maps a non-empty range of
278 /// a preprocessor directive) return the subrange of expanded tokens that the
315 /// expanded tokens. Represents macro expansions, preprocessor directives,
[all …]
/freebsd/usr.bin/mkdep/
H A Dmkdep.158 The user has the ability to change the preprocessor and preprocessor options
62 as the preprocessor and to ignore system
106 Specifies the preprocessor to use.
109 Specifies the non-CFLAGS options for the preprocessor.
/freebsd/contrib/llvm-project/clang/lib/Format/
H A DUnwrappedLineParser.h45 /// Whether this \c UnwrappedLine is part of a preprocessor directive.
255 // Compute hash of the current preprocessor branch.
305 // Preprocessor directives are parsed out-of-order from other unwrapped lines.
306 // Thus, we need to keep a list of preprocessor directives to be reported
311 // Usually points to \c &Lines. While parsing a preprocessor directive when
344 // Represents preprocessor branch type, so we can find matching
348 PP_Unreachable // #if 0 or a conditional preprocessor block inside #if 0
357 // Keeps a stack of currently active preprocessor branching directives.
361 // of preprocessor branches that can be taken.
363 // branches) for each nesting level of preprocessor branches.
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/Rewrite/Frontend/
H A DRewriters.h19 class Preprocessor; variable
23 void RewriteMacrosInInput(Preprocessor &PP, raw_ostream *OS);
26 void DoRewriteTest(Preprocessor &PP, raw_ostream *OS);
29 void RewriteIncludesInInput(Preprocessor &PP, raw_ostream *OS,
/freebsd/contrib/unifdef/
H A Dunifdef.137 .Nd remove preprocessor conditionals from code
186 It spots unusually-formatted preprocessor directives
239 preprocessor directives,
290 a preprocessor directive that spans more than one line,
368 preprocessor directive controlling expressions.
463 Obfuscated preprocessor control line
472 Unrecognized preprocessor directive
515 so preprocessor directives split across more than one physical line
/freebsd/contrib/llvm-project/clang/lib/Frontend/Rewrite/
H A DInclusionRewriter.cpp18 #include "clang/Lex/Preprocessor.h"
30 /// created by preprocessor callbacks.
37 Preprocessor &PP; ///< Used to find inclusion directives.
41 llvm::MemoryBufferRef PredefinesBuffer; ///< The preprocessor predefines.
56 InclusionRewriter(Preprocessor &PP, raw_ostream &OS, bool ShowLineMarkers,
107 InclusionRewriter::InclusionRewriter(Preprocessor &PP, raw_ostream &OS, in InclusionRewriter()
129 // http://gcc.gnu.org/onlinedocs/cpp/Preprocessor-Output.html in WriteLineInfo()
152 /// FileChanged - Whenever the preprocessor enters or exits a #include file
181 /// This should be called whenever the preprocessor encounters include
520 // the whole #include could be inside a preprocessor conditional in Process()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Index/
H A DIndexingAction.cpp16 #include "clang/Lex/Preprocessor.h"
104 std::shared_ptr<Preprocessor> PP;
110 std::shared_ptr<Preprocessor> PP, in IndexASTConsumer()
173 const IndexingOptions &Opts, std::shared_ptr<Preprocessor> PP, in createIndexingASTConsumer()
181 const IndexingOptions &Opts, std::shared_ptr<Preprocessor> PP) { in createIndexingASTConsumer()
232 static void indexPreprocessorMacros(Preprocessor &PP, in indexPreprocessorMacros()
242 static void indexPreprocessorModuleMacros(Preprocessor &PP, in indexPreprocessorModuleMacros()
273 void index::indexTopLevelDecls(ASTContext &Ctx, Preprocessor &PP, in indexTopLevelDecls()
/freebsd/contrib/llvm-project/clang/include/clang/Index/
H A DIndexingAction.h16 #include "clang/Lex/Preprocessor.h"
39 std::shared_ptr<Preprocessor> PP);
43 const IndexingOptions &Opts, std::shared_ptr<Preprocessor> PP,
58 void indexTopLevelDecls(ASTContext &Ctx, Preprocessor &PP,

12345678910>>...26