Home
last modified time | relevance | path

Searched refs:Code (Results 1 – 25 of 2185) sorted by relevance

12345678910>>...88

/external/clang/unittests/Format/
DCleanupTest.cpp23 std::string cleanup(llvm::StringRef Code, in cleanup() argument
26 tooling::Replacements Replaces = format::cleanup(Style, Code, Ranges); in cleanup()
28 auto Result = applyAllReplacements(Code, Replaces); in cleanup()
35 std::string Code = "namespace A {\n" in TEST_F() local
50 std::string Result = cleanup(Code, Ranges); in TEST_F()
55 std::string Code = "namespace A {\n" in TEST_F() local
66 std::vector<tooling::Range> Ranges(1, tooling::Range(0, Code.size())); in TEST_F()
67 std::string Result = cleanup(Code, Ranges); in TEST_F()
72 std::string Code = "namespace A {\n\n" in TEST_F() local
80 std::string Result = cleanup(Code, Ranges); in TEST_F()
[all …]
DSortIncludesTest.cpp23 std::vector<tooling::Range> GetCodeRange(StringRef Code) { in GetCodeRange() argument
24 return std::vector<tooling::Range>(1, tooling::Range(0, Code.size())); in GetCodeRange()
27 std::string sort(StringRef Code, StringRef FileName = "input.cpp") { in sort() argument
28 auto Ranges = GetCodeRange(Code); in sort()
30 applyAllReplacements(Code, sortIncludes(Style, Code, Ranges, FileName)); in sort()
38 unsigned newCursor(llvm::StringRef Code, unsigned Cursor) { in newCursor() argument
39 sortIncludes(Style, Code, GetCodeRange(Code), "input.cpp", &Cursor); in newCursor()
58 std::string Code = "#include <a>\n" in TEST_F() local
64 EXPECT_TRUE(sortIncludes(Style, Code, GetCodeRange(Code), "a.cc").empty()); in TEST_F()
277 std::string Code = "#include <ccc>\n" // Start of line: 0 in TEST_F() local
[all …]
DFormatTestProto.cpp22 static std::string format(llvm::StringRef Code, unsigned Offset, in format() argument
25 DEBUG(llvm::errs() << Code << "\n\n"); in format()
27 tooling::Replacements Replaces = reformat(Style, Code, Ranges); in format()
28 auto Result = applyAllReplacements(Code, Replaces); in format()
34 static std::string format(llvm::StringRef Code) { in format() argument
37 return format(Code, 0, Code.size(), Style); in format()
40 static void verifyFormat(llvm::StringRef Code) { in verifyFormat() argument
41 EXPECT_EQ(Code.str(), format(test::messUp(Code))); in verifyFormat()
/external/syzkaller/vendor/google.golang.org/grpc/codes/
Dcodes.go29 type Code uint32 type
33 OK Code = 0
36 Canceled Code = 1
43 Unknown Code = 2
49 InvalidArgument Code = 3
56 DeadlineExceeded Code = 4
60 NotFound Code = 5
64 AlreadyExists Code = 6
72 PermissionDenied Code = 7
76 ResourceExhausted Code = 8
[all …]
/external/v8/src/objects/
Dcode-inl.h25 CAST_ACCESSOR(Code) in CAST_ACCESSOR()
129 Code* AbstractCode::GetCode() { return Code::cast(this); } in GetCode()
176 INT_ACCESSORS(Code, raw_instruction_size, kInstructionSizeOffset) in INT_ACCESSORS() argument
177 INT_ACCESSORS(Code, handler_table_offset, kHandlerTableOffsetOffset) in INT_ACCESSORS()
179 ACCESSORS_CHECKED2(Code, name, type, offset, true, !Heap::InNewSpace(value)) in INT_ACCESSORS()
186 void Code::WipeOutHeader() { in INT_ACCESSORS()
193 void Code::clear_padding() { in clear_padding()
202 ByteArray* Code::SourcePositionTable() const { in SourcePositionTable()
210 uint32_t Code::stub_key() const { in stub_key()
215 void Code::set_stub_key(uint32_t key) { in set_stub_key()
[all …]
/external/clang/lib/ASTMatchers/Dynamic/
DParser.cpp61 : Code(MatcherCode), StartOfLine(MatcherCode), Line(1), Error(Error), in CodeTokenizer()
68 : Code(MatcherCode), StartOfLine(MatcherCode), Line(1), Error(Error), in CodeTokenizer()
91 if (CodeCompletionLocation && CodeCompletionLocation <= Code.data()) { in getNextToken()
98 if (Code.empty()) { in getNextToken()
104 switch (Code[0]) { in getNextToken()
107 Result.Text = Code.substr(0, 1); in getNextToken()
108 Code = Code.drop_front(); in getNextToken()
112 Result.Text = Code.substr(0, 1); in getNextToken()
113 Code = Code.drop_front(); in getNextToken()
117 Result.Text = Code.substr(0, 1); in getNextToken()
[all …]
/external/clang/unittests/ASTMatchers/
DASTMatchersTest.h63 const std::string &Code, const T &AMatcher, bool ExpectMatch,
87 Factory->create(), Code, Args, Filename, "clang-tool",
89 return testing::AssertionFailure() << "Parsing error in \"" << Code << "\"";
99 << "Could not find match in \"" << Code << "\"";
102 << "Found unexpected match in \"" << Code << "\"";
108 testing::AssertionResult matches(const std::string &Code, const T &AMatcher) { in matches() argument
109 return matchesConditionally(Code, AMatcher, true, "-std=c++11"); in matches()
113 testing::AssertionResult notMatches(const std::string &Code, in notMatches() argument
115 return matchesConditionally(Code, AMatcher, false, "-std=c++11"); in notMatches()
119 testing::AssertionResult matchesObjC(const std::string &Code, in matchesObjC() argument
[all …]
/external/clang/unittests/Tooling/
DRefactoringCallbacksTest.cpp22 void expectRewritten(const std::string &Code, in expectRewritten() argument
30 ASSERT_TRUE(tooling::runToolOnCode(Factory->create(), Code)) in expectRewritten()
31 << "Parsing error in \"" << Code << "\""; in expectRewritten()
33 FileID ID = Context.createInMemoryFile("input.cc", Code); in expectRewritten()
40 std::string Code = "void f() { int i = 1; }"; in TEST() local
43 expectRewritten(Code, Expected, id("id", declStmt()), Callback); in TEST()
47 std::string Code = "#define A void f() { int i = 1; }\nA"; in TEST() local
50 expectRewritten(Code, Expected, id("id", declStmt()), Callback); in TEST()
54 std::string Code = "#define A void f() { int i = 1; }"; in TEST() local
57 expectRewritten(Code, Expected, id("id", declStmt()), Callback); in TEST()
[all …]
/external/lzma/Java/SevenZip/Compression/RangeCoder/
DDecoder.java13 int Code; field in Decoder
29 Code = 0; in Init()
32 Code = (Code << 8) | Stream.read(); in Init()
41 int t = ((Code - Range) >>> 31); in DecodeDirectBits()
42 Code -= Range & (t - 1); in DecodeDirectBits()
47 Code = (Code << 8) | Stream.read(); in DecodeDirectBits()
58 if ((Code ^ 0x80000000) < (newBound ^ 0x80000000)) in DecodeBit()
64 Code = (Code << 8) | Stream.read(); in DecodeBit()
72 Code -= newBound; in DecodeBit()
76 Code = (Code << 8) | Stream.read(); in DecodeBit()
/external/v8/src/builtins/
Dsetup-builtins-internal.cc29 void PostBuildProfileAndTracing(Isolate* isolate, Code* code, in PostBuildProfileAndTracing()
65 Handle<Code> BuildPlaceholder(Isolate* isolate, int32_t builtin_index) { in BuildPlaceholder()
80 Handle<Code> code = isolate->factory()->NewCode( in BuildPlaceholder()
81 desc, Code::BUILTIN, masm.CodeObject(), builtin_index); in BuildPlaceholder()
85 Code* BuildWithMacroAssembler(Isolate* isolate, int32_t builtin_index, in BuildWithMacroAssembler()
102 Handle<Code> code = isolate->factory()->NewCode( in BuildWithMacroAssembler()
103 desc, Code::BUILTIN, masm.CodeObject(), builtin_index); in BuildWithMacroAssembler()
108 Code* BuildAdaptor(Isolate* isolate, int32_t builtin_index, in BuildAdaptor()
124 Handle<Code> code = isolate->factory()->NewCode( in BuildAdaptor()
125 desc, Code::BUILTIN, masm.CodeObject(), builtin_index); in BuildAdaptor()
[all …]
Dbuiltins.h65 Handle<Code> CallFunction(ConvertReceiverMode = ConvertReceiverMode::kAny);
66 Handle<Code> Call(ConvertReceiverMode = ConvertReceiverMode::kAny);
67 Handle<Code> NonPrimitiveToPrimitive(
69 Handle<Code> OrdinaryToPrimitive(OrdinaryToPrimitiveHint hint);
70 Handle<Code> InterpreterPushArgsThenCall(ConvertReceiverMode receiver_mode,
72 Handle<Code> InterpreterPushArgsThenConstruct(InterpreterPushArgsMode mode);
73 Handle<Code> NewFunctionContext(ScopeType scope_type);
74 Handle<Code> JSConstructStubGeneric();
79 Code* builtin(int index);
80 V8_EXPORT_PRIVATE Handle<Code> builtin_handle(int index);
[all …]
Dbuiltins-wasm-gen.cc24 TNode<Code> LoadBuiltinFromFrame(Builtins::Name id) { in LoadBuiltinFromFrame()
30 TNode<Code> target = UncheckedCast<Code>(Load( in LoadBuiltinFromFrame()
41 TNode<Code> LoadCEntryFromInstance(TNode<Object> instance) { in LoadCEntryFromInstance()
42 return UncheckedCast<Code>( in LoadCEntryFromInstance()
48 TNode<Code> LoadCEntryFromFrame() { in LoadCEntryFromFrame()
54 TNode<Code> target = LoadBuiltinFromFrame(Builtins::kAllocateHeapNumber); in TF_BUILTIN()
64 TNode<Code> target = in TF_BUILTIN()
74 TNode<Code> target = LoadBuiltinFromFrame(Builtins::kCall_ReceiverIsAny); in TF_BUILTIN()
81 TNode<Code> target = LoadBuiltinFromFrame(Builtins::kToNumber); in TF_BUILTIN()
86 TNode<Code> centry = LoadCEntryFromFrame(); in TF_BUILTIN()
[all …]
/external/syzkaller/vendor/google.golang.org/grpc/status/
Dstatus.go46 return fmt.Sprintf("rpc error: code = %s desc = %s", codes.Code(p.GetCode()), p.GetMessage())
60 func (s *Status) Code() codes.Code { func
64 return codes.Code(s.s.Code)
86 if s.Code() == codes.OK {
93 func New(c codes.Code, msg string) *Status { argument
94 return &Status{s: &spb.Status{Code: int32(c), Message: msg}}
98 func Newf(c codes.Code, format string, a ...interface{}) *Status { argument
103 func Error(c codes.Code, msg string) error { argument
108 func Errorf(c codes.Code, format string, a ...interface{}) error { argument
127 return &Status{s: &spb.Status{Code: int32(codes.OK)}}, true
[all …]
/external/grpc-grpc-java/core/src/main/java/io/grpc/
DStatus.java59 public enum Code { enum in Status
205 private Code(int value) { in Code() method in Status.Code
234 for (Code code : Code.values()) { in buildStatusList()
247 public static final Status OK = Code.OK.toStatus();
249 public static final Status CANCELLED = Code.CANCELLED.toStatus();
251 public static final Status UNKNOWN = Code.UNKNOWN.toStatus();
253 public static final Status INVALID_ARGUMENT = Code.INVALID_ARGUMENT.toStatus();
255 public static final Status DEADLINE_EXCEEDED = Code.DEADLINE_EXCEEDED.toStatus();
257 public static final Status NOT_FOUND = Code.NOT_FOUND.toStatus();
259 public static final Status ALREADY_EXISTS = Code.ALREADY_EXISTS.toStatus();
[all …]
/external/clang/lib/Serialization/
DASTWriterStmt.cpp35 serialization::StmtCode Code; member in clang::ASTStmtWriter
41 Code(serialization::STMT_NULL_PTR), AbbrevToUse(0) {} in ASTStmtWriter()
46 assert(Code != serialization::STMT_NULL_PTR && in Emit()
48 return Record.EmitStmt(Code, AbbrevToUse); in Emit()
77 Code = serialization::STMT_NULL; in VisitNullStmt()
87 Code = serialization::STMT_COMPOUND; in VisitCompoundStmt()
103 Code = serialization::STMT_CASE; in VisitCaseStmt()
109 Code = serialization::STMT_DEFAULT; in VisitDefaultStmt()
117 Code = serialization::STMT_LABEL; in VisitLabelStmt()
126 Code = serialization::STMT_ATTRIBUTED; in VisitAttributedStmt()
[all …]
/external/lzma/CS/7zip/Compress/RangeCoder/
DRangeCoder.cs126 public uint Code; field in SevenZip.Compression.RangeCoder.Decoder
135 Code = 0; in Init()
138 Code = (Code << 8) | (byte)Stream.ReadByte(); in Init()
156 Code = (Code << 8) | (byte)Stream.ReadByte(); in Normalize()
165 Code = (Code << 8) | (byte)Stream.ReadByte(); in Normalize2()
172 return Code / (Range /= total); in GetThreshold()
177 Code -= start * Range; in Decode()
185 uint code = Code; in DecodeDirectBits()
209 Code = code; in DecodeDirectBits()
217 if (Code < newBound) in DecodeBit()
[all …]
/external/v8/src/snapshot/
Dbuiltin-deserializer.cc72 DCHECK(o->IsCode() && Code::cast(o)->is_builtin()); in DeserializeEagerBuiltinsAndHandlers()
82 Code* code = builtins->builtin(i); in DeserializeEagerBuiltinsAndHandlers()
102 Code* code = (FLAG_lazy_handler_deserialization && in DeserializeEagerBuiltinsAndHandlers()
112 Code* illegal_handler = interpreter->GetBytecodeHandler( in DeserializeEagerBuiltinsAndHandlers()
123 Code* BuiltinDeserializer::DeserializeBuiltin(int builtin_id) { in DeserializeBuiltin()
126 Code* code = DeserializeBuiltinRaw(builtin_id); in DeserializeBuiltin()
138 Code* BuiltinDeserializer::DeserializeHandler(Bytecode bytecode, in DeserializeHandler()
145 Code* BuiltinDeserializer::DeserializeBuiltinRaw(int builtin_id) { in DeserializeBuiltinRaw()
155 DCHECK(o->IsCode() && Code::cast(o)->is_builtin()); in DeserializeBuiltinRaw()
161 Code* code = Code::cast(o); in DeserializeBuiltinRaw()
[all …]
/external/swiftshader/third_party/LLVM/unittests/ExecutionEngine/JIT/
DJITEventListenerTest.cpp35 void *Code; member
41 void *Code; member
53 void *Code, size_t Size, in NotifyFunctionEmitted()
55 FunctionEmittedEvent Event = {NextIndex++, &F, Code, Size, Details}; in NotifyFunctionEmitted()
106 EXPECT_EQ(F1_addr, Listener.EmittedEvents[0].Code); in TEST_F()
113 EXPECT_EQ(F2_addr, Listener.EmittedEvents[1].Code); in TEST_F()
119 EXPECT_EQ(F1_addr, Listener.FreedEvents[0].Code); in TEST_F()
122 EXPECT_EQ(F2_addr, Listener.FreedEvents[1].Code); in TEST_F()
159 EXPECT_EQ(F1_addr, Listener1.EmittedEvents[0].Code); in TEST_F()
165 EXPECT_EQ(F2_addr, Listener1.FreedEvents[0].Code); in TEST_F()
[all …]
/external/ltp/doc/
Dltp-howto.lyx129 important) testing techniques in its normal operations: Design and Code
309 \layout Code
314 \layout Code
320 \layout Code
326 \layout Code
331 \layout Code
336 \layout Code
341 \layout Code
346 \layout Code
351 \layout Code
[all …]
/external/v8/src/
Doptimized-compilation-info.cc47 Vector<const char> debug_name, Zone* zone, Code::Kind code_kind) in OptimizedCompilationInfo()
50 if (code_kind == Code::BYTECODE_HANDLER) { in OptimizedCompilationInfo()
55 if (code_kind == Code::BUILTIN || code_kind == Code::STUB) { in OptimizedCompilationInfo()
64 if (code_kind != Code::BUILTIN) { in OptimizedCompilationInfo()
123 case Code::STUB: in GetOutputStackFrameType()
124 case Code::BYTECODE_HANDLER: in GetOutputStackFrameType()
125 case Code::BUILTIN: in GetOutputStackFrameType()
127 case Code::WASM_FUNCTION: in GetOutputStackFrameType()
129 case Code::JS_TO_WASM_FUNCTION: in GetOutputStackFrameType()
131 case Code::WASM_TO_JS_FUNCTION: in GetOutputStackFrameType()
[all …]
/external/clang/unittests/AST/
DStmtPrinterTest.cpp70 PrintedStmtMatches(StringRef Code, const std::vector<std::string> &Args, in PrintedStmtMatches() argument
79 if (!runToolOnCodeWithArgs(Factory->create(), Code, Args)) in PrintedStmtMatches()
81 << "Parsing error in \"" << Code.str() << "\""; in PrintedStmtMatches()
101 PrintedStmtCXX98Matches(StringRef Code, const StatementMatcher &NodeMatch, in PrintedStmtCXX98Matches() argument
106 return PrintedStmtMatches(Code, Args, NodeMatch, ExpectedPrinted); in PrintedStmtCXX98Matches()
110 StringRef Code, in PrintedStmtCXX98Matches() argument
116 return PrintedStmtMatches(Code, in PrintedStmtCXX98Matches()
124 PrintedStmtCXX11Matches(StringRef Code, const StatementMatcher &NodeMatch, in PrintedStmtCXX11Matches() argument
129 return PrintedStmtMatches(Code, Args, NodeMatch, ExpectedPrinted); in PrintedStmtCXX11Matches()
133 StringRef Code, in PrintedStmtMSMatches() argument
[all …]
DDeclPrinterTest.cpp69 StringRef Code, in PrintedDeclMatches() argument
80 if (!runToolOnCodeWithArgs(Factory->create(), Code, Args, FileName)) in PrintedDeclMatches()
82 << "Parsing error in \"" << Code.str() << "\""; in PrintedDeclMatches()
101 ::testing::AssertionResult PrintedDeclCXX98Matches(StringRef Code, in PrintedDeclCXX98Matches() argument
105 return PrintedDeclMatches(Code, in PrintedDeclCXX98Matches()
113 StringRef Code, in PrintedDeclCXX98Matches() argument
117 return PrintedDeclMatches(Code, in PrintedDeclCXX98Matches()
124 ::testing::AssertionResult PrintedDeclCXX11Matches(StringRef Code, in PrintedDeclCXX11Matches() argument
128 return PrintedDeclMatches(Code, in PrintedDeclCXX11Matches()
136 StringRef Code, in PrintedDeclCXX11Matches() argument
[all …]
/external/syzkaller/vendor/google.golang.org/appengine/internal/
Dinternal.go46 Code int32 // API-specific error code member
50 if e.Code == 0 {
56 s := fmt.Sprintf("API error %d", e.Code)
58 s += " (" + e.Service + ": " + m[e.Code] + ")"
70 return timeoutCodes[timeoutCodeKey{e.Service, e.Code}]
77 Code int32 member
84 switch remotepb.RpcError_ErrorCode(e.Code) {
94 msg = fmt.Sprintf("Call error %d", e.Code)
/external/clang/lib/Frontend/
DTestModuleFileExtension.cpp87 llvm::hash_code Code) const { in hashExtension()
89 Code = llvm::hash_combine(Code, BlockName); in hashExtension()
90 Code = llvm::hash_combine(Code, MajorVersion); in hashExtension()
91 Code = llvm::hash_combine(Code, MinorVersion); in hashExtension()
92 Code = llvm::hash_combine(Code, UserInfo); in hashExtension()
95 return Code; in hashExtension()
/external/python/cpython2/Lib/email/test/data/
Dmsg_43.txt48 Diagnostic-Code: smtp; 550 5.7.1 Message content rejected, id=01956-02-2 - BANNED: auto__mail.pytho…
54 Diagnostic-Code: smtp; 550 5.7.1 Message content rejected, id=01956-02-2 - BANNED: auto__mail.pytho…
60 Diagnostic-Code: smtp; 550 5.7.1 Message content rejected, id=01956-02-2 - BANNED: auto__mail.pytho…
66 Diagnostic-Code: smtp; 550 5.7.1 Message content rejected, id=01956-02-2 - BANNED: auto__mail.pytho…
72 Diagnostic-Code: smtp; 550 5.7.1 Message content rejected, id=01956-02-2 - BANNED: auto__mail.pytho…
78 Diagnostic-Code: smtp; 550 5.7.1 Message content rejected, id=01956-02-2 - BANNED: auto__mail.pytho…
84 Diagnostic-Code: smtp; 550 5.7.1 Message content rejected, id=01956-02-2 - BANNED: auto__mail.pytho…
90 Diagnostic-Code: smtp; 550 5.7.1 Message content rejected, id=01956-02-2 - BANNED: auto__mail.pytho…
96 Diagnostic-Code: smtp; 550 5.7.1 Message content rejected, id=01956-02-2 - BANNED: auto__mail.pytho…
102 Diagnostic-Code: smtp; 550 5.7.1 Message content rejected, id=01956-02-2 - BANNED: auto__mail.pytho…
[all …]

12345678910>>...88