Home
last modified time | relevance | path

Searched +refs:clang +refs:format +refs:replace (Results 1 – 25 of 75) sorted by relevance

123

/netbsd-src/external/apache2/llvm/dist/clang/include/clang/Tooling/Refactoring/
H A DAtomicChange.h24 namespace clang {
88 llvm::Error replace(const SourceManager &SM, const CharSourceRange &Range,
94 llvm::Error replace(const SourceManager &SM, SourceLocation Loc,
135 clang::tooling::Replacements Replaces);
161 format::FormatStyle Style = format::getNoStyle();
/netbsd-src/external/apache2/llvm/dist/llvm/utils/
H A Dupdate_cc_test_checks.py39 json_dump_args = [args.clang] + clang_args + ['-fsyntax-only', '-o', '-']
104 common.debug('line {}: found function {}'.format(line+1, func_name), file=sys.stderr)
117 if not args.clang:
119 args.clang = 'clang'
121 args.clang = os.path.join(args.llvm_bin, 'clang')
154 if not distutils.spawn.find_executable(args.clang):
163 [args.clang, '-print-file-name=include']).decode().strip()
183 raw_tool_output = common.invoke_tool(args.clang, clang_args, filename)
245 exec_args = [i.replace(s, subs[s]) if s in i else i for i in exec_args]
253 clang_args = [i.replace(s, subs[s]) if s in i else i for i in clang_args]
[all …]
/netbsd-src/external/apache2/llvm/dist/clang/lib/Tooling/Refactoring/
H A DAtomicChange.cpp14 LLVM_YAML_IS_SEQUENCE_VECTOR(clang::tooling::AtomicChange)
29 const clang::tooling::AtomicChange &E) in NormalizedAtomicChange()
36 clang::tooling::AtomicChange denormalize(const llvm::yaml::IO &) { in denormalize()
45 std::vector<clang::tooling::Replacement> Replaces;
67 template <> struct MappingTraits<clang::tooling::AtomicChange> {
68 static void mapping(IO &Io, clang::tooling::AtomicChange &Doc) { in mapping()
69 MappingNormalization<NormalizedAtomicChange, clang::tooling::AtomicChange> in mapping()
83 namespace clang { namespace
109 const clang::tooling::Replacements &Replaces) { in getRangesForFormating()
113 std::vector<clang::tooling::Range> Ranges; in getRangesForFormating()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/docs/
H A DFuzzingLLVM.rst20 clang-fuzzer
28 __ https://bugs.chromium.org/p/oss-fuzz/issues/list?q=proj-llvm+clang-fuzzer
30 clang-proto-fuzzer
36 This fuzzer accepts clang command line options after `ignore_remaining_args=1`.
37 For example, the following command will fuzz clang with a higher optimization
42 % bin/clang-proto-fuzzer <corpus-dir> -ignore_remaining_args=1 -O3
44 clang-format-fuzzer
47 A |generic fuzzer| that runs clang-format_ on C++ text fragments. Some of the
51 .. _clang-format: https://clang.llvm.org/docs/ClangFormat.html
53 __ https://bugs.chromium.org/p/oss-fuzz/issues/list?q=proj-llvm+clang-format-fuzzer
[all …]
H A DGettingStarted.rst19 C-like languages use the `Clang <https://clang.llvm.org/>`_ front end. This
31 Getting Started <https://clang.llvm.org/get_started.html>`_ page might have more
65 subprojects you'd like to additionally build. Can include any of: clang,
66 clang-tools-extra, libcxx, libcxxabi, libunwind, lldb, compiler-rt, lld,
70 ``-DLLVM_ENABLE_PROJECTS="clang;libcxx;libcxxabi"``.
386 any of the examples below, simply replace each of these names with the
466 ``git format-patch`` to output the diff, and attach it to an email message).
476 formatted properly. We use ``clang-format`` for this, which has git integration
477 through the ``git-clang-format`` script. On some systems, it may already be
479 run it -- the following command will format only the code changed in the most
[all …]
H A DLibFuzzer.rst68 … E.g. if your target can parse several data formats, split it into several targets, one per format.
81clang -g -O1 -fsanitize=fuzzer mytarget.c # Builds the fuzz target w/o san…
82clang -g -O1 -fsanitize=fuzzer,address mytarget.c # Builds the fuzz target with AS…
83clang -g -O1 -fsanitize=fuzzer,signed-integer-overflow mytarget.c # Builds the fuzz target with a …
84clang -g -O1 -fsanitize=fuzzer,memory mytarget.c # Builds the fuzz target with MS…
93 clang -fsanitize=fuzzer-no-link mytarget.c
203 The plan is to eventually replace ``-jobs=N`` and ``-workers=N`` with ``-fork=N``.
445 clang++ -fsanitize=address,fuzzer test_fuzzer.cc
584 `Clang Coverage <https://clang.llvm.org/docs/SourceBasedCodeCoverage.html>`_,
629 …/usr/lib/<llvm-version>/lib/clang/<clang-version>/lib/linux/libclang_rt.fuzzer_no_main-<architectu…
[all …]
H A DSourceLevelDebugging.rst12 information in LLVM. It describes the :ref:`actual format that the LLVM debug
13 information takes <format>`, which is useful for those interested in creating
49 :ref:`implementation-defined format <ccxx_frontend>` (the C/C++ front-end
69 the Microsoft debug info format, which is usable with Microsoft debuggers such
70 as Visual Studio and WinDBG. LLVM's debug information format is mostly derived
135 Debugging information format
210 variable from memory to SSA values will replace this call with possibly
265 In order to handle this, the LLVM debug format uses the metadata attached to
282 default in clang.
317 …!0 = !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "clang version 3.7.0 (trunk 231150)…
[all …]
H A DExceptionHandling.rst12 exception handling in LLVM. It describes the format that LLVM exception
36 exception frame format can be found at `Exception Frames
251 a rethrow from within the catch may replace this call with a
436 a destination address by `llvm.eh.sjlj.longjmp`_. The buffer format and the
438 ``__builtin_setjmp`` implementation allowing code built with the clang and GCC
502 The format of this call frame information (CFI) is often platform-dependent,
503 however. ARM, for example, defines their own format. Apple has their own compact
504 unwind info format. On Windows, another format is used for all architectures
513 referred to as the language-specific data area (LSDA). The format of the LSDA
872 …but not in LLVM unwinder (`libunwind <https://clang.llvm.org/docs/Toolchain.html#unwind-library>`_…
[all …]
H A DTestingGuide.rst74 result and print it on the standard output in a textual format suitable for
146 If you have `Clang <https://clang.llvm.org/>`_ checked out and built, you
229 :program:`lit` performs substitution on each RUN line to replace LLVM tool names
523 Act like the corresponding substitution above but replace any ``\``
574 ``%clang``
/netbsd-src/external/apache2/llvm/dist/clang/tools/scan-build-py/libscanbuild/
H A Dreport.py21 from libscanbuild.clang import get_version
88 | </head>""", indent).format(html_title=args.html_title))
99 | </table>""", indent).format(html_title=args.html_title,
104 clang_version=get_version(args.clang),
143 | </tr>""", indent).format(bug_counter.total))
148 | </tr>""", indent).format(category))
160 | </tr>""", indent).format(**bug_type))
206 | </tr>""", indent).format(**current))
244 | </tr>""", indent).format(**current))
273 lambda bug: '{bug_line}.{bug_path_length}:{bug_file}'.format(**bug))
[all …]
H A Danalyze.py36 from libscanbuild.clang import get_version, get_arguments, get_triple_arch, \
221 'clang': args.clang,
286 'ANALYZE_BUILD_CLANG': args.clang if need_analyzer(args.build) else '',
386 result.append('-analyzer-store={0}'.format(args.store_model))
388 result.append('-analyzer-constraints={0}'.format(
399 result.append('-analyzer-output={0}'.format(args.output_format))
427 raise KeyError('{0} not passed to {1}'.format(
519 handle.write(error.title().replace('_', ' ') + os.linesep)
/netbsd-src/external/apache2/llvm/dist/llvm/utils/lit/lit/llvm/
H A Dconfig.py46 self.lit_config.note("using lit tools: {}".format(path))
246 def get_clang_builtin_include_dir(self, clang): argument
250 [clang, '-print-file-name=include'])
253 print(clang)
255 "Couldn't find the include dir for Clang ('%s')" % clang)
260 clang_dir = clang_dir.replace('\\', '/')
265 def get_clang_has_lsan(self, clang, triple): argument
266 if not clang:
272 clang_binary = clang.split()[0]
424 message = "couldn't find '{}' program".format(name)
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/docs/HistoricalNotes/
H A D2007-OriginalClangReadme.txt8 clang: noun
70 clang - An example driver, client of the libraries at various levels.
74 easy to reuse individual parts or replace pieces if desired. For example, to
92 II. Usage of clang driver:
95 - Help: clang --help
127 For more information on getting Graphviz to work with clang/LLVM,
136 * Full diagnostic customization by client (can format diagnostics however they
/netbsd-src/external/apache2/llvm/dist/clang/docs/
H A DUsersManual.rst18 `Clang Web Site <https://clang.llvm.org>`_ or the `LLVM Web
25 `Clang Static Analyzer <https://clang-analyzer.llvm.org>`_, please see its web
55 Clang also provides an alternative driver, :ref:`clang-cl`, that is designed
164 output format of the diagnostics that it generates.
255 .. option:: -fdiagnostics-format=clang/msvc/vi
257 Changes diagnostic output format to better match IDEs and command line tools.
259 This option controls the output format of the filename, line number,
263 **clang** (default)
313 For example, a format string warning will produce these three
328 .. option:: -f[no-]save-optimization-record[=<format>]
[all …]
H A DInternalsManual.rst80 ``clang/Basic/Diagnostic*Kinds.td`` files, depending on what library will be
82 diagnostic, the severity of the diagnostic and the English translation + format
129 The format string for the diagnostic is very simple, but it has some power. It
132 some simple format strings:
137 "format string contains '\\0' within the string body"
143 These examples show some important points of format strings. You can use any
156 order as they are specified, you could have a format string with "``%1 %0``"
161 Here are some "best practices" for writing the English format string:
182 including variable names, types, labels, etc. The "``select``" format can be
198 **"s" format**
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/docs/Proposals/
H A DGitHubMove.rst85 projects. Any of these could replace the code-hosting infrastructure that we
129 We can thus use this revision number to ensure that e.g. `clang -v` reports a
155 email format unchanged besides the commit URL.
253 # Configure LLVM and clang
254 cmake path/to/monorepo -DLLVM_ENABLE_PROJECTS=clang
341 At this point you have every sub-project (llvm, clang, lld, lldb, ...), which
377 Let's look how to assemble llvm+clang+libcxx at a given revision.
386 svn co https://llvm.org/svn/llvm-project/clang/trunk clang -r $REVISION
399 git clone https://llvm.org/git/clang.git
400 cd clang/
[all …]
/netbsd-src/external/bsd/nsd/dist/
H A Dacx_nlnetlabs.m423 # 2015-12-11 FLTO check for new OSX, clang.
70 # ACX_CHECK_FORMAT_ATTRIBUTE - find cc printf format syntax.
91 # AHX_CONFIG_FORMAT_ATTRIBUTE - config.h text for format.
116 # AHX_MEMCMP_BROKEN - replace memcmp func for CHECK_MEMCMP_SIGNED.
435 dnl in a way that supports clang and suncc (that flag does something else,
455 dnl Check the printf-format attribute (if any)
460 AC_MSG_CHECKING(whether the C compiler (${CC-cc}) accepts the "format" attribute)
464 void f (char *format, ...) __attribute__ ((format (printf, 1, 2)));
465 void (*pf) (char *format, ...) __attribute__ ((format (printf, 1, 2)));
473 AC_DEFINE(HAVE_ATTR_FORMAT, 1, [Whether the C compiler accepts the "format" attribute])
[all …]
/netbsd-src/external/bsd/unbound/dist/
H A Dacx_nlnetlabs.m423 # 2015-12-11 FLTO check for new OSX, clang.
70 # ACX_CHECK_FORMAT_ATTRIBUTE - find cc printf format syntax.
91 # AHX_CONFIG_FORMAT_ATTRIBUTE - config.h text for format.
116 # AHX_MEMCMP_BROKEN - replace memcmp func for CHECK_MEMCMP_SIGNED.
435 dnl in a way that supports clang and suncc (that flag does something else,
455 dnl Check the printf-format attribute (if any)
460 AC_MSG_CHECKING(whether the C compiler (${CC-cc}) accepts the "format" attribute)
464 void f (char *format, ...) __attribute__ ((format (printf, 1, 2)));
465 void (*pf) (char *format, ...) __attribute__ ((format (printf, 1, 2)));
473 AC_DEFINE(HAVE_ATTR_FORMAT, 1, [Whether the C compiler accepts the "format" attribute])
[all …]
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/Basic/
H A DAttrDocs.td9 // To test that the documentation builds cleanly, you must run clang-tblgen to
15 // To run clang-tblgen to generate the .rst file:
16 // clang-tblgen -gen-attr-docs -I <root>/llvm/tools/clang/include
17 // <root>/llvm/tools/clang/include/clang/Basic/Attr.td -o
18 // <root>/llvm/tools/clang/docs/AttributeReference.rst
22 // Windows (from within the clang\docs directory):
24 // Non-Windows (from within the clang\docs directory):
30 NOTE: This file is automatically generated by running clang-tblgen
236 <https://clang.llvm.org/docs/BlockLanguageSpec.html>`, the same restriction
459 ``clang::musttail`` can only be applied to a ``return`` statement whose value
[all …]
/netbsd-src/external/apache2/llvm/dist/clang/lib/Driver/
H A DDriver.cpp96 using namespace clang::driver;
97 using namespace clang;
693 Diag(clang::diag::err_drv_mix_cuda_hip); in CreateOffloadingDeviceToolChains()
756 Diag(clang::diag::warn_drv_omp_offload_target_duplicate) in CreateOffloadingDeviceToolChains()
767 Diag(clang::diag::err_drv_invalid_omp_target) << Val; in CreateOffloadingDeviceToolChains()
797 Diag(clang::diag::err_drv_expecting_fopenmp_with_fopenmp_targets); in CreateOffloadingDeviceToolChains()
799 Diag(clang::diag::warn_drv_empty_joined_argument) in CreateOffloadingDeviceToolChains()
1382 Diag(clang::diag::note_drv_command_failed_diag_msg) in generateCompilationDiagnostics()
1397 Diag(clang::diag::note_drv_command_failed_diag_msg) in generateCompilationDiagnostics()
1413 Diag(clang::diag::note_drv_command_failed_diag_msg) in generateCompilationDiagnostics()
[all …]
/netbsd-src/external/gpl3/gcc/dist/contrib/
H A DChangeLog26 * filter-clang-warnings.py: Filter out
31 * filter-clang-warnings.py: Filter out
118 * filter-clang-warnings.py: Filter out one another warning
137 * filter-clang-warnings.py: Rename .c names to .cc.
168 * filter-clang-warnings.py: Filter out one warning.
179 * filter-clang-warnings.py: Filter -Wc++20-extensions as it does
203 * check-internal-format-escaping.py: Fix flake8 errors.
221 * filter-clang-warnings.py: Filter out -Wtautological-compare
321 (get_pr_titles): Update PR string with correct format and component.
614 * filter-clang-warnings.py: Filter more cases.
[all …]
/netbsd-src/external/bsd/libevent/dist/
H A DChangeLog74 o arc4random: replace sysctl() with getrandom (on linux) (66ec78fd Azat Khuzhin)
116 o Fix detection of the __has_attribute() for apple clang [ci skip] (7fd7c5ef Azat Khuzhin)
139 git log --format=' o %s (%h %aN)' release-2.1.9-beta...release-2.1.10-stable
193 git log --format=' o %s (%h %aN)' release-2.1.8-stable...release-2.1.9-beta
319 date in RFC1123 format and running tests in parallel.
337 o test/dns: replace servname since solaris does not have "http" (d6bafbbe Azat Khuzhin)
503 o test: replace sleeping with syncing pair in main/fork (16d220c Azat Khuzhin)
570 o test/regress_buffer: fix clang compilation warnings (d8fd4c0 Azat Khuzhin)
605 …o sample/https-client: replace ERR_remove_state() by ERR_remove_thread_state() (77ad68a Azat Khuzh…
636 o be: replace sockaddr_storage with sockaddr_in6 for conn_address (3889612 Azat Khuzhin)
[all …]
/netbsd-src/external/bsd/nsd/dist/doc/
H A DChangeLog79 - Fix unused variable warning in unit test, from clang compile.
177 - Update to clang 14 in cirrus build test on Ubuntu Jammy 22.04.
223 readable text format. The number of IXFRs is num.rixfr in
948 - Fixup clang analysis warning in xfrd_parse_received_xfr_packet
1101 - Nicer output on travis for clang analysis.
1113 - Use travis for build check, initial unit test and clang analysis.
1206 - assertions for clang analysis.
1220 if the database format is modified or updated.
1227 - Fix clang analysis warning on null in closest encloser for wildcard
1229 - Fix clang analysis warnings.
[all …]
/netbsd-src/external/lgpl3/mpfr/dist/
H A DTODO92 precision of the FPU, whether a format has been recognized...),
95 * Provide mpfr_buildopt_* functions to tell whether the format of a
97 which format it is?
372 * In the existing functions, replace FILE *fh, and fread/fwrite
456 replace mpf with mpfr, though it'd be a major change. Alternately
468 - replace the *_THRESHOLD macros by global (TLS) variables that can be
529 __builtin_addcll (clang specific) when available
533 https://clang.llvm.org/docs/LanguageExtensions.html#multiprecision-arithmetic-builtins
/netbsd-src/external/bsd/atf/dist/
H A DNEWS90 clang.
217 new package that aims to replace atf-run and atf-report. The ATF tests
356 * Removed the atf-format internal utility, which is unused after the
374 * Removed the application/X-atf-tcr format introduced in 0.8 release.
375 Tests now print a much simplified format that is easy to parse and nicer
439 * Test programs no longer print a cryptic format (application/X-atf-tcs)
597 for the format's structure and sample XSLT/CSS files to post-process this
613 * Improved atf-report's CSV output format to include information about
639 format of files written by the developers and users: the Atffiles and the
649 when using the ticker output format.

123