Home
last modified time | relevance | path

Searched refs:mDiagnostics (Results 1 – 25 of 34) sorted by relevance

12

/external/angle/src/tests/preprocessor_tests/
Dif_test.cpp670 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 …]
Dversion_test.cpp24 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 …]
Ddefine_test.cpp29 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 …]
Dpragma_test.cpp25 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()
Dextension_test.cpp24 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()
Derror_test.cpp24 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()
DPreprocessorTest.cpp37 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()
DPreprocessorTest.h24 : mPreprocessor(&mDiagnostics, &mDirectiveHandler, pp::PreprocessorSettings(shaderSpec)) in PreprocessorTest()
27 MockDiagnostics mDiagnostics; variable
47 MockDiagnostics mDiagnostics; variable
Dlocation_test.cpp85 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()
Dcomment_test.cpp61 EXPECT_CALL(mDiagnostics, print(pp::Diagnostics::PP_EOF_IN_COMMENT, _, _)); in TEST_F()
/external/angle/src/compiler/preprocessor/
DDirectiveParser.cpp155 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 …]
DMacroExpander.cpp94 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()
Dpreprocessor.y431 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()
DExpressionParser.h41 Diagnostics *mDiagnostics; variable
/external/angle/src/compiler/translator/
DValidateAST.cpp82 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 …]
DDirectiveHandler.cpp42 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 …]
DValidateSwitch.cpp49 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()
DCompiler.cpp362 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 …]
DValidateBarrierFunctionCall.cpp23 : 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
DValidateTypeSizeLimitations.cpp40 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
DCallDAG.cpp27 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
DDiagnostics.cpp96 : mDiagnostics(diagnostics) in PerformanceDiagnostics()
103 mDiagnostics->warning(loc, reason, token); in warning()
DValidateLimitations.cpp100 TDiagnostics *mDiagnostics; member in sh::__anonc7c3e94e0111::ValidateLimitationsTraverser
109 mDiagnostics(diagnostics) in ValidateLimitationsTraverser()
161 mDiagnostics->error(loc, reason, token); in error()
DDiagnostics.h62 TDiagnostics *mDiagnostics;
/external/angle/src/compiler/translator/tree_ops/
DFoldExpressions.cpp29 : 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

12