aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaExceptionSpec.cpp
diff options
context:
space:
mode:
authorSebastian Redl <sebastian.redl@getdesigned.at>2009-10-10 12:04:10 +0000
committerSebastian Redl <sebastian.redl@getdesigned.at>2009-10-10 12:04:10 +0000
commit2c7588f1260c6655cfb73126b695d2f79ae170bb (patch)
treeabd2ec9ba0168a9f0d4197ca1e55725e4b6d6270 /lib/Sema/SemaExceptionSpec.cpp
parent6e24726524c2b51b31bb4b622aa678a46b024f42 (diff)
Implement the core checking for compatible exception specifications in assignment and initialization.
The exception specification of the assignee must be the same or a subset of the target. In addition, exception specifications on arguments and return types must be equivalent, but this is not implemented yet. This currently produces two diagnostics for every invalid assignment/initialization, due to the diagnostic produced outside PerformImplicitConversion, e.g. in CheckSingleInitializer. I don't know how to suppress this; in any case I think it is the wrong place for a diagnostic, since there are other diagnostics produced inside the function. So I'm leaving it as it is for the moment. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@83710 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaExceptionSpec.cpp')
0 files changed, 0 insertions, 0 deletions