[PATCH] D41087: [Preprocessor] Implement __is_target_{arch|vendor|os|environment} function-like builtin macros

Alex Lorenz via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Dec 13 15:39:28 PST 2017


arphaman updated this revision to Diff 126856.
arphaman marked an inline comment as done.
arphaman added a comment.

- Use separate functions for checks.
- "ARM" should match "thumb" arch too.


https://reviews.llvm.org/D41087

Files:
  include/clang/Lex/Preprocessor.h
  lib/Lex/PPMacroExpansion.cpp
  test/Preprocessor/is_target.c
  test/Preprocessor/is_target_arm.c
  test/Preprocessor/is_target_os_darwin.c
  test/Preprocessor/is_target_unknown.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D41087.126856.patch
Type: text/x-patch
Size: 11072 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20171213/6f0e53a3/attachment-0001.bin>


More information about the cfe-commits mailing list