Reland "[Attr] Fix parameter indexing for several attributes"
authorJoel E. Denny <jdenny.ornl@gmail.com>
Tue, 13 Mar 2018 14:51:22 +0000 (14:51 +0000)
committerJoel E. Denny <jdenny.ornl@gmail.com>
Tue, 13 Mar 2018 14:51:22 +0000 (14:51 +0000)
commit8150810556479b04e00578c9d7d4c30814898694
tree459599c964149019a07d0e26c4dfe14dfc441f3c
parent204edeca5661d7dc80139d43507a0e268afff330
Reland "[Attr] Fix parameter indexing for several attributes"

Relands r326602 (reverted in r326862) with new test and fix for
PR36620.

Differential Revision: https://reviews.llvm.org/D43248

llvm-svn: 327405
17 files changed:
clang/include/clang/AST/Attr.h
clang/include/clang/Basic/Attr.td
clang/lib/AST/ExprConstant.cpp
clang/lib/CodeGen/CGCall.cpp
clang/lib/Sema/SemaChecking.cpp
clang/lib/Sema/SemaDecl.cpp
clang/lib/Sema/SemaDeclAttr.cpp
clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
clang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp
clang/lib/StaticAnalyzer/Checkers/NonNullParamChecker.cpp
clang/test/CodeGenCXX/alloc-size.cpp
clang/test/Frontend/ast-attr.cpp [new file with mode: 0644]
clang/test/Misc/ast-dump-attr.cpp
clang/test/Sema/attr-ownership.cpp [new file with mode: 0644]
clang/test/Sema/attr-print.cpp
clang/test/Sema/error-type-safety.cpp
clang/utils/TableGen/ClangAttrEmitter.cpp