]> granicus.if.org Git - clang/commit
Improve the tracking of source locations for parentheses in constructor calls.
authorChandler Carruth <chandlerc@gmail.com>
Mon, 25 Oct 2010 08:47:36 +0000 (08:47 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Mon, 25 Oct 2010 08:47:36 +0000 (08:47 +0000)
commit428edafa9eb80e01dd40aab31d4166a787a741e1
tree618b88a0399873548adeeeb442cb87be3426862d
parent8c5e5d6d8a316af5a9842169f541cac49717887d
Improve the tracking of source locations for parentheses in constructor calls.
This adds them where missing, and traces them through PCH. We fix at least one
bug in the extents found by the Index library, and make a lot of refactoring
tools which care about the exact formulation of a constructor call easier to
write. Also some minor cleanups to more consistently follow the friend pattern
instead of the setter pattern when rebuilding a serialized AST.

Patch originally by Samuel Benzaquen.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@117254 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/ExprCXX.h
include/clang/Sema/Sema.h
lib/AST/ExprCXX.cpp
lib/Sema/SemaDeclCXX.cpp
lib/Sema/SemaExprCXX.cpp
lib/Sema/SemaInit.cpp
lib/Sema/TreeTransform.h
lib/Serialization/ASTReaderStmt.cpp
lib/Serialization/ASTWriterStmt.cpp
test/Index/load-stmts.cpp