Skip to content
  1. Sep 10, 2008
  2. Sep 09, 2008
    • Argyrios Kyrtzidis's avatar
      Make IdentifierResolver::isDeclInScope regard declarations of a parent... · 2bdac735
      Argyrios Kyrtzidis authored
      Make IdentifierResolver::isDeclInScope regard declarations of a parent 'control' scope as part of the current scope.
      The 'control' scope is the 'condition' scope of if/switch/while statements and the scope that contains the for-init-statement and 'condition' of a for statement.
      
      e.g:
      if (int x = 0 /*'control' scope*/) {
        // x will be regarded as part of this substatement scope.
      } else {
        // and as part of this substatement scope too.
      }
      
      llvm-svn: 56020
      2bdac735
Loading