diff options
author | Douglas Gregor <dgregor@apple.com> | 2011-10-24 22:31:10 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2011-10-24 22:31:10 +0000 |
commit | 3896fc5d4daaf003e451e797e37de57dd8cf9cd5 (patch) | |
tree | 85063bfcf30ec1556106e76048709cf5c811aace /lib/Driver/Tools.cpp | |
parent | b000459901bc1c5a55246da83550ad427ad4c4ff (diff) |
Rework Microsoft __if_exists/__if_not_exists parsing and semantic
analysis to separate dependent names from non-dependent names. For
dependent names, we'll behave differently from Visual C++:
- For __if_exists/__if_not_exists at class scope, we'll just warn
and then ignore them.
- For __if_exists/__if_not_exists in statements, we'll treat the
inner statement as a compound statement, which we only instantiate
in templates where the dependent name (after instantiation)
exists. This behavior is different from VC++, but it's as close as
we can get without encroaching ridiculousness.
The latter part (dependent statements) is not yet implemented.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@142864 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/Tools.cpp')
0 files changed, 0 insertions, 0 deletions