Home
last modified time | relevance | path

Searched refs:macro (Results 1 – 25 of 86) sorted by relevance

1234

/device/generic/vulkan-cereal/third-party/angle/src/compiler/preprocessor/
DMacroExpander.cpp77 for (const std::shared_ptr<Macro> &macro : mExpander->mMacrosToReenable) in ~ScopedMacroReenabler() local
81 ASSERT(macro->name.substr() != ""); in ~ScopedMacroReenabler()
82 macro->disabled = false; in ~ScopedMacroReenabler()
171 std::shared_ptr<Macro> macro = iter->second; in lex() local
172 if (macro->disabled) in lex()
181 macro->expansionCount++; in lex()
182 if ((macro->type == Macro::kTypeFunc) && !isNextTokenLeftParen()) in lex()
186 macro->expansionCount--; in lex()
190 pushMacro(macro, *token); in lex()
246 bool MacroExpander::pushMacro(std::shared_ptr<Macro> macro, const Token &identifier) in pushMacro() argument
[all …]
DMacro.cpp34 std::shared_ptr<Macro> macro = std::make_shared<Macro>(); in PredefineMacro() local
35 macro->predefined = true; in PredefineMacro()
36 macro->type = Macro::kTypeObj; in PredefineMacro()
37 macro->name = name; in PredefineMacro()
38 macro->replacements.push_back(token); in PredefineMacro()
40 (*macroSet)[name] = macro; in PredefineMacro()
DMacroExpander.h43 bool pushMacro(std::shared_ptr<Macro> macro, const Token &identifier);
46 bool expandMacro(const Macro &macro, const Token &identifier, std::vector<Token> *replacements);
49 bool collectMacroArgs(const Macro &macro,
53 void replaceMacroParams(const Macro &macro,
65 std::shared_ptr<Macro> macro; member
DDirectiveParser.cpp305 std::shared_ptr<Macro> macro = std::make_shared<Macro>(); in parseDefine() local
306 macro->type = Macro::kTypeObj; in parseDefine()
307 macro->name = token->text; in parseDefine()
313 macro->type = Macro::kTypeFunc; in parseDefine()
320 if (std::find(macro->parameters.begin(), macro->parameters.end(), token->text) != in parseDefine()
321 macro->parameters.end()) in parseDefine()
328 macro->parameters.push_back(token->text); in parseDefine()
347 macro->replacements.push_back(*token); in parseDefine()
350 if (!macro->replacements.empty()) in parseDefine()
354 macro->replacements.front().setHasLeadingSpace(false); in parseDefine()
[all …]
/device/generic/vulkan-cereal/protocols/vulkan/scripts/spec_tools/
Dentity_db.py18 'macro': data.macro,
231 def findMacroAndEntity(self, macro, entity): argument
235 return self._byMacroAndEntity.get((macro, entity))
273 if data.macro == 'slink':
371 def shouldBeRecognized(self, macro, entity_name): argument
375 return self.isLinkedMacro(macro)
381 def isLinkedMacro(self, macro): argument
383 return macro in self._linkedMacros
385 def isValidMacro(self, macro): argument
387 if macro not in self._categoriesByMacro:
[all …]
Dmacro_checker_file.py328 self.macro = None
499 … omitted for this reference to a known entity in category "{}".'.format(data.macro, data.category),
502 replacement=self.makeMacroMarkup(data.macro))
536 self.macro = match.group('macro')
652 macro = self.macro
657 if self.checker.entity_db.isLinkedMacro(macro):
670 if macro in NON_EXISTENT_MACROS:
672 macro), group='macro')
680 if macro == 'pname':
707 macro = self.macro
[all …]
Dmacro_checker.py58 macros_pattern = '|'.join((re.escape(macro)
59 for macro in self.entity_db.macros))
97 def findMacroAndEntity(self, macro, entity): argument
102 return self.entity_db.findMacroAndEntity(macro, entity)
134 def isLinkedMacro(self, macro): argument
139 return self.entity_db.isLinkedMacro(macro)
/device/generic/vulkan-cereal/protocols/vulkan/xml/spec_tools/
Dentity_db.py18 'macro': data.macro,
231 def findMacroAndEntity(self, macro, entity): argument
235 return self._byMacroAndEntity.get((macro, entity))
273 if data.macro == 'slink':
371 def shouldBeRecognized(self, macro, entity_name): argument
375 return self.isLinkedMacro(macro)
381 def isLinkedMacro(self, macro): argument
383 return macro in self._linkedMacros
385 def isValidMacro(self, macro): argument
387 if macro not in self._categoriesByMacro:
[all …]
Dmacro_checker_file.py328 self.macro = None
499 … omitted for this reference to a known entity in category "{}".'.format(data.macro, data.category),
502 replacement=self.makeMacroMarkup(data.macro))
536 self.macro = match.group('macro')
652 macro = self.macro
657 if self.checker.entity_db.isLinkedMacro(macro):
670 if macro in NON_EXISTENT_MACROS:
672 macro), group='macro')
680 if macro == 'pname':
707 macro = self.macro
[all …]
Dmacro_checker.py58 macros_pattern = '|'.join((re.escape(macro)
59 for macro in self.entity_db.macros))
97 def findMacroAndEntity(self, macro, entity): argument
102 return self.entity_db.findMacroAndEntity(macro, entity)
134 def isLinkedMacro(self, macro): argument
139 return self.entity_db.isLinkedMacro(macro)
/device/generic/vulkan-cereal/protocols/vulkan/xml/
Dcheck_spec_links.py88 def shouldBeRecognized(self, macro, entity_name): argument
90 if super().shouldBeRecognized(macro, entity_name):
94 if macro in self._conditionally_recognized and self.likelyRecognizedEntity(entity_name):
121 … if data.macro[0] == self.macro[0] and data.macro[1:] == 'link' and self.macro[1:] == 'name':
/device/generic/vulkan-cereal/protocols/vulkan/scripts/
Dcheck_spec_links.py100 def shouldBeRecognized(self, macro, entity_name): argument
102 if super().shouldBeRecognized(macro, entity_name):
106 if macro in self._conditionally_recognized and self.likelyRecognizedEntity(entity_name):
133 … if data.macro[0] == self.macro[0] and data.macro[1:] == 'link' and self.macro[1:] == 'name':
/device/generic/vulkan-cereal/third-party/angle/tools/flex-bison/third_party/m4sugar/
Dm4sugar.m480 # Rename the macro SRC to DST.
220 # This macro ensures that EXPRESSION evaluates to true, and exits if
240 # Within m4, the macro is a no-op. This macro really matters
305 # In the case of a macro `FOO', you don't want to check `m4_ifval(FOO,
310 # So you want the variation `m4_ifset' that expects a macro name as $1.
311 # If this macro is both defined and defined to a non empty value, then
323 # macro(
327 # Writing one macro in terms of the other causes extra overhead, so
398 # All the values are optional, and the macro is robust to active
423 # All the values are optional, and the macro is robust to active symbols
[all …]
Dforeach.m45 # GNU M4 1.6 by requiring more memory and macro expansions.
43 # than $@ recursion to operate on the list. This involves more macro
55 # quadratic behavior (ie. it lacks the macro __m4_version__).
67 # that temporary macro. Thus, the recursion is done in m4_for without
88 # Use m4_for to create a temporary macro in terms of a boilerplate
90 # odd, then rounding the last $# up in the temporary macro is
119 # We build the temporary macro _m4_b:
146 # The result is DEFAULT if no tests passed. This macro allows
213 # This macro invokes all its arguments (in sequence, of course). It is
217 # Here, we use the temporary macro _m4_do, defined as
[all …]
/device/generic/vulkan-cereal/protocols/vulkan/appendices/
Dboilerplate.txt69 [open,refpage='VKAPI_ATTR',desc='Vulkan function attribute macro',type='freeform',anchor='boilerpla…
71 dname:VKAPI_ATTR is a macro placed before the return type in Vulkan API
73 This macro controls calling conventions for C++11 and GCC/Clang-style
77 [open,refpage='VKAPI_CALL',desc='Vulkan function calling conventions macro',type='freeform',anchor=…
79 dname:VKAPI_CALL is a macro placed after the return type in Vulkan API
81 This macro controls calling conventions for MSVC-style compilers.
84 [open,refpage='VKAPI_PTR',desc='Vulkan function pointer calling conventions macro',type='freeform',…
86 dname:VKAPI_PTR is a macro placed between the '(' and '*' in Vulkan API
88 This macro also controls calling conventions, and typically has the same
113 If the dname:VK_NO_STDINT_H macro is defined by the application at compile
[all …]
/device/generic/vulkan-cereal/protocols/vulkan/style/
Dmarkup.txt581 the command name in the macro argument. Example:
583 | fname{cl} | Formats the macro argument like flink{cl}. Does not
587 Only use this macro <<markup-macros-api-name, when
589 | ftext{cl} | Formats the macro argument like fname{cl}. May contain
593 Only use this macro <<markup-macros-api-text, when
596 of the structure or handle in the macro argument. Example:
598 | sname{cl} | Formats the macro argument like slink{cl}. Does not
604 Only use this macro <<markup-macros-api-name, when
606 | stext{cl} | Formats the macro argument like sname{cl}. May contain
610 Only use this macro <<markup-macros-api-text, when
[all …]
/device/google/contexthub/firmware/os/drivers/intersil_isl29034/
DREADME23 An optional macro is available to specify the I2C address of ISL29034 device.
24 If the macro is not defined, the default value 0x44 would be used.
28 An optional macro is available to enable debug information:
/device/google/contexthub/firmware/lib/libc/
Darm_asm.h66 .macro RETURN cond=
74 .macro optpld base, offset=#0
/device/generic/vulkan-cereal/third-party/googletest/googletest/
DREADME.md149 `GTEST_IS_THREADSAFE` macro to see whether this is the case (yes if the macro is
196 macro of the same name will clash if you `#include` both definitions. In case a
197 GoogleTest macro clashes with another library, you can force GoogleTest to
198 rename its macro to avoid the conflict.
200 Specifically, if both GoogleTest and some other code define macro FOO, you can
205 to the compiler flags to tell GoogleTest to change the macro's name from `FOO`
/device/generic/vulkan-cereal/base/msvc-posix-compat/
DCMakeLists.txt16 # Msvc redefines macro's to inject compatibility.
19 PUBLIC "-Wno-macro-redefined"
/device/generic/vulkan-cereal/
DCMakeLists.txt51 # TODO(kaiyili, b/179477624): Add Linux specific Vulkan platform macro definitions
67 # This macro should be called at the end of any CMakeLists.txt file that defines test targets.
68 macro("set_test_include_files")
/device/generic/vulkan-cereal/protocols/vulkan/
Dstyleguide.txt177 `apiext:` macro, since that macro now styles the extension name argument
182 New Extensions>> section to require use of the `apiext:` macro for links
216 * 2021-03-31 - Update description of the code{cl} macro in the
224 undefined{cl} macro to further clarify its purpose and uses (internal
297 the undefined{cl} macro should always be used.
348 * 2016-08-30 - Remove mustnot{cl} and shouldnot{cl} macro definitions, which
372 * 2016-02-26 - Replace use of the "maynot{cl}" macro with "may{cl} not".
/device/generic/vulkan-cereal/third-party/googletest/googletest/cmake/
Dinternal_utils.cmake21 # This must be a macro(), as inside a function string() can only
23 macro(fix_default_compiler_settings_)
59 macro(config_compiler_and_linker)
99 # Until version 4.3.2, GCC doesn't define a macro to indicate
116 # Until version 9.0, Visual Age doesn't define a macro to indicate
/device/google/sunfish/json-c/
DChangeLog14 * Eliminate the mc_abort() function and MC_ABORT macro.
59 * Make it safe to delete keys while iterating with the json_object_object_foreach macro.
76 json_object_object_foreachC macro.
190 * fix pointer arithmetic bug for error pointer check in is_error() macro
/device/google/coral/json-c/
DChangeLog14 * Eliminate the mc_abort() function and MC_ABORT macro.
59 * Make it safe to delete keys while iterating with the json_object_object_foreach macro.
76 json_object_object_foreachC macro.
190 * fix pointer arithmetic bug for error pointer check in is_error() macro

1234