Home
last modified time | relevance | path

Searched refs:mDiagnostics (Results 1 – 25 of 45) 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()
39 EXPECT_CALL(mDiagnostics, print(_, _, _)).Times(0); in TEST_F()
61 EXPECT_CALL(mDiagnostics, print(_, _, _)).Times(0); in TEST_F()
75 EXPECT_CALL(mDiagnostics, print(pp::Diagnostics::PP_EOF_IN_DIRECTIVE, _, _)); in TEST_F()
92 EXPECT_CALL(mDiagnostics, print(_, _, _)).Times(0); in TEST_F()
109 EXPECT_CALL(mDiagnostics, print(_, _, _)).Times(0); in TEST_F()
121 EXPECT_CALL(mDiagnostics, print(pp::Diagnostics::PP_VERSION_NOT_FIRST_STATEMENT, in TEST_F()
134 EXPECT_CALL(mDiagnostics, in TEST_F()
136 EXPECT_CALL(mDiagnostics, print(pp::Diagnostics::PP_VERSION_NOT_FIRST_STATEMENT, in TEST_F()
149 EXPECT_CALL(mDiagnostics, print(pp::Diagnostics::PP_VERSION_NOT_FIRST_STATEMENT, 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()
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()
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()
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()
/external/swiftshader/src/OpenGL/compiler/preprocessor/
DDirectiveParser.cpp153 : mLexer(lexer), mMacroSet(macroSet), mDiagnostics(diagnostics) in DefinedParser()
178 mDiagnostics->report(Diagnostics::PP_UNEXPECTED_TOKEN, token->location, token->text); in lex()
190 mDiagnostics->report(Diagnostics::PP_UNEXPECTED_TOKEN, in lex()
206 Diagnostics *mDiagnostics; member in pp::DefinedParser
218 mDiagnostics(diagnostics), in DirectiveParser()
250 mDiagnostics->report(Diagnostics::PP_CONDITIONAL_UNTERMINATED, in lex()
285 mDiagnostics->report(Diagnostics::PP_DIRECTIVE_INVALID_NAME, in parseDirective()
336 mDiagnostics->report(Diagnostics::PP_EOF_IN_DIRECTIVE, in parseDirective()
348 mDiagnostics->report(Diagnostics::PP_UNEXPECTED_TOKEN, in parseDefine()
354 mDiagnostics->report(Diagnostics::PP_MACRO_PREDEFINED_REDEFINED, in parseDefine()
[all …]
DMacroExpander.cpp103 mDiagnostics(diagnostics), in MacroExpander()
145 mDiagnostics->report(Diagnostics::PP_UNEXPECTED_TOKEN, token->location, in lex()
157 mDiagnostics->report(Diagnostics::PP_UNEXPECTED_TOKEN, token->location, in lex()
378 mDiagnostics->report(Diagnostics::PP_MACRO_UNTERMINATED_INVOCATION, identifier.location, in collectMacroArgs()
431 mDiagnostics->report(id, identifier.location, identifier.text); in collectMacroArgs()
444 mDiagnostics->report(Diagnostics::PP_MACRO_INVOCATION_CHAIN_TOO_DEEP, in collectMacroArgs()
448 …MacroExpander expander(&lexer, mMacroSet, mDiagnostics, mParseDefined, mAllowedMacroExpansionDepth… in collectMacroArgs()
459 mDiagnostics->report(Diagnostics::PP_OUT_OF_MEMORY, token.location, token.text); in collectMacroArgs()
477 mDiagnostics->report(Diagnostics::PP_OUT_OF_MEMORY, token.location, token.text); in replaceMacroParams()
DExpressionParser.y440 mDiagnostics(diagnostics) in ExpressionParser()
451 context.diagnostics = mDiagnostics; in parse()
467 mDiagnostics->report(Diagnostics::PP_OUT_OF_MEMORY, token->location, ""); in parse()
472 mDiagnostics->report(Diagnostics::PP_INTERNAL_ERROR, token->location, ""); in parse()
/external/angle/src/compiler/preprocessor/
DDirectiveParser.cpp154 mDiagnostics(diagnostics), in DirectiveParser()
183 mDiagnostics->report(Diagnostics::PP_CONDITIONAL_UNTERMINATED, block.location, in lex()
218 mDiagnostics->report(Diagnostics::PP_DIRECTIVE_INVALID_NAME, token->location, in parseDirective()
269 mDiagnostics->report(Diagnostics::PP_EOF_IN_DIRECTIVE, token->location, token->text); in parseDirective()
280 mDiagnostics->report(Diagnostics::PP_UNEXPECTED_TOKEN, token->location, token->text); in parseDefine()
285 mDiagnostics->report(Diagnostics::PP_MACRO_PREDEFINED_REDEFINED, token->location, in parseDefine()
291 mDiagnostics->report(Diagnostics::PP_MACRO_NAME_RESERVED, token->location, token->text); in parseDefine()
301 mDiagnostics->report(Diagnostics::PP_WARNING_MACRO_NAME_RESERVED, token->location, in parseDefine()
323 mDiagnostics->report(Diagnostics::PP_MACRO_DUPLICATE_PARAMETER_NAMES, in parseDefine()
335 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()
/external/angle/src/compiler/translator/
DDirectiveHandler.cpp43 mDiagnostics(diagnostics), in TDirectiveHandler()
53 mDiagnostics.error(loc, msg.c_str(), ""); in handleError()
71 mDiagnostics.error( in handlePragma()
120 mDiagnostics.report(angle::pp::Diagnostics::PP_UNRECOGNIZED_PRAGMA, loc, name); in handlePragma()
126 mDiagnostics.error(loc, "invalid pragma value - 'on' or 'off' expected", value.c_str()); in handlePragma()
140 mDiagnostics.error(loc, "behavior invalid", name.c_str()); in handleExtension()
148 mDiagnostics.error(loc, "extension cannot have 'require' behavior", name.c_str()); in handleExtension()
152 mDiagnostics.error(loc, "extension cannot have 'enable' behavior", name.c_str()); in handleExtension()
194 mDiagnostics.error(loc, "extension can be enabled on greater than ESSL 300", in handleExtension()
212 mDiagnostics.error(loc, "extension is not supported", name.c_str()); in handleExtension()
[all …]
DValidateSwitch.cpp49 TDiagnostics *mDiagnostics; member in sh::__anonbc9147f50111::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()
DValidateAST.cpp70 TDiagnostics *mDiagnostics; member in sh::__anond888692b0111::ValidateAST
107 : TIntermTraverser(true, false, true, nullptr), mOptions(options), mDiagnostics(diagnostics) in ValidateAST()
137 mDiagnostics->error(node->getLine(), "Found child with two parents", in visitNode()
166 mDiagnostics->error(location, in visitStructOrInterfaceBlockDeclaration()
219 mDiagnostics->error(location, in visitStructInDeclarationUsage()
230 mDiagnostics->error(location, in visitStructInDeclarationUsage()
254 mDiagnostics->error(node->getLine(), in visitBuiltIn()
262 mDiagnostics->error(node->getLine(), in visitBuiltIn()
361 mDiagnostics->error(node->getLine(), "Too few children", "<validateNullNodes>"); in expectNonNullChildren()
369 mDiagnostics->error(node->getLine(), "Found nullptr child", "<validateNullNodes>"); in expectNonNullChildren()
[all …]
DCompiler.cpp301 mDiagnostics(mInfoSink.info), in TCompiler()
404 compileOptions, !IsDesktopGLSpec(mShaderSpec), &mDiagnostics, in compileTreeImpl()
446 mDiagnostics.globalError("unsupported shader version"); in checkShaderVersion()
456 mDiagnostics.globalError("Compute shader is not supported in this shader version."); in checkShaderVersion()
464 mDiagnostics.globalError( in checkShaderVersion()
484 mDiagnostics.globalError( in checkShaderVersion()
557 bool valid = ValidateAST(root, &mDiagnostics, mValidateASTOptions); in validateAST()
591 !ValidateLimitations(root, mShaderType, &mSymbolTable, &mDiagnostics)) in checkAndSimplifyAST()
596 if (shouldLimitTypeSizes() && !ValidateTypeSizeLimitations(root, &mSymbolTable, &mDiagnostics)) in checkAndSimplifyAST()
601 if (!ValidateFragColorAndFragData(mShaderType, mShaderVersion, 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::__anon98d8adac0111::Traverser
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
DValidateTypeSizeLimitations.cpp34 : TIntermTraverser(true, false, false, symbolTable), mDiagnostics(diagnostics) in ValidateTypeSizeLimitationsTraverser()
96 mDiagnostics->error(loc, reason, token.data()); in error()
199 TDiagnostics *mDiagnostics; member in sh::__anon3dfffc2d0111::ValidateTypeSizeLimitationsTraverser
DDiagnostics.cpp96 : mDiagnostics(diagnostics) in PerformanceDiagnostics()
103 mDiagnostics->warning(loc, reason, token); in warning()
/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::__anon555189b10111::FoldExpressionsTraverser
/external/swiftshader/src/OpenGL/compiler/
DDirectiveHandler.cpp40 mDiagnostics(diagnostics), in TDirectiveHandler()
52 mDiagnostics.writeInfo(pp::Diagnostics::PP_ERROR, loc, msg, "", ""); in handleError()
87 mDiagnostics.report(pp::Diagnostics::PP_UNRECOGNIZED_PRAGMA, loc, name); in handlePragma()
92 mDiagnostics.writeInfo(pp::Diagnostics::PP_ERROR, loc, in handlePragma()
106 mDiagnostics.writeInfo(pp::Diagnostics::PP_ERROR, loc, in handleExtension()
115 mDiagnostics.writeInfo(pp::Diagnostics::PP_ERROR, loc, in handleExtension()
121 mDiagnostics.writeInfo(pp::Diagnostics::PP_ERROR, loc, in handleExtension()
155 mDiagnostics.writeInfo(severity, loc, in handleExtension()
172 mDiagnostics.writeInfo(pp::Diagnostics::PP_ERROR, loc, in handleVersion()
DParseHelper.h57 mDiagnostics(is), in TParseContext()
58 mDirectiveHandler(ext, mDiagnostics, mShaderVersion), in TParseContext()
59 mPreprocessor(&mDiagnostics, &mDirectiveHandler, pp::PreprocessorSettings()), in TParseContext()
77 int numErrors() const { return mDiagnostics.numErrors(); } in numErrors()
78 TInfoSink &infoSink() { return mDiagnostics.infoSink(); } in infoSink()
270 TDiagnostics mDiagnostics; variable

12