]> granicus.if.org Git - clang/commit
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)
commit86873839af7530176e3a062ecbf7edf74048922c
treee4fc7bc381fc6670c5819104d6db1a9ef7868a17
parent5240ba5698fc167c5f124994ec80eb1a896528fd
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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@361920 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Lex/PPMacroExpansion.cpp
test/CodeGenCXX/builtin_FUNCTION.cpp
test/Preprocessor/feature_tests.c