llvm-project/clang/lib
Douglas Gregor 85970ca84c Added a warning when referencing an if's condition variable in the
"else" clause, e.g.,

  if (int X = foo()) {
  } else {
    if (X) { // warning: X is always zero in this context
    }
  }

Fixes rdar://6425550 and lets me think about something other than
DeclContext.

llvm-svn: 60858
2008-12-10 23:01:14 +00:00
..
AST The "real" fix for <rdar://problem/6424347> clang on xcode: Assertion failed: (0 && "unexpected type"), function mergeTypes, 2008-12-10 22:14:21 +00:00
Analysis Fix to BasicStoreManager::getElementLValue: If the base region is a symbol, layer an AnonTypedRegion on top of it. 2008-12-09 23:50:57 +00:00
Basic instead of forcing blocks on by default, make them default to off, but let 2008-12-04 23:20:07 +00:00
CodeGen Append an extra newline to the module inline asm if it's not empty. 2008-12-10 02:21:04 +00:00
Driver add missing gentoo c++ include paths 2008-12-07 12:11:37 +00:00
Headers Define NULL to __null in C++, so that it's guaranteed to have the same size as a pointer 2008-12-01 17:20:57 +00:00
Lex Declare PerIDCache as IdentifierInfo** instead of void*. This is just cleaner. No performance change. 2008-12-10 19:40:23 +00:00
Parse Added a warning when referencing an if's condition variable in the 2008-12-10 23:01:14 +00:00
Rewrite CMake: Builds and installs clang binary and libs (no docs yet). It 2008-10-26 00:56:18 +00:00
Sema Added a warning when referencing an if's condition variable in the 2008-12-10 23:01:14 +00:00
CMakeLists.txt CMake: Builds and installs clang binary and libs (no docs yet). It 2008-10-26 00:56:18 +00:00
Makefile add a libDriver, for now only move the text diangostics stuff from Driver to there 2008-08-05 23:33:20 +00:00