Home
last modified time | relevance | path

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

/minix3/external/bsd/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++/Obj-C code.
18 $ clang-format -help
19 OVERVIEW: A tool to format C/C++/Obj-C code.
27 USAGE: clang-format [options] [<file> ...]
31 Clang-format options:
34 clang-format from an editor integration
42 -length, clang-format will format up to the end
45 -lines=<string> - <start line>:<end line> - format a range of
59 .clang-format file located in one of the parent
[all …]
H A DAttributeReference.rst3 NOTE: This file is automatically generated by running clang-tblgen
66 acquire_capability (acquire_shared_capability, clang::acquire_capability, clang::acquire_shared_cap…
76 assert_capability (assert_shared_capability, clang::assert_capability, clang::assert_shared_capabil…
241 a future version of clang. Also, the ABI is not standardized and the name
287 "chosen when the buffer size is known but 'maxlen' is not")))
332 format (gnu::format)
339 Clang supports the ``format`` attribute, which indicates that the function
340 accepts a ``printf`` or ``scanf``-like format string and corresponding
343 Please see `GCC documentation about format attribute
349 #. Clang checks that the function with the ``format`` attribute is called with
[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 :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
130 within `LLVM's bitstream format <http://llvm.org/docs/BitCodeFormat.html>`_.
162 The major and minor version numbers of the AST file format. Changes in the
[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 DModules.rst99 … the full complexity of the language. Maintaining a stable binary module format across architectur…
233 The C and C++ preprocessor assumes that the input text is a single linear buffer, but with modules …
665 format and the linker. The notion is similar to Microsoft Visual
750 … in the grammar to describe specific behavior of other declarations. The format of attributes is f…
846 To detect and help address some of these problems, the ``clang-tools-extra`` repository contains a …
865 ``clang/lib/Headers/module.modulemap``
868 ``clang/test/Modules/``
871 ``clang/include/clang/Basic/Module.h``
874 ``clang/include/clang/Lex/ModuleMap.h``
878 …Information about the serialized AST format used for precompiled headers and modules. The actual i…
/minix3/external/bsd/llvm/dist/llvm/test/DebugInfo/Sparc/
H A Dgnu-window-save.ll7 ; SPARC64: file format ELF64-sparc
23 ; SPARC32: file format ELF32-sparc
51 …af" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "unsafe-…
52 …af" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "unsafe-…
58 !0 = !{!"0x11\0012\00clang version 3.5 (http://llvm.org/git/clang.git 6a0714fee07fb7c4e32d3972b4fe2…
69 !11 = !{!"clang version 3.5 (http://llvm.org/git/clang.git 6a0714fee07fb7c4e32d3972b4fe2ce2f5678cf4…
/minix3/share/mk/
H A Dbsd.sys.mk19 .if exists(/usr/pkg/bin/clang) || exists(/usr/bin/clang)
20 CC?= clang
92 CFLAGS+= ${${ACTIVE_CC} == "gcc":? -Wno-format-zero-length :}
141 COPTS+= ${${ACTIVE_CC} == "clang":? --param ssp-buffer-size=1 :}
142 COPTS+= ${${ACTIVE_CC} == "gcc":? --param ssp-buffer-size=1 :}
H A Dbsd.README481 __builtin_object_size() function to determine the buffer
482 size where it is known and detect buffer overflows.
726 OBJECT_FMT Object file format. [set to "ELF" on architectures that
768 TOOL_AMIGATXLT Amige assembly language format translator. [amiga-txlt]
843 TOOL_MIPSELF2ECOFF Convert ELF-format executable to ECOFF for mips.
1892 ELF2ECOFF Convert ELF-format executable to ECOFF. [elf2ecoff]
1972 NOCLANGERROR If defined and clang is used as C compiler, -Werror is not
/minix3/external/bsd/llvm/dist/clang/include/clang/Basic/
H A DAttrDocs.td13 NOTE: This file is automatically generated by running clang-tblgen
124 …let Heading = "assert_capability (assert_shared_capability, clang::assert_capability, clang::asser…
133 …let Heading = "acquire_capability (acquire_shared_capability, clang::acquire_capability, clang::ac…
141 …= "try_acquire_capability (try_acquire_shared_capability, clang::try_acquire_capability, clang::tr…
152 …let Heading = "release_capability (release_shared_capability, clang::release_capability, clang::re…
227 "chosen when the buffer size is known but 'maxlen' is not")))
387 // void nodupfunc() [[clang::noduplicate]];
591 The ``clang::fallthrough`` attribute is used along with the
614 [[clang::fallthrough]];
622 [[clang::fallthrough]];
[all …]
H A DDiagnosticSemaKinds.td447 "buffer overflow">, InGroup<StrncatSize>;
453 "change the argument to be the free space in the destination buffer minus "
461 "%0 will always overflow destination buffer">,
2010 "strftime format attribute requires 3rd parameter to be 0">;
2012 "format attribute requires variadic function">;
2013 def err_format_attribute_not : Error<"format argument not %0">;
2016 "format attribute cannot specify the implicit this argument as the format "
5058 "format string is not a string literal (potentially insecure)">,
5061 "format string is not a string literal">,
6014 "%select{function|block|method|constructor}2; expected type from format "
[all …]
/minix3/external/bsd/llvm/dist/clang/docs/tools/
H A Dclang.pod5 clang - the Clang C, C++, and Objective-C compiler
9 B<clang> [B<-c>|B<-S>|B<-E>] B<-std=>I<standard> B<-g>
22 B<clang> is a C, C++, and Objective-C compiler which encompasses preprocessing,
32 The B<clang> executable is actually a small driver which controls the overall
84 same driver. Please see L<http://clang-analyzer.llvm.org> for more details
364 otherwise this generates LLVM bitcode format object files (which may be passed
493 Adds an implicit #define into the predefines buffer which is read before the
498 Adds an implicit #undef into the predefines buffer which is read before the
503 Adds an implicit #include into the predefines buffer which is read before the
526 Do not search clang's builtin directory for include files.
[all …]
/minix3/external/bsd/llvm/dist/llvm/docs/
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
350 a destination address by `llvm.eh.sjlj.longjmp`_. The buffer format and the
352 ``__builtin_setjmp`` implementation allowing code built with the clang and GCC
355 The single parameter is a pointer to a five word buffer in which the calling
372 a buffer populated by `llvm.eh.sjlj.setjmp`_. The frame pointer and stack
373 pointer are restored from the buffer, then control is transferred to the
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
132 Debugging information format
171 to start in a canonical format, but the descriptors can include additional
676 In order to handle this, the LLVM debug format uses the metadata attached to
725 "stack-protector-buffer-size"="8" "unsafe-fp-math"="false"
734 metadata !"clang version 3.4 (trunk 193128) (llvm/trunk 193139)",
755 !9 = metadata !{metadata !"clang version 3.4 (trunk 193128) (llvm/trunk 193139)"}
838 The C and C++ front-ends represent information about the program in a format
[all …]
/minix3/external/bsd/llvm/dist/clang/lib/StaticAnalyzer/Checkers/
H A DCheckers.td10 include "clang/StaticAnalyzer/Checkers/CheckerBase.td"
235 HelpText<"Warn when 'mkstemp' is passed fewer than 6 X's in the format string">,
259 HelpText<"Warn about buffer overflows (older checker)">,
263 HelpText<"Warn about buffer overflows (newer checker)">,
354 HelpText<"Checks for overlap in two buffer arguments">,
/minix3/external/bsd/llvm/dist/clang/test/ARCMT/
H A Dobjcmt-arc-cf-annotations.m8 #define CF_IMPLICIT_BRIDGING_ENABLED _Pragma("clang arc_cf_code_audited begin")
16 #define CF_IMPLICIT_BRIDGING_DISABLED _Pragma("clang arc_cf_code_audited end")
132 extern void NSLog(NSString *format, ...) __attribute__((format(__NSString__, 1, 2)));
278 - (CGImageRef)createCGImage:(CIImage *)im fromRect:(CGRect)r format:(CIFormat)f colorSpace:(CGC…
751 // <rdar://problem/6257780> clang checker fails to catch use-after-release
941 // <rdar://problem/6902710> clang: false positives w/QC and CoreImage methods
950 [context createCGImage:img fromRect:rect format:form colorSpace:cs]; // expected-warning{{leak}}
955 // misinterpreted by clang scan-build
1111 // <rdar://problem/7299394> clang false positive: retained instance passed to
1161 // pixel buffer object. These test cases show how the analyzer stops tracking
[all …]
H A Dobjcmt-arc-cf-annotations.m.result8 #define CF_IMPLICIT_BRIDGING_ENABLED _Pragma("clang arc_cf_code_audited begin")
16 #define CF_IMPLICIT_BRIDGING_DISABLED _Pragma("clang arc_cf_code_audited end")
138 extern void NSLog(NSString *format, ...) __attribute__((format(__NSString__, 1, 2)));
296 - (CGImageRef)createCGImage:(CIImage *)im fromRect:(CGRect)r format:(CIFormat)f colorSpace:(CGC…
793 // <rdar://problem/6257780> clang checker fails to catch use-after-release
983 // <rdar://problem/6902710> clang: false positives w/QC and CoreImage methods
992 [context createCGImage:img fromRect:rect format:form colorSpace:cs]; // expected-warning{{leak}}
997 // misinterpreted by clang scan-build
1153 // <rdar://problem/7299394> clang false positive: retained instance passed to
1203 // pixel buffer object. These test cases show how the analyzer stops tracking
[all …]
/minix3/external/bsd/llvm/dist/clang/include/clang/Driver/
H A DCC1Options.td1 //===--- CC1Options.td - Options for clang -cc1 ---------------------------===//
10 // This file defines the options accepted by clang -cc1 and clang -cc1as.
264 HelpText<"File for serializing diagnostics in a binary format">;
266 def fdiagnostics_format : Separate<["-"], "fdiagnostics-format">,
478 def stack_protector_buffer_size : Separate<["-"], "stack-protector-buffer-size">,
479 HelpText<"Lower bound for a buffer to be considered for stack protection">;
/minix3/external/bsd/bind/dist/
H A DCHANGES7 4168. [security] A buffer accounting error could trigger an
448 3906. [protocol] Update URI record format to comply with
469 3898. [bug] Too small a buffer in tohexstr() calls in test code.
772 a TSIG key in named.conf format without comments.
1197 3680. [bug] Ensure buffer space is available in "rndc zonestatus".
1421 newline format. [RT #22067]
1455 when loading zones in map format. [RT #33381]
1542 3567. [bug] Silence clang static analyzer warnings. [RT #33365]
1552 3562. [func] Update map file header format to include a SHA-1 hash
1618 3539. [port] win32: timestamp format didn't match other platforms.
[all …]
H A Dltmain.sh1380 tag_compilers_CC="*cc cc* *gcc gcc* clang"
1381 tag_compilers_CXX="*c++ c++* *g++ g++* clang++"
4662 /* static buffer for getcwd */
7899 $ECHO "*** with $libname and none of the candidates passed a file format test"
/minix3/external/bsd/libevent/dist/
H A DChangeLog20 o Add -Qunused-arguments for clang on macos (b56611d Trond Norbye)
59 o Fix a typo in a comment in buffer.h. Spotted by Alt_F4 (773b0a5)
162 o Don't do clang version detection when disabling some flags (083296b Sebastian Hahn)
234 o improve test to remove at least one buffer from src (7eb52eb Greg Hazel)
409 o Add an assert to appease clang's static analyzer (b0ff7eb Sebastian Hahn)
425 o Fix compilation under LLVM/clang with --enable-gcc-warnings (ad9ff58 Sebastian Hahn)
579 o Fix even more win64 warnings: buffer, event_tagging, http, evdns, evrpc (545a611)
730 …o Change bufferevent_openssl::do_write so it doesn't call SSL_write with a 0 length buffer (c99131…
826 o Fix a memory leak when appending/prepending to a buffer with unused space. (45068a3)
903 o Do not use evbuffer_expand() to add the first chain to a buffer (5c0ebb3)
[all …]
/minix3/external/bsd/byacc/dist/
H A DCHANGES25 * package/debian/source/format:
26 change to native format to work around regression in Debian packaging.
56 * reader.c: eliminate strcpy into fixed-size buffer (Coverity #63408)
103 format of the parse_param list (by trimming space after "*") as well as
203 use vsnprintf() to ensure that msprintf's buffer is large enough.
250 fix a few clang --analyze warnings; one was a case where output_ctable emitted
253 * reader.c: appease clang --analyze
917 * aclocal.m4: resync with my-autoconf (fixes for clang and mingw)
925 * reader.c: fix two loop-limits found by clang 3.3 --analyze
1027 CF_CLANG_COMPILER - check if the given compiler is really clang.
[all …]
/minix3/external/bsd/llvm/dist/clang/test/Analysis/
H A Dretain-release.m120 extern void NSLog(NSString *format, ...) __attribute__((format(__NSString__, 1, 2)));
273 - (CGImageRef)createCGImage:(CIImage *)im fromRect:(CGRect)r format:(CIFormat)f colorSpace:(CGC…
746 // <rdar://problem/6257780> clang checker fails to catch use-after-release
936 // <rdar://problem/6902710> clang: false positives w/QC and CoreImage methods
945 [context createCGImage:img fromRect:rect format:form colorSpace:cs]; // expected-warning{{leak}}
950 // misinterpreted by clang scan-build
1106 // <rdar://problem/7299394> clang false positive: retained instance passed to
1156 // pixel buffer object. These test cases show how the analyzer stops tracking
1299 // <rdar://problem/7306898> clang thinks [NSCursor dragCopyCursor] returns a
1961 // Test 'pragma clang arc_cf_code_audited' support.
[all …]