summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenCXX/builtin_FUNCTION.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Make __has_builtin work with __builtin_LINE and friends.Eric Fiselier2019-05-291-4/+4
| | | | | | | | | | The source location builtins are implemented as keywords, but __has_builtin should still report true for them. This patch also fixes a test failure on systemz where the alignment of string literals is 2 not 1. llvm-svn: 361920
* Remove unneeded alignment spec from builtin_FUNCTION.cpp testEric Fiselier2019-05-161-2/+2
| | | | llvm-svn: 360951
* Fix failing source location test on WindowsEric Fiselier2019-05-161-5/+5
| | | | llvm-svn: 360947
* Implement __builtin_LINE() et. al. to support source location capture.Eric Fiselier2019-05-161-0/+41
Summary: This patch implements the source location builtins `__builtin_LINE(), `__builtin_FUNCTION()`, `__builtin_FILE()` and `__builtin_COLUMN()`. These builtins are needed to implement [`std::experimental::source_location`](https://rawgit.com/cplusplus/fundamentals-ts/v2/main.html#reflection.src_loc.creation). With the exception of `__builtin_COLUMN`, GCC also implements these builtins, and Clangs behavior is intended to match as closely as possible. Reviewers: rsmith, joerg, aaron.ballman, bogner, majnemer, shafik, martong Reviewed By: rsmith Subscribers: rnkovacs, loskutov, riccibruno, mgorny, kunitoki, alexr, majnemer, hfinkel, cfe-commits Differential Revision: https://reviews.llvm.org/D37035 llvm-svn: 360937
OpenPOWER on IntegriCloud