Просмотр исходного кода

video_core/{ast, expr}: Organize forward declaration

Keeps them alphabetically sorted for readability.
Lioncash 6 лет назад
Родитель
Сommit
43503a69bf
2 измененных файлов с 10 добавлено и 10 удалено
  1. 7 7
      src/video_core/shader/ast.h
  2. 3 3
      src/video_core/shader/expr.h

+ 7 - 7
src/video_core/shader/ast.h

@@ -18,17 +18,17 @@
 namespace VideoCommon::Shader {
 namespace VideoCommon::Shader {
 
 
 class ASTBase;
 class ASTBase;
-class ASTProgram;
-class ASTIfThen;
-class ASTIfElse;
-class ASTBlockEncoded;
 class ASTBlockDecoded;
 class ASTBlockDecoded;
-class ASTVarSet;
+class ASTBlockEncoded;
+class ASTBreak;
+class ASTDoWhile;
 class ASTGoto;
 class ASTGoto;
+class ASTIfElse;
+class ASTIfThen;
 class ASTLabel;
 class ASTLabel;
-class ASTDoWhile;
+class ASTProgram;
 class ASTReturn;
 class ASTReturn;
-class ASTBreak;
+class ASTVarSet;
 
 
 using ASTData = std::variant<ASTProgram, ASTIfThen, ASTIfElse, ASTBlockEncoded, ASTBlockDecoded,
 using ASTData = std::variant<ASTProgram, ASTIfThen, ASTIfElse, ASTBlockEncoded, ASTBlockDecoded,
                              ASTVarSet, ASTGoto, ASTLabel, ASTDoWhile, ASTReturn, ASTBreak>;
                              ASTVarSet, ASTGoto, ASTLabel, ASTDoWhile, ASTReturn, ASTBreak>;

+ 3 - 3
src/video_core/shader/expr.h

@@ -15,12 +15,12 @@ using Tegra::Shader::ConditionCode;
 using Tegra::Shader::Pred;
 using Tegra::Shader::Pred;
 
 
 class ExprAnd;
 class ExprAnd;
-class ExprOr;
+class ExprBoolean;
+class ExprCondCode;
 class ExprNot;
 class ExprNot;
+class ExprOr;
 class ExprPredicate;
 class ExprPredicate;
-class ExprCondCode;
 class ExprVar;
 class ExprVar;
-class ExprBoolean;
 
 
 using ExprData =
 using ExprData =
     std::variant<ExprVar, ExprCondCode, ExprPredicate, ExprNot, ExprOr, ExprAnd, ExprBoolean>;
     std::variant<ExprVar, ExprCondCode, ExprPredicate, ExprNot, ExprOr, ExprAnd, ExprBoolean>;