Home
last modified time | relevance | path

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

123

/netbsd-src/external/apache2/llvm/dist/clang/docs/
H A DClangFormat.rst13 :program:`clang-format` is located in `clang/tools/clang-format` and can be used
14 to format C/C++/Java/JavaScript/Objective-C/Protobuf/C# code.
18 $ clang-format -help
19 OVERVIEW: A tool to format C/C++/Java/JavaScript/Objective-C/Protobuf/C# code.
27 USAGE: clang-format [options] [<file> ...]
31 Clang-format options:
35 =unknown - If set, unknown format options are only warned about.
39 differing format depending on an option being
42 When reading from stdin, clang-format assumes this
45 clang-format from an editor integration
[all …]
H A DPCHInternals.rst12 Using Precompiled Headers with ``clang``
15 The Clang compiler frontend, ``clang -cc1``, supports two command line options
18 To generate PCH files using ``clang -cc1``, use the option `-emit-pch`:
22 $ clang -cc1 test.h -emit-pch -o test.h.pch
24 This option is transparently used by ``clang`` when generating PCH files. The
32 $ clang -cc1 -include-pch test.h.pch test.c -o test.s
65 AST file format required for modules are discussed in the section on
72 compressed bitstream as `LLVM's bitcode file format
127 An AST file produced by clang is an object file container with a ``clangast``
137 within `LLVM's bitstream format <https://llvm.org/docs/BitCodeFormat.html>`_.
[all …]
H A DClangFormatStyleOptions.rst8 When using :program:`clang-format` command line utility or
9 ``clang::format::reformat(...)`` functions from code, one can either use one of
14 Configuring Style with clang-format
17 :program:`clang-format` supports two ways to provide custom style options:
19 use ``-style=file`` and put style configuration in the ``.clang-format`` or
20 ``_clang-format`` file in the project directory.
22 When using ``-style=file``, :program:`clang-format` for each input file will
23 try to find the ``.clang-format`` file located in the closest parent directory
27 The ``.clang-format`` file uses YAML format:
44 When :program:`clang-format` formats a file, it auto-detects the language using
[all …]
H A DLanguageExtensions.rst50 #define __has_builtin(x) 0 // Compatibility with non-clang compilers.
85 #define __has_feature(x) 0 // Compatibility with non-clang compilers.
145 #if __has_cpp_attribute(clang::fallthrough)
146 #define FALLTHROUGH [[clang::fallthrough]]
152 The attribute scope tokens ``clang`` and ``_Clang`` are interchangeable, as are
170 #define __has_c_attribute(x) 0 // Compatibility with non-clang compilers.
181 The attribute scope tokens ``clang`` and ``_Clang`` are interchangeable, as are
197 #define __has_attribute(x) 0 // Compatibility with non-clang compilers.
224 #define __has_declspec_attribute(x) 0 // Compatibility with non-clang compilers.
251 #ifdef __is_identifier // Compatibility with non-clang compilers.
[all …]
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 DSourceBasedCodeCoverage.rst11 This document explains how to use clang's source-based code coverage feature.
62 % clang++ -fprofile-instr-generate -fcoverage-mapping foo.cc -o foo
132 …% clang++ -fprofile-instr-generate -fcoverage-mapping -mllvm -runtime-counter-relocation foo.cc -o…
292 profile format. Raw profiles may be dependent on the specific compiler
297 These formats are not forwards-compatible: i.e, a tool which uses format
298 version X will not be able to understand format version (X+k).
300 * Tools must also retain **backwards** compatibility with the format of the
304 * The JSON coverage export format has a (major, minor, patch) version triple.
359 described above, use the following to save the profile directly to a buffer
364 buffer of this size.
[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 …]
H A DClangCommandLineReference.rst3 NOTE: This file is automatically generated by running clang-tblgen
17 GCC-compatible ``clang`` and ``clang++`` drivers.
20 .. program:: clang
35 .. program:: clang
61 .. program:: clang
67 .. program:: clang
85 .. program:: clang
105 Static analyzer report output format (html\|plist\|plist-multi-file\|plist-html\|sarif\|text).
113 .. program:: clang
117 .. program:: clang
[all …]
H A DModules.rst99 … the full complexity of the language. Maintaining a stable binary module format across architectur…
283 …e updated to take into account the default options passed to ``clang -cc1``. (See ``clang use.c -v…
284 …-file=`` or ``-fimplicit-module-maps`` options explicitly. When using the clang driver, ``-fimplic…
291 clang -cc1 -emit-module -o prebuilt/A.pcm -fmodules module.modulemap -fmodule-name=A
292clang -cc1 -emit-module -o prebuilt/B.pcm -fmodules module.modulemap -fmodule-name=B -fmodule-file…
293clang -cc1 -emit-obj use.c -fmodules -fmodule-map-file=module.modulemap -fmodule-file=A=prebuilt/A…
300 clang -cc1 -emit-module -o prebuilt/A.pcm -fmodules module.modulemap -fmodule-name=A
301clang -cc1 -emit-module -o prebuilt/B.pcm -fmodules module.modulemap -fmodule-name=B -fprebuilt-mo…
302 clang -cc1 -emit-obj use.c -fmodules -fimplicit-module-maps -fprebuilt-module-path=prebuilt
309clang -cc1 -emit-obj use.c -fmodules -fimplicit-module-maps -fmodules-cache-path=prebuilt -fdisabl…
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/docs/
H A DCFIVerify.rst30 - Integration tests, present in "/llvm/tools/clang/test/LLVMCFIVerify". These
31 integration tests are part of clang as part of a continuous integration
57 This tool will disassemble binaries and DSO's from their machine code format and
65 the disassembly. A control flow graph would be generated from a small buffer of
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
201 %buffer = alloca [256 x i8], align 8
202 ; The address of i is buffer+64.
203 call void @llvm.dbg.addr(metadata [256 x i8]* %buffer, metadata !3,
265 In order to handle this, the LLVM debug format uses the metadata attached to
[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
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
441 The single parameter is a pointer to a five word buffer in which the calling
458 a buffer populated by `llvm.eh.sjlj.setjmp`_. The frame pointer and stack
459 pointer are restored from the buffer, then control is transferred to the
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
[all …]
H A DJITLink.rst21 object format; including static initializers, exception handling, thread local
24 (e.g. C++ requires object format support for static initializers to support
27 many features). For some object format features support is provided entirely
37 2. Support for all object format features.
191 or subsections, depending on the format), and annotations describing how to
761 for advanced JIT features, including object format features that require
765 ORC Runtime support for object format features typically requires cooperation
786 ``LinkGraph`` from an in-memory buffer containing an object file. This is how
790 both the object format and architecture are known ahead of time.
792 #. ``createLinkGraph_<Object-Format>`` can be used when the object format is
[all …]
/netbsd-src/external/apache2/llvm/dist/clang/docs/CommandGuide/
H A Dclang.rst1 clang - the Clang C, C++, and Objective-C compiler
7 :program:`clang` [*options*] *filename ...*
12 :program:`clang` is a C, C++, and Objective-C compiler which encompasses
20 The clang executable is actually a small driver which controls the overall
63 the same driver. Please see <https://clang-analyzer.llvm.org> for more details
409 option transparently switches the Clang module format to object file
474 assembly files, otherwise this generates LLVM bitcode format object files
599 Adds an implicit #define into the predefines buffer which is read before the
604 Adds an implicit #undef into the predefines buffer which is read before the
609 Adds an implicit #include into the predefines buffer which is read before the
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/docs/CommandGuide/
H A Dllvm-mca.rst30 For example, you can compile code with clang, output assembly, and pipe it
35 $ clang foo.c -O2 -target x86_64-unknown-unknown -S -o - | llvm-mca -mcpu=btver2
41 …$ clang foo.c -O2 -target x86_64-unknown-unknown -mllvm -x86-asm-syntax=intel -S -o - | llvm-mca -…
96 the AT&T (vic. Intel) assembly format for the code printed out by the tool in
101 Prefer hex format for numeric literals in the output assembly printed as part
212 Print the requested views in JSON format. The instructions and the processor
301 The `Clang options to emit optimization reports <https://clang.llvm.org/docs/UsersManual.html#optio…
665 counters for the dispatch logic, the reorder buffer, the retire control unit,
698 [2] Average number of used buffer entries.
699 [3] Maximum number of used buffer entries.
[all …]
/netbsd-src/external/bsd/libevent/dist/
H A DChangeLog27 o buffer: do not pass NULL to memcpy() from evbuffer_pullup() (5b063049 Azat Khuzhin)
116 o Fix detection of the __has_attribute() for apple clang [ci skip] (7fd7c5ef Azat Khuzhin)
119 o buffer: fix possible NULL dereference in evbuffer_setcb() on ENOMEM (598f247d Azat Khuzhin)
139 git log --format=' o %s (%h %aN)' release-2.1.9-beta...release-2.1.10-stable
161 o buffer: make evbuffer_prepend() of zero-length array no-op (61fa7b7d Azat Khuzhin)
193 git log --format=' o %s (%h %aN)' release-2.1.8-stable...release-2.1.9-beta
271 buffer:
273 o fix incorrect unlock of the buffer mutex (for deferred callbacks) (2b4d127d)
319 date in RFC1123 format and running tests in parallel.
403 o evutil_parse_sockaddr_port(): fix buffer overflow (329acc1 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
578 - Fix missing parenthesis on size of fix to init buffer.
584 - Fix #133: fix 0-init of local ( stack ) buffer.
665 - Retry when udp send buffer is full to wait until buffer space is
948 - Fixup clang analysis warning in xfrd_parse_received_xfr_packet
1042 - PR #12: send-buffer-size, receive-buffer-size,
1101 - Nicer output on travis for clang analysis.
1111 - Fix to avoid buffer alloc with global buffer in tls write handler.
[all …]
H A DRELNOTES77 - Fix unused variable warning in unit test, from clang compile.
120 readable text format. The number of IXFRs is num.rixfr in
288 - Fix #133: fix 0-init of local ( stack ) buffer.
289 - Fix missing parenthesis on size of fix to init buffer.
354 - Retry when udp send buffer is full to wait until buffer space is
491 - Fixup clang analysis warning in xfrd_parse_received_xfr_packet
536 - PR #12: send-buffer-size, receive-buffer-size,
575 - Use travis for build check, initial unit test and clang analysis.
585 - Fix to avoid buffer alloc with global buffer in tls write handler.
659 - please clang analyzer and fix parse of IPSECKEY with bad gateway.
[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
346 buffer<int, 1> a(range<1>{1024});
[all …]
/netbsd-src/external/bsd/file/dist/
H A DChangeLog11 * add SIMH tape format support
155 * PR/269: Avoid undefined behavior with clang (adding offset to NULL)
203 * Include # to the list of ignored format chars (Werner Fink)
252 * pass a sized buffer to file_fmttime() (SonarQube)
420 * Always reset state in {file,buffer}_apprentice (Krzysztof Wilczynski)
628 * Bump file search buffer size to 1M.
696 * fix bogus free in the user buffer case.
741 * Misc buffer overruns and missing buffer size tests in cdf parsing
885 was not easily controlled by the user, and the format
1067 * Fix cdf string buffer setting (Sven Anders)
[all …]
/netbsd-src/external/lgpl3/mpfr/dist/
H A Dconfigure.ac60 dnl (e.g., in a format detection, one for each possible format). But the
389 …gcc -E" "/lib/cpp -P" "/lib/cpp" "cc -P -E" "cc -E" "c99 -P -E" "c99 -E" "clang -E" "cl -E" "icl -…
570 dnl On Android/Termux, -Wl,--disable-new-dtags is supported by clang, but
628 dnl but it's "ar" format and cannot be used by the MS linker. There
777 char buffer[100];
778 sprintf (buffer, "%d.%d.%d", __GNU_MP_VERSION, __GNU_MP_VERSION_MINOR,
780 printf ("(%s/%s) ", buffer, gmp_version);
783 fprintf (stderr, "gmp.h: %s / libgmp: %s\n", buffer, gmp_version);
784 if (strcmp (buffer, gmp_version) == 0)
788 sprintf (buffer, "%d.%d", __GNU_MP_VERSION, __GNU_MP_VERSION_MINOR);
[all …]
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?
340 h->read (h, buffer, size)
341 h->write (h, buffer, size)
353 read_from_file (struct ext_data *h, unsigned char *buffer, size_t size)
355 return fread (buffer, size, 1, h->fh) != 1;
359 read_from_memory (struct ext_data *h, unsigned char *buffer, size_t size)
363 memcpy (buffer, h->arena, size);
529 __builtin_addcll (clang specific) when available
[all …]
/netbsd-src/external/lgpl3/gmp/dist/
H A DNEWS38 does not recognize the float format.
170 * Support for compilation with clang/llvm on more platforms. Caution: GMP
171 triggers mis-compilation bugs in clang for many platforms, such as arm, x86
259 the 32-bit ABI. The reason is bugs in the compiler 'clang'. Depending on
327 * A possible buffer overrun in mpz_ior has been fixed.
440 safely, plugging a one-word buffer overrun introduced in the 5.0.3 release
441 (for non-fat) and a multi-word buffer overrun that existed since 5.0 (for
449 * A bug in the test suite causing buffer overruns during "make check",
890 * Generalized low-level number format, reserving a `nails' part of each
/netbsd-src/external/bsd/flex/dist/
H A DNEWS70 *** If the path to m4 was sufficiently long, a buffer overflow could
117 *** prevented a buffer overflow that could occur when input buffers were the exact wrong size
198 *** Suppress clang warning about empty @param paragraph; resolves sf#158
202 *** Adjusted buffer sizes on ia64.
355 ** yylineno is per-buffer in reentrant scanners
540 ** reject-state buffer is now dynamically allocated and REJECT buffer
727 ** manual is now in texinfo/info format
/netbsd-src/external/gpl3/binutils.old/dist/zlib/
H A DChangeLog16 - Add address checking in clang to -w option of configure
32 - Use a macro for the printf format of big_t in enough.c
64 - Check for cc masquerading as gcc or clang in configure
147 - Check for input buffer malloc failure in examples/gzappend.c
205 - Recognize clang as gcc
515 - Avoid buffer overrun in contrib/masmx64/gvmat64.asm [Simpson]
636 - Allow negative bits in inflatePrime() to delete existing bit buffer
753 - Add error return to gzread() for format or i/o error [Levin]
780 - Increase sprintf() buffer size in gzdopen() to allow for large numbers
986 - Fix printf format in example.c
[all …]

123