/external/angle/src/tests/preprocessor_tests/ |
D | if_test.cpp | 670 EXPECT_CALL(mDiagnostics, print(pp::Diagnostics::PP_INVALID_EXPRESSION, in TEST_F() 682 EXPECT_CALL(mDiagnostics, in TEST_F() 694 EXPECT_CALL(mDiagnostics, in TEST_F() 706 EXPECT_CALL(mDiagnostics, print(pp::Diagnostics::PP_INTEGER_OVERFLOW, pp::SourceLocation(0, 1), in TEST_F() 718 EXPECT_CALL(mDiagnostics, print(pp::Diagnostics::PP_INTEGER_OVERFLOW, pp::SourceLocation(0, 1), in TEST_F() 730 EXPECT_CALL(mDiagnostics, print(pp::Diagnostics::PP_INTEGER_OVERFLOW, pp::SourceLocation(0, 1), in TEST_F() 742 EXPECT_CALL(mDiagnostics, print(pp::Diagnostics::PP_CONDITIONAL_UNEXPECTED_TOKEN, in TEST_F() 765 EXPECT_CALL(mDiagnostics, print(_, _, _)).Times(0); in TEST_F() 774 EXPECT_CALL(mDiagnostics, print(pp::Diagnostics::PP_CONDITIONAL_ELSE_WITHOUT_IF, in TEST_F() 784 EXPECT_CALL(mDiagnostics, print(pp::Diagnostics::PP_CONDITIONAL_ELIF_WITHOUT_IF, in TEST_F() [all …]
|
D | version_test.cpp | 24 EXPECT_CALL(mDiagnostics, print(_, _, _)).Times(0); in TEST_F() 37 EXPECT_CALL(mDiagnostics, print(_, _, _)).Times(0); in TEST_F() 50 EXPECT_CALL(mDiagnostics, print(_, _, _)).Times(0); in TEST_F() 65 EXPECT_CALL(mDiagnostics, print(_, _, _)).Times(0); in TEST_F() 87 EXPECT_CALL(mDiagnostics, print(_, _, _)).Times(0); in TEST_F() 101 EXPECT_CALL(mDiagnostics, print(pp::Diagnostics::PP_EOF_IN_DIRECTIVE, _, _)); in TEST_F() 118 EXPECT_CALL(mDiagnostics, print(_, _, _)).Times(0); in TEST_F() 135 EXPECT_CALL(mDiagnostics, print(_, _, _)).Times(0); in TEST_F() 147 EXPECT_CALL(mDiagnostics, print(pp::Diagnostics::PP_VERSION_NOT_FIRST_STATEMENT, in TEST_F() 160 EXPECT_CALL(mDiagnostics, in TEST_F() [all …]
|
D | define_test.cpp | 29 EXPECT_CALL(mDiagnostics, in TEST_F() 56 EXPECT_CALL(mDiagnostics, print(pp::Diagnostics::PP_MACRO_PREDEFINED_REDEFINED, in TEST_F() 58 EXPECT_CALL(mDiagnostics, print(pp::Diagnostics::PP_MACRO_PREDEFINED_REDEFINED, in TEST_F() 60 EXPECT_CALL(mDiagnostics, print(pp::Diagnostics::PP_MACRO_PREDEFINED_REDEFINED, in TEST_F() 62 EXPECT_CALL(mDiagnostics, print(pp::Diagnostics::PP_MACRO_PREDEFINED_REDEFINED, in TEST_F() 77 EXPECT_CALL(mDiagnostics, print(pp::Diagnostics::PP_WARNING_MACRO_NAME_RESERVED, in TEST_F() 92 EXPECT_CALL(mDiagnostics, print(pp::Diagnostics::PP_WARNING_MACRO_NAME_RESERVED, in TEST_F() 107 EXPECT_CALL(mDiagnostics, in TEST_F() 125 EXPECT_CALL(mDiagnostics, print(_, _, _)).Times(0); in TEST_F() 141 EXPECT_CALL(mDiagnostics, in TEST_F() [all …]
|
D | pragma_test.cpp | 25 EXPECT_CALL(mDiagnostics, print(_, _, _)).Times(0); in TEST_F() 38 EXPECT_CALL(mDiagnostics, print(_, _, _)).Times(0); in TEST_F() 51 EXPECT_CALL(mDiagnostics, print(_, _, _)).Times(0); in TEST_F() 64 EXPECT_CALL(mDiagnostics, print(_, _, _)).Times(0); in TEST_F() 78 EXPECT_CALL(mDiagnostics, print(_, _, _)).Times(0); in TEST_F() 106 EXPECT_CALL(mDiagnostics, print(_, _, _)).Times(0); in TEST_F() 120 EXPECT_CALL(mDiagnostics, print(pp::Diagnostics::PP_EOF_IN_DIRECTIVE, _, _)); in TEST_F() 137 EXPECT_CALL(mDiagnostics, in TEST_P()
|
D | extension_test.cpp | 24 EXPECT_CALL(mDiagnostics, print(_, _, _)).Times(0); in TEST_F() 50 EXPECT_CALL(mDiagnostics, print(_, _, _)).Times(0); in TEST_F() 64 EXPECT_CALL(mDiagnostics, print(pp::Diagnostics::PP_EOF_IN_DIRECTIVE, _, _)); in TEST_F() 82 EXPECT_CALL(mDiagnostics, print(pp::Diagnostics::PP_NON_PP_TOKEN_BEFORE_EXTENSION_ESSL1, _, _)); in TEST_F() 99 EXPECT_CALL(mDiagnostics, print(pp::Diagnostics::PP_NON_PP_TOKEN_BEFORE_EXTENSION_ESSL3, _, _)); in TEST_F() 123 EXPECT_CALL(mDiagnostics, print(param.id, pp::SourceLocation(0, 1), _)); in TEST_P()
|
D | error_test.cpp | 24 EXPECT_CALL(mDiagnostics, print(_, _, _)).Times(0); in TEST_F() 37 EXPECT_CALL(mDiagnostics, print(_, _, _)).Times(0); in TEST_F() 50 EXPECT_CALL(mDiagnostics, print(_, _, _)).Times(0); in TEST_F() 74 EXPECT_CALL(mDiagnostics, print(_, _, _)).Times(0); in TEST_F() 88 EXPECT_CALL(mDiagnostics, print(pp::Diagnostics::PP_EOF_IN_DIRECTIVE, _, _)); in TEST_F()
|
D | PreprocessorTest.cpp | 37 pp::Preprocessor preprocessor(&mDiagnostics, &mDirectiveHandler, settings); in preprocess() 53 pp::Preprocessor preprocessor(&mDiagnostics, &mDirectiveHandler, in preprocess() 64 pp::Preprocessor preprocessor(&mDiagnostics, &mDirectiveHandler, in lexSingleToken() 74 pp::Preprocessor preprocessor(&mDiagnostics, &mDirectiveHandler, in lexSingleToken()
|
D | PreprocessorTest.h | 24 : mPreprocessor(&mDiagnostics, &mDirectiveHandler, pp::PreprocessorSettings(shaderSpec)) in PreprocessorTest() 27 MockDiagnostics mDiagnostics; variable 47 MockDiagnostics mDiagnostics; variable
|
D | location_test.cpp | 85 EXPECT_CALL(mDiagnostics, in TEST_F() 274 EXPECT_CALL(mDiagnostics, print(pp::Diagnostics::PP_EOF_IN_DIRECTIVE, _, _)); in TEST_F() 289 EXPECT_CALL(mDiagnostics, print(pp::Diagnostics::PP_TOKENIZER_ERROR, _, _)); in TEST_F() 304 EXPECT_CALL(mDiagnostics, print(pp::Diagnostics::PP_TOKENIZER_ERROR, _, _)); in TEST_F() 320 EXPECT_CALL(mDiagnostics, print(pp::Diagnostics::PP_TOKENIZER_ERROR, _, _)); in TEST_F() 336 EXPECT_CALL(mDiagnostics, print(pp::Diagnostics::PP_TOKENIZER_ERROR, _, _)); in TEST_F() 358 EXPECT_CALL(mDiagnostics, print(param.id, pp::SourceLocation(0, 1), _)); in TEST_P()
|
D | comment_test.cpp | 61 EXPECT_CALL(mDiagnostics, print(pp::Diagnostics::PP_EOF_IN_COMMENT, _, _)); in TEST_F()
|
/external/angle/src/compiler/preprocessor/ |
D | DirectiveParser.cpp | 155 mDiagnostics(diagnostics), in DirectiveParser() 190 mDiagnostics->report(Diagnostics::PP_CONDITIONAL_UNTERMINATED, block.location, in lex() 232 mDiagnostics->report(Diagnostics::PP_DIRECTIVE_INVALID_NAME, token->location, in parseDirective() 283 mDiagnostics->report(Diagnostics::PP_EOF_IN_DIRECTIVE, token->location, token->text); in parseDirective() 294 mDiagnostics->report(Diagnostics::PP_UNEXPECTED_TOKEN, token->location, token->text); in parseDefine() 299 mDiagnostics->report(Diagnostics::PP_MACRO_PREDEFINED_REDEFINED, token->location, in parseDefine() 305 mDiagnostics->report(Diagnostics::PP_MACRO_NAME_RESERVED, token->location, token->text); in parseDefine() 315 mDiagnostics->report(Diagnostics::PP_WARNING_MACRO_NAME_RESERVED, token->location, in parseDefine() 337 mDiagnostics->report(Diagnostics::PP_MACRO_DUPLICATE_PARAMETER_NAMES, in parseDefine() 349 mDiagnostics->report(Diagnostics::PP_UNEXPECTED_TOKEN, token->location, token->text); in parseDefine() [all …]
|
D | MacroExpander.cpp | 94 mDiagnostics(diagnostics), in MacroExpander() 139 mDiagnostics->report(Diagnostics::PP_UNEXPECTED_TOKEN, token->location, in lex() 151 mDiagnostics->report(Diagnostics::PP_UNEXPECTED_TOKEN, token->location, in lex() 372 mDiagnostics->report(Diagnostics::PP_MACRO_UNTERMINATED_INVOCATION, identifier.location, in collectMacroArgs() 425 mDiagnostics->report(id, identifier.location, identifier.text); in collectMacroArgs() 438 mDiagnostics->report(Diagnostics::PP_MACRO_INVOCATION_CHAIN_TOO_DEEP, token.location, in collectMacroArgs() 444 MacroExpander expander(&lexer, mMacroSet, mDiagnostics, nestedSettings, mParseDefined); in collectMacroArgs() 455 mDiagnostics->report(Diagnostics::PP_OUT_OF_MEMORY, token.location, token.text); in collectMacroArgs() 473 mDiagnostics->report(Diagnostics::PP_OUT_OF_MEMORY, token.location, token.text); in replaceMacroParams()
|
D | preprocessor.y | 431 mDiagnostics(diagnostics) in ExpressionParser() 442 context.diagnostics = mDiagnostics; in parse() 458 mDiagnostics->report(Diagnostics::PP_OUT_OF_MEMORY, token->location, ""); in parse() 463 mDiagnostics->report(Diagnostics::PP_INTERNAL_ERROR, token->location, ""); in parse()
|
D | ExpressionParser.h | 41 Diagnostics *mDiagnostics; variable
|
/external/angle/src/compiler/translator/ |
D | ValidateAST.cpp | 82 TDiagnostics *mDiagnostics; member in sh::__anon3c5a39490111::ValidateAST 242 : TIntermTraverser(true, false, true, nullptr), mOptions(options), mDiagnostics(diagnostics) in ValidateAST() 274 mDiagnostics->error(node->getLine(), "Found child with two parents", in visitNode() 290 mDiagnostics->error(node->getLine(), "Found dead code after branch", in visitNode() 357 mDiagnostics->error(location, in visitStructOrInterfaceBlockDeclaration() 396 mDiagnostics->error(location, in visitStructUsage() 409 mDiagnostics->error(location, in visitStructUsage() 433 mDiagnostics->error(node->getLine(), in visitBuiltInFunction() 441 mDiagnostics->error(node->getLine(), in visitBuiltInFunction() 460 mDiagnostics->error(node->getLine(), in visitFunctionCall() [all …]
|
D | DirectiveHandler.cpp | 42 mDiagnostics(diagnostics), in TDirectiveHandler() 51 mDiagnostics.error(loc, msg.c_str(), ""); in handleError() 69 mDiagnostics.error( in handlePragma() 108 mDiagnostics.report(angle::pp::Diagnostics::PP_UNRECOGNIZED_PRAGMA, loc, name); in handlePragma() 114 mDiagnostics.error(loc, "invalid pragma value - 'on' or 'off' expected", value.c_str()); in handlePragma() 128 mDiagnostics.error(loc, "behavior invalid", name.c_str()); in handleExtension() 136 mDiagnostics.error(loc, "extension cannot have 'require' behavior", name.c_str()); in handleExtension() 140 mDiagnostics.error(loc, "extension cannot have 'enable' behavior", name.c_str()); in handleExtension() 267 mDiagnostics.error(loc, "extension is not supported", name.c_str()); in handleExtension() 272 mDiagnostics.warning(loc, "extension is not supported", name.c_str()); in handleExtension() [all …]
|
D | ValidateSwitch.cpp | 49 TDiagnostics *mDiagnostics; member in sh::__anon4ce18b530111::ValidateSwitch 76 mDiagnostics(diagnostics), in ValidateSwitch() 186 mDiagnostics->error(node->getLine(), "label statement nested inside control flow", nodeStr); in visitCase() 196 mDiagnostics->error(node->getLine(), "duplicate default label", nodeStr); in visitCase() 210 mDiagnostics->error(condition->getLine(), in visitCase() 221 mDiagnostics->error(condition->getLine(), "duplicate case label", nodeStr); in visitCase() 234 mDiagnostics->error(condition->getLine(), "duplicate case label", nodeStr); in visitCase() 285 mDiagnostics->error(loc, "statement before the first label", "switch"); in validateInternal() 292 mDiagnostics->error( in validateInternal() 298 mDiagnostics->error(loc, "too complex expressions inside a switch statement", "switch"); in validateInternal()
|
D | Compiler.cpp | 362 mDiagnostics(mInfoSink.info), in TCompiler() 475 compileOptions, !IsDesktopGLSpec(mShaderSpec), &mDiagnostics, in compileTreeImpl() 517 mDiagnostics.globalError("unsupported shader version"); in checkShaderVersion() 527 mDiagnostics.globalError("Compute shader is not supported in this shader version."); in checkShaderVersion() 535 mDiagnostics.globalError( in checkShaderVersion() 555 mDiagnostics.globalError( in checkShaderVersion() 680 bool valid = ValidateAST(root, &mDiagnostics, mValidateASTOptions); in validateAST() 756 mDiagnostics.globalError("internal compiler error translating pixel local storage"); in checkAndSimplifyAST() 768 !ValidateLimitations(root, mShaderType, &mSymbolTable, &mDiagnostics)) in checkAndSimplifyAST() 773 if (shouldLimitTypeSizes() && !ValidateTypeSizeLimitations(root, &mSymbolTable, &mDiagnostics)) in checkAndSimplifyAST() [all …]
|
D | ValidateBarrierFunctionCall.cpp | 23 : TIntermTraverser(true, false, true), mDiagnostics(diagnostics) in Traverser() 56 mDiagnostics->error(node->getLine(), in visitAggregate() 67 mDiagnostics->error( in visitAggregate() 86 TDiagnostics *mDiagnostics = nullptr; member in sh::__anonbbd2f9ca0111::Traverser
|
D | ValidateTypeSizeLimitations.cpp | 40 mDiagnostics(diagnostics), in ValidateTypeSizeLimitationsTraverser() 120 mDiagnostics->error( in validateTotalPrivateVariableSize() 130 mDiagnostics->error(loc, reason, token.data()); in error() 233 TDiagnostics *mDiagnostics; member in sh::__anon60fa484b0111::ValidateTypeSizeLimitationsTraverser
|
D | CallDAG.cpp | 27 mDiagnostics(diagnostics), in CallDAGCreator() 242 if (mDiagnostics) in assignIndicesInternal() 245 mDiagnostics->globalError(errorStr.c_str()); in assignIndicesInternal() 252 TDiagnostics *mDiagnostics; member in sh::CallDAG::CallDAGCreator
|
D | Diagnostics.cpp | 96 : mDiagnostics(diagnostics) in PerformanceDiagnostics() 103 mDiagnostics->warning(loc, reason, token); in warning()
|
D | ValidateLimitations.cpp | 100 TDiagnostics *mDiagnostics; member in sh::__anonc7c3e94e0111::ValidateLimitationsTraverser 109 mDiagnostics(diagnostics) in ValidateLimitationsTraverser() 161 mDiagnostics->error(loc, reason, token); in error()
|
D | Diagnostics.h | 62 TDiagnostics *mDiagnostics;
|
/external/angle/src/compiler/translator/tree_ops/ |
D | FoldExpressions.cpp | 29 : TIntermTraverser(true, false, false), mDiagnostics(diagnostics), mDidReplace(false) in FoldExpressionsTraverser() 39 TIntermTyped *folded = node->fold(mDiagnostics); in visitTernary() 51 TIntermTyped *folded = node->fold(mDiagnostics); in visitAggregate() 63 TIntermTyped *folded = node->fold(mDiagnostics); in visitBinary() 75 TIntermTyped *folded = node->fold(mDiagnostics); in visitUnary() 87 TIntermTyped *folded = node->fold(mDiagnostics); in visitSwizzle() 98 TDiagnostics *mDiagnostics; member in sh::__anonc51c1a8f0111::FoldExpressionsTraverser
|