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
  • translator
  • glslang_tab.cpp
Find file
BlameHistoryPermalink
  • Olli Etuaho's avatar
    Validate empty statements in switch statements · b8ee9dd3
    Olli Etuaho authored Oct 30, 2017
    Even an empty statement like ";" is a statement according to the
    grammar. They should not be allowed in switch statements before the
    first case statement, but on the other hand a switch statement that
    has just an empty statement after the last statement is valid.
    
    Now the parser creates AST nodes from empty statements so that we can
    validate switch statements correctly. However, they are pruned shortly
    after parsing completes in PruneNoOps, so they don't affect further
    processing of the AST.
    
    BUG=angleproject:2181
    TEST=angle_unittests
    
    Change-Id: I1085056fc34b146142546fc5f2b7f3124b910ab9
    Reviewed-on: https://chromium-review.googlesource.com/743621Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org>
    Commit-Queue: Olli Etuaho <oetuaho@nvidia.com>
    b8ee9dd3
glslang_tab.cpp 162 KB
EditWeb IDE
×

Replace glslang_tab.cpp

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.