Make __has_builtin work with __builtin_LINE and friends.
authorEric Fiselier <eric@efcs.ca>
Wed, 29 May 2019 03:15:36 +0000 (03:15 +0000)
committerEric Fiselier <eric@efcs.ca>
Wed, 29 May 2019 03:15:36 +0000 (03:15 +0000)
commit586831b2b098fe572b34f411ddaff3b21b053a4b
tree9748365ccf8f3f0f0d755cac16d081e28363630b
parentf6cb3bcb4ccbfa288d500c7ba54396611aaf07df
Make __has_builtin work with __builtin_LINE and friends.

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
clang/lib/Lex/PPMacroExpansion.cpp
clang/test/CodeGenCXX/builtin_FUNCTION.cpp
clang/test/Preprocessor/feature_tests.c