Home
last modified time | relevance | path

Searched +full:is +full:- +full:module (Results 1 – 25 of 1309) sorted by relevance

12345678910>>...53

/external/clang/docs/
DModules.rst10is built using a number of software libraries, including libraries supplied by the platform, inter…
12 .. code-block:: c
16 The implementation is handled separately by linking against the appropriate library. For example, b…
18 Modules provide an alternative, simpler way to use software libraries that provides better compile-
21 -------------------------------
22 The ``#include`` mechanism provided by the C preprocessor is a very poor way to access the API of a…
24 * **Compile-time scalability**: Each time a header is included, the
29 and *M* headers included in each translation unit, the compiler is
31 shared among multiple translation units. C++ is particularly bad,
42 library header: the result is a horrific cascade of failures in the
[all …]
/external/python/cpython3/Doc/c-api/
Dmodule.rst5 Module Objects
6 --------------
8 .. index:: pair: object; module
13 .. index:: single: ModuleType (in module types)
15 This instance of :c:type:`PyTypeObject` represents the Python module type. This
16 is exposed to Python programs as ``types.ModuleType``.
21 Return true if *p* is a module object, or a subtype of a module object.
27 Return true if *p* is a module object, but not a subtype of
34 single: __name__ (module attribute)
35 single: __doc__ (module attribute)
[all …]
/external/clang/include/clang/Lex/
DModuleMap.h1 //===--- ModuleMap.h - Describe the layout of modules -----------*- C++ -*-===//
5 // This file is distributed under the University of Illinois Open Source
8 //===----------------------------------------------------------------------===//
11 // module as it relates to headers.
13 //===----------------------------------------------------------------------===//
20 #include "clang/Basic/Module.h"
39 /// \brief A mechanism to observe the actions of the module map parser as it
40 /// reads module map files.
45 /// \brief Called when a module map file has been read.
50 /// \param IsSystem Whether this is a module map from a system include path.
[all …]
/external/clang/include/clang/Basic/
DModule.h1 //===--- Module.h - Describe a module ---------------------------*- C++ -*-===//
5 // This file is distributed under the University of Illinois Open Source
8 //===----------------------------------------------------------------------===//
11 /// \brief Defines the clang::Module class, which describes a module in the
14 //===----------------------------------------------------------------------===//
43 /// \brief Describes the name of a module.
46 /// \brief Describes a module or submodule.
47 class Module {
49 /// \brief The name of this module.
52 /// \brief The location of the module definition.
[all …]
/external/python/cpython3/Lib/importlib/
D_bootstrap.py3 This module is NOT meant to be directly imported! It has been designed such
6 work. One should use importlib as the public-facing version of this module.
10 # IMPORTANT: Whenever making changes to this module, be sure to run a top-level
11 # `make regen-importlib` followed by `make` in order to get the frozen version
12 # of the module updated. Not doing so will result in the Makefile to fail for
13 # all others who don't have a ./python around to freeze the module
17 # See importlib._setup() for what is injected into the global namespace.
29 # Bootstrap-related code ######################################################
52 # Module-level locking ########################################################
54 # A dict mapping module names to weakrefs of _ModuleLock instances
[all …]
/external/python/cpython2/Lib/test/
Dtest_warnings.py19 def warnings_state(module): argument
32 original_filters = module.filters
34 module.filters = original_filters[:]
35 module.simplefilter("once")
36 warning_tests.warnings = module
40 module.filters = original_filters
56 # The 'warnings' module must be explicitly set so that the proper
58 sys.modules['warnings'] = self.module
72 self.assertTrue(hasattr(self.module, '__all__'))
76 self.assertSetEqual(set(self.module.__all__),
[all …]
/external/python/cpython3/Doc/reference/
Dimport.rst10 Python code in one :term:`module` gains access to the code in another module
11 by the process of :term:`importing` it. The :keyword:`import` statement is
12 the most common way of invoking the import machinery, but it is not the only
13 way. Functions such as :func:`importlib.import_module` and built-in
17 named module, then it binds the results of that search to a name in the local
18 scope. The search operation of the :keyword:`!import` statement is defined as
20 The return value of :func:`__import__` is used to perform the name
25 A direct call to :func:`__import__` performs only the module search and, if
26 found, the module creation operation. While certain side-effects may occur,
31 When an :keyword:`import` statement is executed, the standard builtin
[all …]
/external/python/cpython2/Doc/library/
Dimp.rst2 :mod:`imp` --- Access the :keyword:`import` internals
5 .. module:: imp
11 This module provides an interface to the mechanisms used to implement the
17 .. index:: pair: file; byte-code
19 Return the magic string value used to recognize byte-compiled code files
25 Return a list of 3-element tuples, each describing a particular type of
26 module. Each triple has the form ``(suffix, mode, type)``, where *suffix* is
27 a string to be appended to the module name to form the filename to search
28 for, *mode* is the mode string to pass to the built-in :func:`open` function
30 files), and *type* is the file type, which has one of the values
[all …]
Drunpy.rst1 :mod:`runpy` --- Locating and executing Python modules
4 .. module:: runpy
13 --------------
15 The :mod:`runpy` module is used to locate and run Python modules without
16 importing them first. Its main use is to implement the :option:`-m` command
17 line switch that allows scripts to be located using the Python module
20 The :mod:`runpy` module provides two functions:
26 module: __main__
28 Execute the code of the specified module and return the resulting module
29 globals dictionary. The module's code is first located using the standard
[all …]
/external/python/cpython3/Lib/
Dpyclbr.py1 """Parse a Python module and describe its classes and functions.
7 readmodule_ex(module, path=None)
8 where module is the name of a Python module, and path is an optional
9 list of directories where the module is to be searched. If present,
10 path is prepended to the system search path sys.path. The return value
11 is a dictionary. The keys of the dictionary are the names of the
12 classes and functions defined in the module (including classes that are
14 instances of classes Class and Function. One special key/value pair is
20 module -- name of the module;
21 name -- name of the object;
[all …]
/external/python/cpython3/Doc/howto/
Disolating-extensions.rst10 ``static`` variables, which have process-wide scope. This document
11 describes problems of such per-process state and shows a safer way:
12 per-module state.
14 The document also describes how to switch to per-module state where
17 importantly—accessing per-module state from code.
23 This guide is written for maintainers of :ref:`C-API <c-api-index>` extensions
25 Python itself is used as a library.
31 An *interpreter* is the context in which Python code runs. It contains
38 - in sequence, with several :c:func:`Py_InitializeEx`/:c:func:`Py_FinalizeEx`
40 - in parallel, managing "sub-interpreters" using
[all …]
/external/python/cpython3/Doc/library/
Dimportlib.rst1 :mod:`!importlib` --- The implementation of :keyword:`!import`
4 .. module:: importlib
14 --------------
18 ------------
20 The purpose of the :mod:`importlib` package is three-fold.
22 One is to provide the
25 implementation of :keyword:`!import` which is portable to any Python
26 interpreter. This also provides an implementation which is easier to
36 * :mod:`importlib.metadata` presents access to metadata from third-party
38 * :mod:`importlib.resources` provides routines for accessing non-code
[all …]
Dimp.rst1 :mod:`imp` --- Access the :ref:`import <importsystem>` internals
4 .. module:: imp
10 .. deprecated-removed:: 3.4 3.12
11 The :mod:`imp` module is deprecated in favor of :mod:`importlib`.
15 --------------
17 This module provides an interface to the mechanisms used to implement the
23 .. index:: pair: file; byte-code
25 Return the magic string value used to recognize byte-compiled code files
34 Return a list of 3-element tuples, each describing a particular type of
35 module. Each triple has the form ``(suffix, mode, type)``, where *suffix* is
[all …]
Drunpy.rst1 :mod:`runpy` --- Locating and executing Python modules
4 .. module:: runpy
11 --------------
13 The :mod:`runpy` module is used to locate and run Python modules without
14 importing them first. Its main use is to implement the :option:`-m` command
15 line switch that allows scripts to be located using the Python module
18 Note that this is *not* a sandbox module - all code is executed in the
24 If that limitation is not acceptable for a given use case, :mod:`importlib`
25 is likely to be a more suitable choice than this module.
27 The :mod:`runpy` module provides two functions:
[all …]
/external/python/cpython2/Doc/c-api/
Dmodule.rst5 Module Objects
6 --------------
8 .. index:: object: module
10 There are only a few functions special to module objects.
15 .. index:: single: ModuleType (in module types)
17 This instance of :c:type:`PyTypeObject` represents the Python module type. This
18 is exposed to Python programs as ``types.ModuleType``.
23 Return true if *p* is a module object, or a subtype of a module object.
31 Return true if *p* is a module object, but not a subtype of
40 single: __name__ (module attribute)
[all …]
/external/python/cpython3/Python/clinic/
Dsysmodule.c.h6 "addaudithook($module, /, hook)\n"
7 "--\n"
15 sys_addaudithook_impl(PyObject *module, PyObject *hook);
18 sys_addaudithook(PyObject *module, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) in sys_addaudithook() argument
31 return_value = sys_addaudithook_impl(module, hook); in sys_addaudithook()
38 "displayhook($module, object, /)\n"
39 "--\n"
47 "excepthook($module, exctype, value, traceback, /)\n"
48 "--\n"
56 sys_excepthook_impl(PyObject *module, PyObject *exctype, PyObject *value,
[all …]
/external/clang/include/clang/Serialization/
DModuleManager.h1 //===--- ModuleManager.cpp - Module Manager ---------------------*- C++ -*-===//
5 // This file is distributed under the University of Illinois Open Source
8 //===----------------------------------------------------------------------===//
13 //===----------------------------------------------------------------------===//
19 #include "clang/Serialization/Module.h"
37 /// \brief The chain of non-module PCH files. The first entry is the one named
38 /// by the user, the last one is the one that doesn't depend on anything
42 // \brief The roots of the dependency DAG of AST files. This is used
43 // to implement short-circuiting logic when running DFS over the dependencies.
53 /// \brief Knows how to unwrap module containers.
[all …]
/external/libchrome/mojo/public/tools/bindings/pylib/mojom/generate/
Dtranslate.py2 # Use of this source code is governed by a BSD-style license that can be
7 This module converts the parse tree to the AST we use for code generation. The
8 main entry point is OrderedModule, which gets passed the parser
16 import mojom.generate.module as mojom
46 '"%s" is used more than once within the scope "%s".' %
69 base_kind = _MapKind(kind[0:-1])
71 # cross-reference is established.
73 if re.split('[^a-z]', base_kind, 1)[0] not in reference_kinds:
80 return 'm[' + _MapKind(kind[lbracket+1:-1]) + '][' + _MapKind(value) + ']'
84 return 'a' + kind[lbracket+1:-1] + ':' + _MapKind(typename)
[all …]
/external/clang/test/Modules/
Dmerge-using-decls.cpp1 // RUN: rm -rf %t
2 // RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -x c++ -I%S/Inputs/merg…
3 // RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -x c++ -I%S/Inputs/merg…
14 int value; // expected-note 0-1{{target of using}}
15 typedef int type; // expected-note 0-1{{target of using}}
19 int k = T().v + T().value; // expected-note 0-2{{instantiation of}} in Use()
27 …return Use<C<T> >() + Use<D<T> >() + Use<E<T> >() + Use<F<T> >(); // expected-note 0-2{{instantiat… in UseAll()
34 // Which of these two sets of diagnostics is chosen is not important. It's OK
40 // expected-error@b.h:* {{'E::value' from module 'B' is not present in definition of 'E<T>' in modu…
41 // expected-error@b.h:* {{'E::v' from module 'B' is not present in definition of 'E<T>' in module '…
[all …]
/external/python/cpython2/Lib/
Dimputil.py13 warnpy3k("the imputil module has been removed in Python 3.0", stacklevel=2)
16 # note: avoid importing non-builtin modules
66 # so let's just load the OS-related facilities.
70 # This is the Importer that we use for grabbing stuff from the
72 if fs_imp is None:
78 # The default will import dynamic-load modules first, followed by
87 """Python calls this hook to locate and import a module."""
94 # if there is a parent, then its importer should manage this import
96 module = parent.__importer__._do_import(parent, parts, fromlist)
97 if module:
[all …]
/external/python/cpython3/Doc/tutorial/
Dmodules.rst1 .. _tut-modules:
11 is known as creating a *script*. As your program gets longer, you may want to
17 script or in an interactive instance of the interpreter. Such a file is called a
18 *module*; definitions from a module can be *imported* into other modules or into
19 the *main* module (the collection of variables that you have access to in a
22 A module is a file containing Python definitions and statements. The file name
23 is the module name with the suffix :file:`.py` appended. Within a module, the
24 module's name (as a string) is available as the value of the global variable
28 # Fibonacci numbers module
45 Now enter the Python interpreter and import this module with the following
[all …]
/external/python/cpython2/Doc/tutorial/
Dmodules.rst1 .. _tut-modules:
11 is known as creating a *script*. As your program gets longer, you may want to
17 script or in an interactive instance of the interpreter. Such a file is called a
18 *module*; definitions from a module can be *imported* into other modules or into
19 the *main* module (the collection of variables that you have access to in a
22 A module is a file containing Python definitions and statements. The file name
23 is the module name with the suffix :file:`.py` appended. Within a module, the
24 module's name (as a string) is available as the value of the global variable
28 # Fibonacci numbers module
44 Now enter the Python interpreter and import this module with the following
[all …]
/external/cronet/base/profiler/
Dmodule_cache.h2 // Use of this source code is governed by a BSD-style license that can be
26 // Converts module id to match the id that the Google-internal symbol server
31 // Supports cached lookup of modules by address, with caching based on module
34 // Cached lookup is necessary on Mac for performance, due to an inefficient
37 // Cached lookup is beneficial on Windows to minimize use of the loader
38 // lock. Note however that the cache retains a handle to looked-up modules for
43 // Module represents a binary module (executable or library) and its
45 class BASE_EXPORT Module {
47 Module() = default;
48 virtual ~Module() = default;
[all …]
/external/deqp-deps/SPIRV-Tools/source/opt/
Dir_context.h7 // http://www.apache.org/licenses/LICENSE-2.0
10 // distributed under the License is distributed on an "AS IS" BASIS,
41 #include "source/opt/module.h"
97 // Creates an |IRContext| that contains an owned |Module|
102 module_(new Module()), in IRContext()
114 module_->SetContext(this); in IRContext()
117 IRContext(spv_target_env env, std::unique_ptr<Module>&& m, MessageConsumer c) in IRContext()
132 module_->SetContext(this); in IRContext()
138 Module* module() const { return module_.get(); } in module() function
140 // Returns a vector of pointers to constant-creation instructions in this
[all …]
/external/angle/third_party/spirv-tools/src/source/opt/
Dir_context.h7 // http://www.apache.org/licenses/LICENSE-2.0
10 // distributed under the License is distributed on an "AS IS" BASIS,
41 #include "source/opt/module.h"
97 // Creates an |IRContext| that contains an owned |Module|
102 module_(new Module()), in IRContext()
114 module_->SetContext(this); in IRContext()
117 IRContext(spv_target_env env, std::unique_ptr<Module>&& m, MessageConsumer c) in IRContext()
132 module_->SetContext(this); in IRContext()
138 Module* module() const { return module_.get(); } in module() function
140 // Returns a vector of pointers to constant-creation instructions in this
[all …]

12345678910>>...53