/external/clang/test/CodeGenCXX/ |
2004-09-27-DidntEmitTemplate.cpp | 7 struct Pass {}; 10 Pass *callDefaultCtor() { return new Pass(); } 12 void foo(Pass *(*C)()); 22 void baz() { foo(callDefaultCtor<Pass>); }
|
2003-11-27-MultipleInheritanceThunk.cpp | 18 struct Pass { 23 struct AliasAnalysisCounter : public Pass, public AliasAnalysis {
|
/art/compiler/dex/ |
pass.h | 28 class Pass; 30 // Empty Pass Data Class, can be extended by any pass extending the base Pass class. 35 * @class Pass 36 * @brief Base Pass class, can be extended to perform a more defined way of doing the work call. 38 class Pass { 40 explicit Pass(const char* name) 44 virtual ~Pass() { 52 * @brief Gate for the pass: determines whether to execute the pass or not considering a CompilationUni [all...] |
/external/chromium_org/extensions/common/ |
extension_builder.h | 31 // Workaround to allow you to pass rvalue ExtensionBuilders by reference to 32 // other functions, e.g. UseBuilder(ExtensionBuilder().Pass()) 33 ExtensionBuilder& Pass() { return *this; }
|
value_builder.h | 16 // For methods that take other built types, you can pass the builder directly 22 // Because of limitations in C++03, and to avoid extra copies, you can't pass a 24 // Pass() method. 52 // Workaround to allow you to pass rvalue ExtensionBuilders by reference to 54 DictionaryBuilder& Pass() { return *this; } 57 scoped_ptr<base::DictionaryValue> Build() { return dict_.Pass(); } 81 // Workaround to allow you to pass rvalue ExtensionBuilders by reference to 83 ListBuilder& Pass() { return *this; } 86 scoped_ptr<base::ListValue> Build() { return list_.Pass(); }
|
/external/clang/lib/ARCMigrate/ |
TransUnusedInitDelegate.cpp | 36 MigrationPass &Pass; 41 UnusedInitRewriter(MigrationPass &pass) 42 : Body(nullptr), Pass(pass) { } 53 Pass.TA.hasDiagnostic(diag::err_arc_unused_init_message, 55 Transaction Trans(Pass.TA); 56 Pass.TA.clearDiagnostic(diag::err_arc_unused_init_message, 59 Pass.TA.insert(ExprRange.getBegin(), "if (!(self = "); 61 retStr += getNilString(Pass.Ctx); 62 Pass.TA.insertAfterToken(ExprRange.getEnd(), retStr) [all...] |
TransAPIUses.cpp | 32 MigrationPass &Pass; 39 APIChecker(MigrationPass &pass) : Pass(pass) { 40 SelectorTable &sels = Pass.Ctx.Selectors; 41 IdentifierTable &ids = Pass.Ctx.Idents; 78 Pass.TA.report(parm->getLocStart(), 90 Pass.TA.hasDiagnostic(diag::err_unavailable, 94 Transaction Trans(Pass.TA); 95 Pass.TA.clearDiagnostic(diag::err_unavailable [all...] |
TransARCAssign.cpp | 36 MigrationPass &Pass; 40 ARCAssignChecker(MigrationPass &pass) : Pass(pass) { } 51 ASTContext &Ctx = Pass.Ctx; 57 Transaction Trans(Pass.TA); 58 if (Pass.TA.clearDiagnostic(diag::err_typecheck_arr_assign_enumeration, 62 Pass.TA.insert(TLoc.getBeginLoc(), "__strong "); 75 void trans::makeAssignARCSafe(MigrationPass &pass) { 76 ARCAssignChecker assignCheck(pass); [all...] |
TransBlockObjCVariable.cpp | 128 MigrationPass &Pass = BodyCtx.getMigrationContext().Pass; 140 bool useWeak = canApplyWeak(Pass.Ctx, var->getType()); 141 SourceManager &SM = Pass.Ctx.getSourceManager(); 142 Transaction Trans(Pass.TA); 143 Pass.TA.replaceText(SM.getExpansionLoc(attr->getLocation()),
|
TransEmptyStatementsAndDealloc.cpp | 152 MigrationPass &Pass; 155 EmptyStatementsRemover(MigrationPass &pass) : Pass(pass) { } 174 ASTContext &getContext() { return Pass.Ctx; } 179 if (EmptyChecker(Pass.Ctx, Pass.ARCMTMacroLocs).Visit(S)) { 180 Transaction Trans(Pass.TA); 181 Pass.TA.removeStmt(S); 197 static void cleanupDeallocOrFinalize(MigrationPass &pass) { [all...] |
TransProtectedScope.cpp | 96 MigrationPass &Pass; 103 : Pass(BodyCtx.getMigrationContext().Pass), 104 SM(Pass.Ctx.getSourceManager()) { 111 const CapturedDiagList &DiagList = Pass.getDiags(); 131 Transaction Trans(Pass.TA); 143 Pass.TA.clearDiagnostic(diag::err_switch_into_protected_scope, ErrLoc); 158 Pass.TA.clearDiagnostic(Diag.getID(), Diag.getLocation()); 175 Pass.TA.insertAfterToken(info.SC->getColonLoc(), " {"); 176 Pass.TA.insert(info.Range.getEnd(), "}\n") [all...] |
TransRetainReleaseDealloc.cpp | 38 MigrationPass &Pass; 46 RetainReleaseDeallocRemover(MigrationPass &pass) 47 : Body(nullptr), Pass(pass) { 49 Pass.Ctx.Selectors.getNullarySelector(&Pass.Ctx.Idents.get("delegate")); 51 Pass.Ctx.Selectors.getNullarySelector(&Pass.Ctx.Idents.get("finalize")); 74 Pass.TA.reportError("it is not safe to remove an unused 'autorelease' " 80 // Pass through [all...] |
TransZeroOutPropsInDealloc.cpp | 30 MigrationPass &Pass; 38 ZeroOutInDeallocRemover(MigrationPass &pass) : Pass(pass), SelfD(nullptr) { 40 Pass.Ctx.Selectors.getNullarySelector(&Pass.Ctx.Idents.get("finalize")); 44 ASTContext &Ctx = Pass.Ctx; 45 TransformActions &TA = Pass.TA; 84 Transaction Trans(Pass.TA); 85 Pass.TA.removeStmt(POE) [all...] |
TransAutoreleasePool.cpp | 72 AutoreleasePoolRewriter(MigrationPass &pass) 73 : Body(nullptr), Pass(pass) { 74 PoolII = &pass.Ctx.Idents.get("NSAutoreleasePool"); 75 DrainSel = pass.Ctx.Selectors.getNullarySelector( 76 &pass.Ctx.Idents.get("drain")); 113 Transaction Trans(Pass.TA); 116 Pass.TA.removeStmt(info.Dcl); 127 Pass.TA.replaceStmt(*scope.Begin, "@autoreleasepool {"); 128 Pass.TA.removeStmt(*scope.End) [all...] |
TransProperties.cpp | 48 MigrationPass &Pass; 75 : MigrateCtx(MigrateCtx), Pass(MigrateCtx.Pass) { } 137 Transaction Trans(Pass.TA); 150 Transaction Trans(Pass.TA); 212 (Pass.isGCMigration() && !hasGCWeak(props, atLoc))) 226 Pass.TA.clearDiagnostic(diag::err_arc_strong_property_ownership, 234 bool canUseWeak = canApplyWeak(Pass.Ctx, getPropertyType(props), 235 /*AllowOnUnknownClass=*/Pass.isGCMigration()); 237 (Pass.isGCMigration() && !hasGCWeak(props, atLoc)) ? "strong" [all...] |
TransUnbridgedCasts.cpp | 61 MigrationPass &Pass; 69 UnbridgedCastRewriter(MigrationPass &pass) 70 : Pass(pass), ParentD(nullptr), Body(nullptr) { 71 SelfII = &Pass.Ctx.Idents.get("self"); 84 UnbridgedCastRewriter(Pass).transformBody(D->getBody(), D); 105 if (castExpr->isNullPointerConstant(Pass.Ctx, 110 if (loc.isValid() && Pass.Ctx.getSourceManager().isInSystemHeader(loc)) 201 Transaction Trans(Pass.TA); 207 TransformActions &TA = Pass.TA [all...] |
Transforms.h | 36 void rewriteAutoreleasePool(MigrationPass &pass); 37 void rewriteUnbridgedCasts(MigrationPass &pass); 38 void makeAssignARCSafe(MigrationPass &pass); 39 void removeRetainReleaseDeallocFinalize(MigrationPass &pass); 40 void removeZeroOutPropsInDeallocFinalize(MigrationPass &pass); 41 void rewriteUnusedInitDelegate(MigrationPass &pass); 42 void checkAPIUses(MigrationPass &pass); 44 void removeEmptyStatementsAndDeallocFinalize(MigrationPass &pass); 85 MigrationPass &Pass; 104 explicit MigrationContext(MigrationPass &pass) : Pass(pass) { [all...] |
/art/runtime/ |
barrier.cc | 30 void Barrier::Pass(Thread* self) { 51 // that have not yet called the Pass function. When the 52 // Pass function is called by the last thread, the count will
|
/external/chromium_org/cc/surfaces/ |
surface_aggregator_test_helpers.h | 62 struct Pass { 63 Pass(Quad* quads, size_t quad_count, RenderPassId id) 65 Pass(Quad* quads, size_t quad_count) 73 void AddSurfaceQuad(TestRenderPass* pass, 77 void AddQuadInPass(TestRenderPass* pass, Quad desc); 81 Pass* passes, 86 void TestPassMatchesExpectations(Pass expected_pass, const RenderPass* pass); 88 void TestPassesMatchExpectations(Pass* expected_passes,
|
/external/chromium_org/native_client_sdk/src/tests/nacl_io_test/fake_ppapi/ |
fake_resource_manager.h | 60 FakeResource* Pass() {
|
/external/chromium_org/third_party/WebKit/Source/wtf/ |
Deque.h | 53 typedef PassTraits<T> Pass; 348 T oldFirst = Pass::transfer(first()); 350 return Pass::transfer(oldFirst); 356 T oldLast = Pass::transfer(last()); 358 return Pass::transfer(oldLast);
|
/external/chromium_org/base/ |
bind_helpers.h | 114 // // You can use f.Pass() in place of &f, but it's more verbose. 362 // 1) PassedWrapper supports any type that has a "Pass()" function. 370 explicit PassedWrapper(T scoper) : is_valid_(true), scoper_(scoper.Pass()) {} 372 : is_valid_(other.is_valid_), scoper_(other.scoper_.Pass()) { 374 T Pass() const { 377 return scoper_.Pass(); 432 return o.Pass(); 514 // to write Passed(scoper.Pass()). 517 return internal::PassedWrapper<T>(scoper.Pass()); 521 return internal::PassedWrapper<T>(scoper->Pass()); [all...] |
/external/chromium_org/third_party/webrtc/system_wrappers/source/ |
condition_variable_unittest.cc | 29 // One can pass it or grab it - both calls have timeouts. 48 // Pass the baton. Returns false if baton is not picked up in |max_msecs|. 49 // Only one process can pass at the same time; this property is 51 bool Pass(uint32_t max_msecs) { 69 // We don't allow polling PassCount() during a Pass()-call since there is 70 // no guarantee that |pass_count_| is incremented until the Pass()-call 122 // part of Pass() at a time. 138 EXPECT_TRUE(the_baton->Pass(kLongWaitMs)); 156 // we don't know if it will exit before or after the Pass. 158 // and Pass) [all...] |
/external/llvm/include/llvm/ |
Pass.h | 1 //===- llvm/Pass.h - Base class for Passes ----------------------*- C++ -*-===// 11 // transformation pass implementation. 49 // AnalysisID - Use the PassInfo to identify a pass... 52 /// Different types of internal pass managers. External pass managers 54 /// Ordering of pass manager types is important here. 78 /// Pass interface - Implemented by all 'passes'. Subclass this if you are an 82 class Pass { 86 void operator=(const Pass&) LLVM_DELETED_FUNCTION; 87 Pass(const Pass &) LLVM_DELETED_FUNCTION [all...] |
/external/webrtc/src/system_wrappers/source/ |
condition_variable_unittest.cc | 33 // One can pass it or grab it - both calls have timeouts. 52 // Pass the baton. Returns false if baton is not picked up in |max_msecs|. 53 // Only one process can pass at the same time; this property is 55 bool Pass(WebRtc_UWord32 max_msecs) { 64 LOG("Pass count is %d", pass_count_); 76 // We don't allow polling PassCount() during a Pass()-call since there is 77 // no guarantee that |pass_count_| is incremented until the Pass()-call 134 // part of Pass() at a time. 152 EXPECT_TRUE(the_baton->Pass(kLongWaitMs)); 172 // we don't know if it will exit before or after the Pass [all...] |