summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaOverload.h
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2009-11-06 00:23:08 +0000
committerFariborz Jahanian <fjahanian@apple.com>2009-11-06 00:23:08 +0000
commit5582451e914f4bdfb4754ad6dd4ed8b457d34d01 (patch)
tree6faea7bc64f84e41cb4c042fd0a88ad93166e282 /clang/lib/Sema/SemaOverload.h
parent701e4e9b2b7193bc059c60b211fef8f08fcb7761 (diff)
downloadbcm5719-llvm-5582451e914f4bdfb4754ad6dd4ed8b457d34d01.tar.gz
bcm5719-llvm-5582451e914f4bdfb4754ad6dd4ed8b457d34d01.zip
This patch implements Sema for clause 13.3.3.1p4.
It has to do with vararg constructors used as conversion functions. Code gen needs work. This is WIP. llvm-svn: 86207
Diffstat (limited to 'clang/lib/Sema/SemaOverload.h')
-rw-r--r--clang/lib/Sema/SemaOverload.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/lib/Sema/SemaOverload.h b/clang/lib/Sema/SemaOverload.h
index 898393a9e4d..0d1f37aa4be 100644
--- a/clang/lib/Sema/SemaOverload.h
+++ b/clang/lib/Sema/SemaOverload.h
@@ -156,6 +156,14 @@ namespace clang {
/// object parameter of the conversion function.
StandardConversionSequence Before;
+ /// EllipsisConversion - When this is true, it means user-defined
+ /// conversion sequence starts with a ... (elipsis) conversion, instead of
+ /// a standard conversion. In this case, 'Before' field must be ignored.
+ // FIXME. I much rather put this as the first field. But there seems to be
+ // a gcc code gen. bug which causes a crash in a test. Putting it here seems
+ // to work around the crash.
+ bool EllipsisConversion : 1;
+
/// After - Represents the standard conversion that occurs after
/// the actual user-defined conversion.
StandardConversionSequence After;
OpenPOWER on IntegriCloud