mirror of
https://github.com/llvm/llvm-project.git
synced 2025-05-03 09:26:06 +00:00

it, importers of B should not see the macro. This is complicated by the fact that A's macro could also be visible through a different path. The rules (as hashed out on cfe-commits) are included as a documentation update in this change. With this, the number of regressions in libc++'s testsuite when modules are enabled drops from 47 to 7. Those remaining 7 are also macro-related, and are due to remaining bugs in this change (in particular, the handling of submodules is imperfect). llvm-svn: 202560
22 lines
307 B
C
22 lines
307 B
C
@import macros_top;
|
|
#define RIGHT unsigned short
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#define LEFT_RIGHT_IDENTICAL int
|
|
#define LEFT_RIGHT_DIFFERENT int
|
|
#define LEFT_RIGHT_DIFFERENT2 int
|
|
#define LEFT_RIGHT_DIFFERENT3 int
|
|
|
|
#undef TOP_RIGHT_REDEF
|
|
#define TOP_RIGHT_REDEF float
|
|
|
|
#define FN_ADD(x, y) (x+y)
|
|
|
|
#undef TOP_OTHER_DEF_RIGHT_UNDEF
|