diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2009-11-07 20:20:40 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2009-11-07 20:20:40 +0000 |
commit | d7aa9d8a636e1555b4706949f6eee4a867b0fa2b (patch) | |
tree | d2e2a2f828bae585512f3c9075c4bd9dcd6a9c15 /clang/lib/Sema/Sema.h | |
parent | 8b5278a46639b7695d2fd6d1054c21fe1872121f (diff) | |
download | bcm5719-llvm-d7aa9d8a636e1555b4706949f6eee4a867b0fa2b.tar.gz bcm5719-llvm-d7aa9d8a636e1555b4706949f6eee4a867b0fa2b.zip |
Patch to gives an error that at least points users in the direction of the error, rather
than an error about incompatible types. Patch by Sean Hunt.
llvm-svn: 86402
Diffstat (limited to 'clang/lib/Sema/Sema.h')
-rw-r--r-- | clang/lib/Sema/Sema.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/lib/Sema/Sema.h b/clang/lib/Sema/Sema.h index 45d6b57437d..84d4c598b2c 100644 --- a/clang/lib/Sema/Sema.h +++ b/clang/lib/Sema/Sema.h @@ -3485,6 +3485,12 @@ public: /// CompatiblePointerDiscardsQualifiers - The assignment discards /// c/v/r qualifiers, which we accept as an extension. CompatiblePointerDiscardsQualifiers, + + /// IncompatibleMultiPointerQualifiers - The assignment is between two + /// multi-level pointer types, and the qualifiers other than the first two + /// levels differ e.g. char ** -> const char **. We disallow this. + /// FIXME: GCC only warns for this - should we do the same? + IncompatibleMultiPointerQualifiers, /// IncompatibleVectors - The assignment is between two vector types that /// have the same size, which we accept as an extension. |