Home
last modified time | relevance | path

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

12

/external/chromium_org/third_party/WebKit/Source/wtf/
DAssertions.cpp81 static void vprintf_stderr_common(const char* format, va_list args) in vprintf_stderr_common() argument
84 if (strstr(format, "%@")) { in vprintf_stderr_common()
85 CFStringRef cfFormat = CFStringCreateWithCString(NULL, format, kCFStringEncodingUTF8); in vprintf_stderr_common()
88 #pragma clang diagnostic push in vprintf_stderr_common()
89 #pragma clang diagnostic ignored "-Wformat-nonliteral" in vprintf_stderr_common()
93 #pragma clang diagnostic pop in vprintf_stderr_common()
96 char* buffer = (char*)malloc(length + 1); in vprintf_stderr_common() local
98 CFStringGetCString(str, buffer, length, kCFStringEncodingUTF8); in vprintf_stderr_common()
101 asl_log(0, 0, ASL_LEVEL_NOTICE, "%s", buffer); in vprintf_stderr_common()
103 fputs(buffer, stderr); in vprintf_stderr_common()
[all …]
/external/clang/docs/
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 …]
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…
282 "chosen when the buffer size is known but 'maxlen' is not")))
327 format (gnu::format)
334 Clang supports the ``format`` attribute, which indicates that the function
335 accepts a ``printf`` or ``scanf``-like format string and corresponding
338 Please see `GCC documentation about format attribute
344 #. Clang checks that the function with the ``format`` attribute is called with
345 a format string that uses format specifiers that are allowed, and that
[all …]
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 …]
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 …]
DModules.rst103 … the full complexity of the language. Maintaining a stable binary module format across architectur…
222 The C and C++ preprocessor assumes that the input text is a single linear buffer, but with modules …
642 format and the linker. The notion is similar to Microsoft Visual
727 … in the grammar to describe specific behavior of other declarations. The format of attributes is f…
823 To detect and help address some of these problems, the ``clang-tools-extra`` repository contains a …
845 ``clang/lib/Headers/module.modulemap``
848 ``clang/test/Modules/``
851 ``clang/include/clang/Basic/Module.h``
854 ``clang/include/clang/Lex/ModuleMap.h``
858 …Information about the serialized AST format used for precompiled headers and modules. The actual i…
/external/llvm/test/DebugInfo/Sparc/
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 …etadata !{i32 786449, metadata !1, i32 12, metadata !"clang version 3.5 (http://llvm.org/git/clang
69 !11 = metadata !{metadata !"clang version 3.5 (http://llvm.org/git/clang.git 6a0714fee07fb7c4e32d39…
/external/clang/include/clang/Basic/
DAttrDocs.td13 NOTE: This file is automatically generated by running clang-tblgen
108 …let Heading = "assert_capability (assert_shared_capability, clang::assert_capability, clang::asser…
117 …let Heading = "acquire_capability (acquire_shared_capability, clang::acquire_capability, clang::ac…
125 …= "try_acquire_capability (try_acquire_shared_capability, clang::try_acquire_capability, clang::tr…
136 …let Heading = "release_capability (release_shared_capability, clang::release_capability, clang::re…
187 "chosen when the buffer size is known but 'maxlen' is not")))
347 // void nodupfunc() [[clang::noduplicate]];
530 The ``clang::fallthrough`` attribute is used along with the
553 [[clang::fallthrough]];
561 [[clang::fallthrough]];
[all …]
/external/compiler-rt/test/BlocksRuntime/
Dtestfilerunner.m29 static bool readErrorFile(char *buffer, const char *from);
98 bool lookforIn(char *lookfor, const char *format, pid_t child) {
99 char buffer[512];
101 sprintf(buffer, format, child);
102 bool gotOutput = readErrorFile(got, buffer);
104 printf("**** didn't get an output file %s to analyze!!??\n", buffer);
109 printf("didn't find '%s' in output file %s\n", lookfor, buffer);
112 unlink(buffer);
127 char buffer[512];
130 sprintf(buffer, "/tmp/errorfile_%d", getpid());
[all …]
/external/lldb/source/Commands/
DCommandObjectMemory.cpp526clang::TypeDecl *tdecl = target->GetPersistentVariables().GetPersistentType(ConstString(lookup_typ… in DoExecute()
732 std::string buffer; in DoExecute() local
733 buffer.resize(item_byte_size+1,0); in DoExecute()
735 … size_t read = target->ReadCStringFromMemory(data_addr, &buffer[0], item_byte_size+1, error); in DoExecute()
748 memcpy(data_ptr, &buffer[0], read); in DoExecute()
833 Format format = m_format_options.GetFormat(); in DoExecute() local
834 if (format != eFormatDefault) in DoExecute()
835 valobj_sp->SetFormat (format); in DoExecute()
837 … ValueObject::DumpValueObjectOptions options(m_varobj_options.GetAsDumpOptions(false,format)); in DoExecute()
860 Format format = m_format_options.GetFormat(); in DoExecute() local
[all …]
/external/clang/docs/tools/
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 …]
/external/chromium_org/build/
Dcommon.gypi280 # Set to 1 to force Visual C++ to use legacy debug information format /Z7.
345 # If this is set, the clang plugins used on the buildbot will be used.
346 # Run tools/clang/scripts/update.sh to make sure they are compiled.
348 # Has no effect if 'clang' is not set as well.
352 # -fsanitize=address only works with clang, but asan=1 implies clang=1
368 # -fsanitize=leak only works with clang, but lsan=1 implies clang=1
373 # -fsanitize=thread only works with clang, but tsan=1 implies clang=1
374 # See http://clang.llvm.org/docs/ThreadSanitizer.html
379 # MemorySanitizer only works with clang, but msan=1 implies clang=1
380 # See http://clang.llvm.org/docs/MemorySanitizer.html
[all …]
/external/chromium_org/build/config/compiler/
DBUILD.gn45 "/GS", # Enable buffer security checking.
72 cflags += [ "-fstack-protector", "--param=ssp-buffer-size=4" ]
360 # Work around incompatibilities between bionic and clang headers.
437 # GCC turns on -Wsign-compare for C++ under -Wall, but clang doesn't,
484 # Don't warn about printf format problems. This is off by default in gcc
486 "-Wno-format",
501 "-Wno-format-security",
/external/harfbuzz_ng/
DNEWS30 - With all changes in this release, the buffer will contain fully
34 - Fix minor invalid buffer access.
118 - Uniscribe: fix scratch-buffer accounting.
146 - Misc compiler warning fixes with clang.
334 - hb_shape() and related APIs now abort if buffer direction is
336 hb_buffer_guess_segment_properties() on the buffer before
433 - hb-shape --output-format=json
505 - Adjust output format of hb-shape a bit.
507 - Fix hb_buffer_set_length(buffer, 0) invalid memory allocation.
901 o Added _make_immutable() and _is_immutable() for all object types except for buffer:
/external/chromium_org/third_party/harfbuzz-ng/
DNEWS25 - Uniscribe: fix scratch-buffer accounting.
53 - Misc compiler warning fixes with clang.
241 - hb_shape() and related APIs now abort if buffer direction is
243 hb_buffer_guess_segment_properties() on the buffer before
340 - hb-shape --output-format=json
412 - Adjust output format of hb-shape a bit.
414 - Fix hb_buffer_set_length(buffer, 0) invalid memory allocation.
808 o Added _make_immutable() and _is_immutable() for all object types except for buffer:
/external/llvm/docs/
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
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
635 In order to handle this, the LLVM debug format uses the metadata attached to
684 "stack-protector-buffer-size"="8" "unsafe-fp-math"="false"
693 metadata !"clang version 3.4 (trunk 193128) (llvm/trunk 193139)",
714 !9 = metadata !{metadata !"clang version 3.4 (trunk 193128) (llvm/trunk 193139)"}
799 The C and C++ front-ends represent information about the program in a format
[all …]
/external/clang/test/ARCMT/
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 …]
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 …]
/external/clang/include/clang/Driver/
DCC1Options.td1 //===--- CC1Options.td - Options for clang -cc1 ---------------------------===//
10 // This file defines the options accepted by clang -cc1 and clang -cc1as.
255 HelpText<"File for serializing diagnostics in a binary format">;
257 def fdiagnostics_format : Separate<["-"], "fdiagnostics-format">,
461 def stack_protector_buffer_size : Separate<["-"], "stack-protector-buffer-size">,
462 HelpText<"Lower bound for a buffer to be considered for stack protection">;
/external/clang/lib/StaticAnalyzer/Checkers/
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">,
/external/valgrind/main/
DNEWS111 331257 Fix type of jump buffer in test none/tests/faultstatus
135 334727 Build fails with -Werror=format-security
250 buffer. This avoids virtual memory usage spikes when Valgrind
364 307955 Building valgrind 3.7.0-r4 fails in Gentoo AMD64 when using clang
413 315345 cl-format.xml and callgrind/dump.c don't agree on using cfl= or cfi=
452 320211 Stack buffer overflow in ./coregrind/m_main.c with huge TMPDIR
564 n-i-bz OSX build w/ clang: asserts at startup
764 289699 vgdb connection in relay mode erroneously closed due to buffer overrun
802 295427 building for i386 with clang on darwin11 requires "-new_linker linker"
850 301984 configure script doesn't detect certain versions of clang
[all …]
/external/bison/
DChangeLog597 because "clang-mp-2.9 -o test -g test.c" launches "/usr/bin/dsymutil
978 NEWS: warnings with clang
979 warnings: avoid warnings from clang
1019 NEWS: warnings with clang
1024 warnings: avoid warnings from clang
1056 This is Apple clang version 3.1 (tags/Apple/clang-318.0.61).
1062 * data/glr.c (LONGJMP): abort after longjmp to pacify clang.
1233 graphs: change the output format of the rules
1372 NEWS: warnings with clang
1377 warnings: avoid warnings from clang
[all …]
/external/zlib/src/
DChangeLog41 - Check for input buffer malloc failure in examples/gzappend.c
99 - Recognize clang as gcc
409 - Avoid buffer overrun in contrib/masmx64/gvmat64.asm [Simpson]
530 - Allow negative bits in inflatePrime() to delete existing bit buffer
647 - Add error return to gzread() for format or i/o error [Levin]
674 - Increase sprintf() buffer size in gzdopen() to allow for large numbers
880 - Fix printf format in example.c
910 - Improve setting of zlib format compression level flags
961 - Fix bug in gzread() on concatenated file with 0x1f at end of buffer
962 and next buffer doesn't start with 0x8b
[all …]
/external/libpng/
DCHANGES140 Try to fix Linux "setjmp" buffer size problems
162 Added macros to read 16- and 32-bit ints directly from buffer, to be
312 Changed format of the PNG_LIBPNG_VER integer to xyyzz instead of xyz
969 Increased the first part of msg buffer from 16 to 18 in png_chunk_error().
1031 Increased the first part of msg buffer from 16 to 18 in png_chunk_warning().
1306 Check for buffer overflow before reading CRC in pngpread.c (Warwick Allison)
1314 Detect buffer overflow in pngpread.c when IDAT is corrupted with extra data.
1452 Fixed buffer overflow vulnerability in png_handle_tRNS()
1524 Fixed bug, introduced in libpng-1.2.7, that overruns a buffer during
1735 Increased sprintf buffer from 50 to 52 chars in pngrutil.c to avoid
[all …]

12