]> granicus.if.org Git - clang/commit
Change all self assignments X=X to (void)X, so that we can turn on a
authorJeffrey Yasskin <jyasskin@google.com>
Thu, 23 Dec 2010 01:01:28 +0000 (01:01 +0000)
committerJeffrey Yasskin <jyasskin@google.com>
Thu, 23 Dec 2010 01:01:28 +0000 (01:01 +0000)
commitc6ed729f669044f5072a49d79041f455d971ece3
treef501fa12e90e8eca94f333e4d8d5cd3771815b73
parent34c2f8c8a16226f757947bf08c5f799d99c9ac1e
Change all self assignments X=X to (void)X, so that we can turn on a
new gcc warning that complains on self-assignments and
self-initializations.  Fix one bug found by the warning, in which one
clang::OverloadCandidate constructor failed to initialize its
FunctionTemplate member.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@122459 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Sema/CodeCompleteConsumer.h
lib/AST/ASTContext.cpp
lib/AST/ExprConstant.cpp
lib/GR/Checkers/ExprEngine.cpp
lib/Lex/PPDirectives.cpp
lib/Sema/SemaCXXCast.cpp
lib/Sema/SemaDecl.cpp