Mentions légales du service

Skip to content
Snippets Groups Projects
  • Richard Smith's avatar
    a64a4977
    Re-commit r273548, reverted in r273589, with a fix to not produce · a64a4977
    Richard Smith authored
    -Wfor-loop-analysis warnings for a for-loop with a condition variable. In such
    a case, the loop condition variable is modified on each iteration of the loop
    by definition.
    
    Original commit message:
    
    Rearrange condition handling so that semantic checks on a condition variable
    are performed before the other substatements of the construct are parsed,
    rather than deferring them until the end. This allows better error recovery
    from semantic errors in the condition, improves diagnostic order, and is a
    prerequisite for C++17 constexpr if.
    
    
    git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@273600 91177308-0d34-0410-b5e6-96231b3b80d8
    a64a4977
    History
    Re-commit r273548, reverted in r273589, with a fix to not produce
    Richard Smith authored
    -Wfor-loop-analysis warnings for a for-loop with a condition variable. In such
    a case, the loop condition variable is modified on each iteration of the loop
    by definition.
    
    Original commit message:
    
    Rearrange condition handling so that semantic checks on a condition variable
    are performed before the other substatements of the construct are parsed,
    rather than deferring them until the end. This allows better error recovery
    from semantic errors in the condition, improves diagnostic order, and is a
    prerequisite for C++17 constexpr if.
    
    
    git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@273600 91177308-0d34-0410-b5e6-96231b3b80d8