Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
  • This project
    • Loading...
  • Sign in / Register
A
angle
  • Project
    • Overview
    • Details
    • Activity
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 0
    • Issues 0
    • List
    • Board
    • Labels
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Chen Yisong
  • angle
  • Repository

Switch branch/tag
  • angle
  • src
  • compiler.gypi
Find file
BlameHistoryPermalink
  • Olli Etuaho's avatar
    Add validation for the structure of switch statements · ac5274df
    Olli Etuaho authored Feb 20, 2015
    Implement a traverser to check for the following errors:
    -More than one default or replicated constant expression
    -No statement between a label and the end of a switch statement
    -Statements in a switch statement before the first case statement
    -Mismatch between the type of init-expression and type of a case label
    -Case or default label nested inside other control flow nested within the
    corresponding switch
    
    Tested by manually disabling shading language version checks for switch
    and by manually enabling case statements in a Chromium build and checking
    that the expected errors are generated.
    
    BUG=angle:921
    
    Change-Id: I99c49c17c8b520849adbe4d8521e46cb10e20e41
    Reviewed-on: https://chromium-review.googlesource.com/251524Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org>
    Reviewed-by: 's avatarOlli Etuaho <oetuaho@nvidia.com>
    Tested-by: 's avatarOlli Etuaho <oetuaho@nvidia.com>
    ac5274df
compiler.gypi 13.8 KB
EditWeb IDE
×

Replace compiler.gypi

Attach a file by drag & drop or click to upload


Cancel
A new branch will be created in your fork and a new merge request will be started.