LCOV - code coverage report
Current view: top level - gfx/angle/src/compiler/translator - ValidateMaxParameters.h (source / functions) Hit Total Coverage
Test: output.info Lines: 0 1 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 2 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : //
       2             : // Copyright (c) 2016 The ANGLE Project Authors. All rights reserved.
       3             : // Use of this source code is governed by a BSD-style license that can be
       4             : // found in the LICENSE file.
       5             : //
       6             : // ValidateMaxParameters checks if function definitions have more than a set number of parameters.
       7             : 
       8             : #ifndef COMPILER_TRANSLATOR_VALIDATEMAXPARAMETERS_H_
       9             : #define COMPILER_TRANSLATOR_VALIDATEMAXPARAMETERS_H_
      10             : 
      11             : #include "compiler/translator/IntermNode.h"
      12             : 
      13             : namespace sh
      14             : {
      15             : 
      16           0 : class ValidateMaxParameters : public TIntermTraverser
      17             : {
      18             :   public:
      19             :     // Returns false if maxParameters is exceeded.
      20             :     static bool validate(TIntermNode *root, unsigned int maxParameters);
      21             : 
      22             :   protected:
      23             :     bool visitAggregate(Visit visit, TIntermAggregate *node) override;
      24             : 
      25             :   private:
      26             :     ValidateMaxParameters(unsigned int maxParameters);
      27             : 
      28             :     unsigned int mMaxParameters;
      29             :     bool mValid;
      30             : };
      31             : 
      32             : }  // namespace sh
      33             : 
      34             : #endif  // COMPILER_TRANSLATOR_VALIDATEMAXPARAMETERS_H_

Generated by: LCOV version 1.13