aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Analysis/OSLog.cpp
AgeCommit message (Collapse)AuthorFilesLines
2017-02-11Make helpers static. NFC.Benjamin Kramer1-0/+2
llvm-svn: 294838
2017-01-28Remove unused 'using' declaration. Found by clang-tidy: ↵Sylvestre Ledru1-1/+0
misc-unused-using-decls NFC llvm-svn: 293381
2016-12-15Fix os_log formating with arbitrary precision and field widthMehdi Amini1-2/+27
llvm-svn: 289761
2016-10-25Fix handling of %% format specifier in os_log builtins.Mehdi Amini1-1/+1
Returning `false` was stopping the parsing of further arguments, which wasn't intended. llvm-svn: 285047
2016-10-24Add support for __builtin_os_log_format[_buffer_size]Mehdi Amini1-0/+177
This reverts commit r285007 and reapply r284990, with a fix for the opencl test that I broke. Original commit message follows: These new builtins support a mechanism for logging OS events, using a printf-like format string to specify the layout of data in a buffer. The _buffer_size version of the builtin can be used to determine the size of the buffer to allocate to hold the data, and then __builtin_os_log_format can write data into that buffer. This implements format checking to report mismatches between the format string and the data arguments. Most of this code was written by Chris Willmore. Differential Revision: https://reviews.llvm.org/D25888 llvm-svn: 285019
2016-10-24Revert "Add support for __builtin_os_log_format[_buffer_size]"Mehdi Amini1-177/+0
This reverts commit r284990, two opencl test are broken llvm-svn: 285007
2016-10-24Add support for __builtin_os_log_format[_buffer_size]Mehdi Amini1-0/+177
These new builtins support a mechanism for logging OS events, using a printf-like format string to specify the layout of data in a buffer. The _buffer_size version of the builtin can be used to determine the size of the buffer to allocate to hold the data, and then __builtin_os_log_format can write data into that buffer. This implements format checking to report mismatches between the format string and the data arguments. Most of this code was written by Chris Willmore. Differential Revision: https://reviews.llvm.org/D25888 llvm-svn: 284990