diff options
author | Douglas Gregor <dgregor@apple.com> | 2011-10-19 06:04:55 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2011-10-19 06:04:55 +0000 |
commit | e248eea2149166cc023e0b8b3476dff20a03a129 (patch) | |
tree | cf0ec7045613fc04337983c6faf05b891786b2f7 /clang/lib/Sema/DeclSpec.cpp | |
parent | 5fdc4de718769dc810cbaae4784fd6fc0e1f7e2a (diff) | |
download | bcm5719-llvm-e248eea2149166cc023e0b8b3476dff20a03a129.tar.gz bcm5719-llvm-e248eea2149166cc023e0b8b3476dff20a03a129.zip |
Improve the warning for cv-qualifiers on free functions, from Ahmed Charles!
llvm-svn: 142478
Diffstat (limited to 'clang/lib/Sema/DeclSpec.cpp')
-rw-r--r-- | clang/lib/Sema/DeclSpec.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/lib/Sema/DeclSpec.cpp b/clang/lib/Sema/DeclSpec.cpp index 18ecf9ef52e..2fb4f35cd81 100644 --- a/clang/lib/Sema/DeclSpec.cpp +++ b/clang/lib/Sema/DeclSpec.cpp @@ -151,6 +151,9 @@ DeclaratorChunk DeclaratorChunk::getFunction(bool hasProto, bool isVariadic, unsigned TypeQuals, bool RefQualifierIsLvalueRef, SourceLocation RefQualifierLoc, + SourceLocation ConstQualifierLoc, + SourceLocation + VolatileQualifierLoc, SourceLocation MutableLoc, ExceptionSpecificationType ESpecType, @@ -177,6 +180,8 @@ DeclaratorChunk DeclaratorChunk::getFunction(bool hasProto, bool isVariadic, I.Fun.ArgInfo = 0; I.Fun.RefQualifierIsLValueRef = RefQualifierIsLvalueRef; I.Fun.RefQualifierLoc = RefQualifierLoc.getRawEncoding(); + I.Fun.ConstQualifierLoc = ConstQualifierLoc.getRawEncoding(); + I.Fun.VolatileQualifierLoc = VolatileQualifierLoc.getRawEncoding(); I.Fun.MutableLoc = MutableLoc.getRawEncoding(); I.Fun.ExceptionSpecType = ESpecType; I.Fun.ExceptionSpecLoc = ESpecLoc.getRawEncoding(); |