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
  • util.cpp
Find file
BlameHistoryPermalink
  • Olli Etuaho's avatar
    Clarify error checking function names in the GLSL parser · 856c497e
    Olli Etuaho authored Aug 08, 2016
    Most error checking functions in ParseContext used to follow a format
    like <property>ErrorCheck. Sometimes this function would check that
    the node/value would have <property>, sometimes it would check that
    the node/value would not have it, which was confusing. Change most of
    these functions to use a lot more descriptive names, which clearly
    communicate what they are checking for.
    
    Also includes a bit of refactoring in constructorErrorCheck(), so that
    the function only checks for errors rather than also setting the type
    of the constructor node.
    
    Also make TType::arraySize unsigned, and return a sanitized size from
    checkIsValidArraySize() instead of using an output parameter.
    
    BUG=angleproject:911
    TEST=angle_unittests
    
    Change-Id: Id9767b8c79594ad3f782f801ea68eb96df721a31
    Reviewed-on: https://chromium-review.googlesource.com/367070Reviewed-by: 's avatarGeoff Lang <geofflang@chromium.org>
    Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org>
    Commit-Queue: Olli Etuaho <oetuaho@nvidia.com>
    856c497e
util.cpp 14.9 KB
EditWeb IDE
×

Replace util.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.