Properly track l-paren of a CXXFucntionalCastExpr.
authorEli Friedman <eli.friedman@gmail.com>
Thu, 15 Aug 2013 22:02:56 +0000 (22:02 +0000)
committerEli Friedman <eli.friedman@gmail.com>
Thu, 15 Aug 2013 22:02:56 +0000 (22:02 +0000)
commit89fe0d5842469f231c2a0649ff6d88ade892e6e8
tree2e2d76928ebf201f5011b76e5c2340e4c01a780a
parent35b22f69851dee2fb9e17d94ccf26967b5cf3399
Properly track l-paren of a CXXFucntionalCastExpr.

In addition to storing more useful information in the AST, this
fixes a semantic check in template instantiation which checks whether
the l-paren location is valid.

Fixes PR16903.

llvm-svn: 188495
clang/include/clang/AST/ExprCXX.h
clang/lib/AST/Expr.cpp
clang/lib/AST/ExprCXX.cpp
clang/lib/Analysis/ReachableCode.cpp
clang/lib/Sema/SemaCast.cpp
clang/lib/Sema/SemaExprCXX.cpp
clang/lib/Sema/TreeTransform.h
clang/lib/Serialization/ASTReaderStmt.cpp
clang/lib/Serialization/ASTWriterStmt.cpp
clang/test/SemaTemplate/instantiate-init.cpp