llvm-project/clang/test/SemaCXX/Inputs
Eric Fiselier 708afb56c1 Implement __builtin_LINE() et. al. to support source location capture.
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
2019-05-16 21:04:15 +00:00
..
array-bounds-system-header.h
header-with-pragma-optimize-off.h
malloc.h
nullability-completeness.h
override-system-header.h
register.h
source-location-file.h Implement __builtin_LINE() et. al. to support source location capture. 2019-05-16 21:04:15 +00:00
std-compare.h [C++2a] Implement operator<=> CodeGen and ExprConstant 2018-05-07 21:07:10 +00:00
std-coroutine.h
warn-new-overaligned-3.h
warn-unused-variables.h
warn-zero-nullptr.h [Sema] -Wzero-as-null-pointer-constant: don't warn for system macros other than NULL. 2017-10-26 13:18:14 +00:00