Home
last modified time | relevance | path

Searched refs:statement (Results 1 - 25 of 191) sorted by relevance

12345678

/third_party/googletest/googletest/include/gtest/
H A Dgtest-death-test.h170 // Asserts that a given `statement` causes the program to exit, with an
173 #define ASSERT_EXIT(statement, predicate, matcher) \
174 GTEST_DEATH_TEST_(statement, predicate, matcher, GTEST_FATAL_FAILURE_)
178 #define EXPECT_EXIT(statement, predicate, matcher) \
179 GTEST_DEATH_TEST_(statement, predicate, matcher, GTEST_NONFATAL_FAILURE_)
181 // Asserts that a given `statement` causes the program to exit, either by
184 #define ASSERT_DEATH(statement, matcher) \
185 ASSERT_EXIT(statement, ::testing::internal::ExitedUnsuccessfully, matcher)
189 #define EXPECT_DEATH(statement, matcher) \
190 EXPECT_EXIT(statement,
[all...]
H A Dgtest-spi.h128 // statement will cause exactly one fatal Google Test failure with 'substr'
135 // The verification of the assertion is done correctly even when the statement
139 // - 'statement' cannot reference local non-static variables or
141 // - 'statement' cannot return a value.
149 #define EXPECT_FATAL_FAILURE(statement, substr) \
153 static void Execute() { statement; } \
167 #define EXPECT_FATAL_FAILURE_ON_ALL_THREADS(statement, substr) \
171 static void Execute() { statement; } \
186 // but not from an ASSERT_EQ). It asserts that the given statement will cause
194 // 'statement' i
[all...]
/third_party/mesa3d/src/gtest/include/gtest/
H A Dgtest-death-test.h165 // Asserts that a given statement causes the program to exit, with an
168 # define ASSERT_EXIT(statement, predicate, regex) \
169 GTEST_DEATH_TEST_(statement, predicate, regex, GTEST_FATAL_FAILURE_)
173 # define EXPECT_EXIT(statement, predicate, regex) \
174 GTEST_DEATH_TEST_(statement, predicate, regex, GTEST_NONFATAL_FAILURE_)
176 // Asserts that a given statement causes the program to exit, either by
179 # define ASSERT_DEATH(statement, regex) \
180 ASSERT_EXIT(statement, ::testing::internal::ExitedUnsuccessfully, regex)
184 # define EXPECT_DEATH(statement, regex) \
185 EXPECT_EXIT(statement,
[all...]
H A Dgtest-spi.h123 // statement will cause exactly one fatal Google Test failure with 'substr'
130 // The verification of the assertion is done correctly even when the statement
134 // - 'statement' cannot reference local non-static variables or
136 // - 'statement' cannot return a value.
144 #define EXPECT_FATAL_FAILURE(statement, substr) \
148 static void Execute() { statement; }\
161 #define EXPECT_FATAL_FAILURE_ON_ALL_THREADS(statement, substr) \
165 static void Execute() { statement; }\
180 // statement will cause exactly one non-fatal Google Test failure with 'substr'
187 // 'statement' i
[all...]
/third_party/node/deps/googletest/include/gtest/
H A Dgtest-death-test.h170 // Asserts that a given `statement` causes the program to exit, with an
173 #define ASSERT_EXIT(statement, predicate, matcher) \
174 GTEST_DEATH_TEST_(statement, predicate, matcher, GTEST_FATAL_FAILURE_)
178 #define EXPECT_EXIT(statement, predicate, matcher) \
179 GTEST_DEATH_TEST_(statement, predicate, matcher, GTEST_NONFATAL_FAILURE_)
181 // Asserts that a given `statement` causes the program to exit, either by
184 #define ASSERT_DEATH(statement, matcher) \
185 ASSERT_EXIT(statement, ::testing::internal::ExitedUnsuccessfully, matcher)
189 #define EXPECT_DEATH(statement, matcher) \
190 EXPECT_EXIT(statement,
[all...]
H A Dgtest-spi.h128 // statement will cause exactly one fatal Google Test failure with 'substr'
135 // The verification of the assertion is done correctly even when the statement
139 // - 'statement' cannot reference local non-static variables or
141 // - 'statement' cannot return a value.
149 #define EXPECT_FATAL_FAILURE(statement, substr) \
153 static void Execute() { statement; } \
167 #define EXPECT_FATAL_FAILURE_ON_ALL_THREADS(statement, substr) \
171 static void Execute() { statement; } \
186 // but not from an ASSERT_EQ). It asserts that the given statement will cause
194 // 'statement' i
[all...]
/third_party/skia/third_party/externals/spirv-cross/
H A Dspirv_cpp.cpp43 statement("internal::Resource<", buffer_name, type_to_array_glsl(type), "> ", instance_name, "__;"); in emit_buffer_block()
47 statement(""); in emit_buffer_block()
71 statement("internal::", qual, "<", buffer_name, type_to_array_glsl(type), "> ", instance_name, "__;"); in emit_interface_block()
74 statement(""); in emit_interface_block()
82 statement(CompilerGLSL::variable_decl(var), ";"); in emit_shared()
103 statement("internal::Resource<", type_name, type_to_array_glsl(type), "> ", instance_name, "__;"); in emit_uniform()
110 statement("internal::UniformConstant<", type_name, type_to_array_glsl(type), "> ", instance_name, "__;"); in emit_uniform()
116 statement(""); in emit_uniform()
133 statement("internal::PushConstant<", buffer_name, type_to_array_glsl(type), "> ", instance_name, ";"); in emit_push_constant_block()
136 statement(""); in emit_push_constant_block()
[all...]
H A Dspirv_msl.cpp1215 statement("constexpr sampler ", in emit_entry_point_declarations()
1219 statement("constexpr sampler ", in emit_entry_point_declarations()
1251 statement(get_argument_address_space(var), " ", type_to_glsl(type), "* ", to_restrict(var_id), name, in emit_entry_point_declarations()
1268 statement("(", get_argument_address_space(var), " ", type_to_glsl(type), "* ", in emit_entry_point_declarations()
1286 statement(get_argument_address_space(var), " auto& ", to_restrict(var_id), name, " = *(", in emit_entry_point_declarations()
1300 statement(get_argument_address_space(var), " ", type_to_glsl(buffer_type), "* ", to_restrict(array_id), name, in emit_entry_point_declarations()
1304 statement(name, "_", i, ","); in emit_entry_point_declarations()
1317 statement(variable_decl(var), ";"); in emit_entry_point_declarations()
2064 statement(to_name(var.self), "[", loc_off, "]", " = ", ib_var_ref, in add_component_variable_to_interface_block()
2071 statement(to_nam in add_component_variable_to_interface_block()
[all...]
H A Dspirv_hlsl.cpp527 statement(header); in emit_header()
531 statement(""); in emit_header()
544 statement("static ", variable_decl(var), ";"); in emit_interface_block_globally()
612 statement(types[to_declare - 1], " ", builtin_to_glsl(builtin, StorageClassOutput), semantic_index, in emit_builtin_outputs_in_struct()
628 statement(types[to_declare - 1], " ", builtin_to_glsl(builtin, StorageClassOutput), semantic_index, in emit_builtin_outputs_in_struct()
647 statement(type, " ", builtin_to_glsl(builtin, StorageClassOutput), " : ", semantic, ";"); in emit_builtin_outputs_in_struct()
742 statement(types[to_declare - 1], " ", builtin_to_glsl(builtin, StorageClassInput), semantic_index, in emit_builtin_inputs_in_struct()
758 statement(types[to_declare - 1], " ", builtin_to_glsl(builtin, StorageClassInput), semantic_index, in emit_builtin_inputs_in_struct()
775 statement(type, " ", builtin_to_glsl(builtin, StorageClassInput), " : ", semantic, ";"); in emit_builtin_inputs_in_struct()
865 statement(to_interpolation_qualifier in emit_interface_block_member_in_struct()
[all...]
H A Dspirv_glsl.cpp686 statement("void main()");
688 statement("// Interlocks were used in a way not compatible with GLSL, this is very slow.");
690 statement("beginInvocationInterlockNV();");
692 statement("beginInvocationInterlockARB();");
693 statement("spvMainInterlockedBody();");
695 statement("endInvocationInterlockNV();");
697 statement("endInvocationInterlockARB();");
766 statement("#version ", options.version, options.es && options.version > 100 ? " es" : "");
773 statement("#ifdef GL_ARB_shading_language_420pack");
774 statement("#extensio
[all...]
/third_party/skia/third_party/externals/tint/src/reader/wgsl/
H A Dparser_impl_statement_test.cc27 auto e = p->statement(); in TEST_F()
36 p->statement(); in TEST_F()
42 auto e = p->statement(); in TEST_F()
53 auto e = p->statement(); in TEST_F()
66 auto e = p->statement(); in TEST_F()
71 EXPECT_EQ(p->error(), "1:7: expected ';' for return statement"); in TEST_F()
76 auto e = p->statement(); in TEST_F()
81 EXPECT_EQ(p->error(), "1:8: expected ';' for return statement"); in TEST_F()
86 auto e = p->statement(); in TEST_F()
95 auto e = p->statement(); in TEST_F()
[all...]
/third_party/ltp/tools/sparse/sparse-src/
H A Dparse.h47 struct statement { struct
64 struct statement *if_true;
65 struct statement *if_false;
71 struct statement *args;
76 struct statement *label_statement;
81 struct statement *case_statement;
86 struct statement *switch_statement;
93 struct statement *iterator_pre_statement;
96 struct statement *iterator_statement;
98 struct statement *iterator_post_statemen
[all...]
H A Dinline.c37 static void copy_statement(struct statement *src, struct statement *dst);
46 static struct statement * dup_statement(struct statement *stmt) in dup_statement()
48 struct statement *dup = alloc_statement(stmt->pos, stmt->type); in dup_statement()
197 struct statement *stmt = alloc_statement(expr->pos, STMT_COMPOUND); in copy_expression()
198 copy_statement(expr->statement, stmt); in copy_expression()
200 expr->statement = stmt; in copy_expression()
219 /* Initializer list statement */ in copy_expression()
331 static struct statement *copy_one_statemen
[all...]
H A Dparse.c51 static struct token *statement(struct token *token, struct statement **tree);
62 static struct token *parse_if_statement(struct token *token, struct statement *stmt);
63 static struct token *parse_return_statement(struct token *token, struct statement *stmt);
64 static struct token *parse_loop_iterator(struct token *token, struct statement *stmt);
65 static struct token *parse_default_statement(struct token *token, struct statement *stmt);
66 static struct token *parse_case_statement(struct token *token, struct statement *stmt);
67 static struct token *parse_switch_statement(struct token *token, struct statement *stmt);
68 static struct token *parse_for_statement(struct token *token, struct statement *stmt);
69 static struct token *parse_while_statement(struct token *token, struct statement *stm
2449 static struct token *statement(struct token *token, struct statement **tree) statement() function
[all...]
/third_party/python/Modules/_sqlite/
H A Dcursor.c99 Py_CLEAR(self->statement); in pysqlite_cursor_init_impl()
155 Py_VISIT(self->statement); in cursor_traverse()
167 if (self->statement) { in cursor_clear()
168 /* Reset the statement if the user has not closed the cursor */ in cursor_clear()
169 stmt_reset(self->statement); in cursor_clear()
170 Py_CLEAR(self->statement); in cursor_clear()
230 for (i = 0; i < sqlite3_column_count(self->statement->st); i++) { in pysqlite_build_row_cast_map()
234 const char *colname = sqlite3_column_name(self->statement->st, i); in pysqlite_build_row_cast_map()
259 decltype = sqlite3_column_decltype(self->statement->st, i); in pysqlite_build_row_cast_map()
317 * Returns a row from the currently active SQLite statement
486 sqlite3_stmt *statement; begin_transaction() local
518 stmt_step(sqlite3_stmt *statement) stmt_step() argument
[all...]
/third_party/skia/src/sksl/ir/
H A DSkSLForStatement.cpp56 this->statement()->clone(), in clone()
76 result += ") " + this->statement()->description(); in description()
84 std::unique_ptr<Statement> statement, in Convert()
112 next.get(), statement.get(), context.fErrors); in Convert()
120 next.get(), statement.get(), /*errors=*/nullptr); in Convert()
123 if (Analysis::DetectVarDeclarationWithoutScope(*statement, context.fErrors)) { in Convert()
128 // If the initializer statement of a for loop contains multiple variables, this causes in Convert()
132 // statement with an empty init-stmt. (Note that we can't just do this transformation in Convert()
137 std::move(test), std::move(next), std::move(statement), in Convert()
143 std::move(next), std::move(statement), st in Convert()
80 Convert(const Context& context, int line, std::unique_ptr<Statement> initializer, std::unique_ptr<Expression> test, std::unique_ptr<Expression> next, std::unique_ptr<Statement> statement, std::shared_ptr<SymbolTable> symbolTable) Convert() argument
147 ConvertWhile(const Context& context, int line, std::unique_ptr<Expression> test, std::unique_ptr<Statement> statement, std::shared_ptr<SymbolTable> symbolTable) ConvertWhile() argument
159 Make(const Context& context, int line, std::unique_ptr<Statement> initializer, std::unique_ptr<Expression> test, std::unique_ptr<Expression> next, std::unique_ptr<Statement> statement, std::unique_ptr<LoopUnrollInfo> unrollInfo, std::shared_ptr<SymbolTable> symbolTable) Make() argument
[all...]
H A DSkSLForStatement.h28 * A 'for' statement.
38 std::unique_ptr<Statement> statement, in ForStatement()
46 , fStatement(std::move(statement)) in ForStatement()
54 std::unique_ptr<Statement> statement,
60 std::unique_ptr<Statement> statement,
68 std::unique_ptr<Statement> statement,
96 std::unique_ptr<Statement>& statement() { in statement() function in SkSL::final
100 const std::unique_ptr<Statement>& statement() const { in statement() function in SkSL::final
34 ForStatement(int line, std::unique_ptr<Statement> initializer, std::unique_ptr<Expression> test, std::unique_ptr<Expression> next, std::unique_ptr<Statement> statement, std::unique_ptr<LoopUnrollInfo> unrollInfo, std::shared_ptr<SymbolTable> symbols) ForStatement() argument
H A DSkSLSwitchCase.h17 * A single case of a 'switch' statement.
24 SwitchCase(int line, std::unique_ptr<Expression> value, std::unique_ptr<Statement> statement) in SwitchCase() argument
27 , fStatement(std::move(statement)) {} in SwitchCase()
37 std::unique_ptr<Statement>& statement() { in statement() function in SkSL::final
41 const std::unique_ptr<Statement>& statement() const { in statement() function in SkSL::final
48 this->statement()->clone());
/third_party/skia/third_party/externals/dawn/src/tests/unittests/validation/
H A DValidationTest.h45 #define ASSERT_DEVICE_ERROR_IMPL_1_(statement) \
47 statement; \
50 FAIL() << "Expected device error in:\n " << #statement; \
55 #define ASSERT_DEVICE_ERROR_IMPL_2_(statement, matcher) \
57 statement; \
60 FAIL() << "Expected device error in:\n " << #statement; \
75 #define EXPECT_DEPRECATION_WARNINGS(statement, n) \
80 statement; \
86 #define EXPECT_DEPRECATION_WARNING(statement) EXPECT_DEPRECATION_WARNINGS(statement,
[all...]
/third_party/googletest/googletest/include/gtest/internal/
H A Dgtest-death-test-internal.h88 static bool Create(const char* statement, Matcher<const std::string&> matcher,
157 virtual bool Create(const char* statement,
165 bool Create(const char* statement, Matcher<const std::string&> matcher,
195 // Traps C++ exceptions escaping statement and reports them as test
198 #define GTEST_EXECUTE_DEATH_TEST_STATEMENT_(statement, death_test) \
200 GTEST_SUPPRESS_UNREACHABLE_CODE_WARNING_BELOW_(statement); \
205 "death test statement. Exception message: %s\n", \
215 #define GTEST_EXECUTE_DEATH_TEST_STATEMENT_(statement, death_test) \
216 GTEST_SUPPRESS_UNREACHABLE_CODE_WARNING_BELOW_(statement)
222 #define GTEST_DEATH_TEST_(statement, predicat
[all...]
/third_party/mesa3d/src/gtest/include/gtest/internal/
H A Dgtest-death-test-internal.h83 static bool Create(const char* statement, Matcher<const std::string&> matcher,
149 virtual bool Create(const char* statement,
157 bool Create(const char* statement, Matcher<const std::string&> matcher,
187 // Traps C++ exceptions escaping statement and reports them as test
190 # define GTEST_EXECUTE_DEATH_TEST_STATEMENT_(statement, death_test) \
192 GTEST_SUPPRESS_UNREACHABLE_CODE_WARNING_BELOW_(statement); \
197 "death test statement. Exception message: %s\n", \
207 # define GTEST_EXECUTE_DEATH_TEST_STATEMENT_(statement, death_test) \
208 GTEST_SUPPRESS_UNREACHABLE_CODE_WARNING_BELOW_(statement)
214 #define GTEST_DEATH_TEST_(statement, predicat
[all...]
/third_party/node/deps/googletest/include/gtest/internal/
H A Dgtest-death-test-internal.h88 static bool Create(const char* statement, Matcher<const std::string&> matcher,
157 virtual bool Create(const char* statement,
165 bool Create(const char* statement, Matcher<const std::string&> matcher,
195 // Traps C++ exceptions escaping statement and reports them as test
198 #define GTEST_EXECUTE_DEATH_TEST_STATEMENT_(statement, death_test) \
200 GTEST_SUPPRESS_UNREACHABLE_CODE_WARNING_BELOW_(statement); \
205 "death test statement. Exception message: %s\n", \
215 #define GTEST_EXECUTE_DEATH_TEST_STATEMENT_(statement, death_test) \
216 GTEST_SUPPRESS_UNREACHABLE_CODE_WARNING_BELOW_(statement)
222 #define GTEST_DEATH_TEST_(statement, predicat
[all...]
/third_party/skia/third_party/externals/tint/src/sem/
H A Dmember_accessor_expression.cc30 const Statement* statement) in MemberAccessorExpression()
31 : Base(declaration, type, statement, Constant{}) {} in MemberAccessorExpression()
38 const Statement* statement, in StructMemberAccess()
40 : Base(declaration, type, statement), member_(member) {} in StructMemberAccess()
46 const Statement* statement, in Swizzle()
48 : Base(declaration, type, statement), indices_(std::move(indices)) {} in Swizzle()
27 MemberAccessorExpression( const ast::MemberAccessorExpression* declaration, const sem::Type* type, const Statement* statement) MemberAccessorExpression() argument
35 StructMemberAccess( const ast::MemberAccessorExpression* declaration, const sem::Type* type, const Statement* statement, const StructMember* member) StructMemberAccess() argument
44 Swizzle(const ast::MemberAccessorExpression* declaration, const sem::Type* type, const Statement* statement, std::vector<uint32_t> indices) Swizzle() argument
/third_party/vk-gl-cts/scripts/verify/
H A Dpackage.py34 def __init__ (self, basePath, statement, testLogs, gitStatus, gitLog, patches, summary, conformVersion, conformOs, otherItems):
36 self.statement = statement
48 statement = None
60 assert statement == None
61 statement = item
76 return PackageDescription(packagePath, statement, testLogs, gitStatus, gitLog, patches, summary, conformVersion, conformOs, otherItems)
/third_party/node/deps/v8/src/interpreter/
H A Dcontrol-flow-builders.h80 // encountering a break statement.
91 BreakableStatement* statement) in BlockBuilder()
93 statement) {} in BlockBuilder()
156 SwitchStatement* statement, int number_of_cases, in SwitchBuilder()
158 : BreakableControlFlowBuilder(builder, block_coverage_builder, statement), in SwitchBuilder()
206 TryCatchStatement* statement, in TryCatchBuilder()
212 statement_(statement) {} in TryCatchBuilder()
234 TryFinallyStatement* statement, in TryFinallyBuilder()
241 statement_(statement) {} in TryFinallyBuilder()
89 BlockBuilder(BytecodeArrayBuilder* builder, BlockCoverageBuilder* block_coverage_builder, BreakableStatement* statement) BlockBuilder() argument
154 SwitchBuilder(BytecodeArrayBuilder* builder, BlockCoverageBuilder* block_coverage_builder, SwitchStatement* statement, int number_of_cases, BytecodeJumpTable* jump_table) SwitchBuilder() argument
204 TryCatchBuilder(BytecodeArrayBuilder* builder, BlockCoverageBuilder* block_coverage_builder, TryCatchStatement* statement, HandlerTable::CatchPrediction catch_prediction) TryCatchBuilder() argument
232 TryFinallyBuilder(BytecodeArrayBuilder* builder, BlockCoverageBuilder* block_coverage_builder, TryFinallyStatement* statement, HandlerTable::CatchPrediction catch_prediction) TryFinallyBuilder() argument

Completed in 21 milliseconds

12345678