Home
last modified time | relevance | path

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

12345678910>>...27

/freebsd-src/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-src/contrib/llvm-project/clang/lib/Lex/
H A DPPCaching.cpp9 // This file implements pieces of the Preprocessor interface that manage the
14 #include "clang/Lex/Preprocessor.h"
18 // until CommitBacktrackedTokens() or Backtrack() is called, the Preprocessor
20 // make the Preprocessor re-lex the same tokens.
25 void Preprocessor::EnableBacktrackAtThisPos() { in EnableBacktrackAtThisPos()
32 void Preprocessor::CommitBacktrackedTokens() { in CommitBacktrackedTokens()
38 // Make Preprocessor re-lex the tokens that were lexed since
40 void Preprocessor::Backtrack() { in Backtrack()
48 void Preprocessor::CachingLex(Token &Result) { in CachingLex()
54 "should not use token caching within the preprocessor"); in CachingLex()
[all …]
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()
95 // deferred to Preprocessor::Initialize(). in Preprocessor()
172 Preprocessor::~Preprocessor() { in ~Preprocessor()
79 Preprocessor::Preprocessor(std::shared_ptr<PreprocessorOptions> PPOpts, Preprocessor() function in Preprocessor
[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
[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
[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-src/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-src/contrib/llvm-project/clang/include/clang/Lex/
H A DPreprocessorLexer.h28 class Preprocessor; variable
34 friend class Preprocessor;
36 // Preprocessor object controlling lexing.
37 Preprocessor *PP = nullptr;
46 // Context-specific lexing flags set by the preprocessor.
65 /// 5. No callbacks are made into the preprocessor.
79 PreprocessorLexer(Preprocessor *pp, FileID fid);
136 /// preprocessor directive.
144 /// Return the preprocessor object for this lexer.
145 Preprocessor *getPP() const { return PP; } in getPP()
[all …]
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 DVariadicMacroSupport.h18 #include "clang/Lex/Preprocessor.h"
22 class Preprocessor; variable
24 /// An RAII class that tracks when the Preprocessor starts and stops lexing
28 /// of the Preprocessor class allows it to access PP's cached identifiers
31 const Preprocessor &PP;
36 VariadicMacroScopeGuard(const Preprocessor &P) in VariadicMacroScopeGuard()
45 /// Client code should call this function just before the Preprocessor is
52 /// Client code should call this function as soon as the Preprocessor has
74 VAOptDefinitionContext(Preprocessor &PP) in VAOptDefinitionContext()
156 VAOptExpansionContext(Preprocessor &PP) in VAOptExpansionContext()
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 directive
[all...]
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 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
/freebsd-src/contrib/llvm-project/clang/include/clang/Frontend/
H A DUtils.h43 class Preprocessor; variable
48 /// InitializePreprocessor - Initialize the preprocessor getting it and the
50 void InitializePreprocessor(Preprocessor &PP, const PreprocessorOptions &PPOpts,
56 void DoPrintPreprocessedInput(Preprocessor &PP, raw_ostream *OS,
67 virtual void attachToPreprocessor(Preprocessor &PP);
100 /// Builds a dependency file when attached to a Preprocessor (for includes) and
108 void attachToPreprocessor(Preprocessor &PP) override;
158 void attachToPreprocessor(Preprocessor &PP) override;
166 /// it to the given preprocessor.
167 void AttachDependencyGraphGen(Preprocessor &PP, StringRef OutputFile,
[all …]
/freebsd-src/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-src/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;
40 PPIfElse, // Preprocessor #if/#else ...
66 /// the preprocessor.
77 // updated every time Preprocessor::Lex lexes a new token. in getSkippedRanges()
90 bool HandleComment(Preprocessor &PP, SourceRange Range) override;
128 static CoverageSourceInfo *setUpCoverageCallbacks(Preprocessor &PP);
29 class Preprocessor; global() variable
/freebsd-src/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-src/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 directiv
[all...]
/freebsd-src/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-src/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 branche
[all...]
/freebsd-src/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-src/contrib/llvm-project/clang/lib/Frontend/Rewrite/
H A DHTMLPrint.cpp19 #include "clang/Lex/Preprocessor.h"
34 Preprocessor &PP;
38 HTMLPrinter(std::unique_ptr<raw_ostream> OS, Preprocessor &pp, in HTMLPrinter()
49 clang::CreateHTMLPrinter(std::unique_ptr<raw_ostream> OS, Preprocessor &PP, in CreateHTMLPrinter()
78 // If we have a preprocessor, relex the file and syntax highlight. in HandleTranslationUnit()
79 // We might not have a preprocessor if we come from a deserialized AST file, in HandleTranslationUnit()
/freebsd-src/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

12345678910>>...27