| /netbsd-src/external/gpl3/gcc.old/dist/gcc/d/dmd/ |
| H A D | declaration.c | 77 storage_class = STCundefined; in Declaration() 151 if ((storage_class & (STCforeach | STCref)) == (STCforeach | STCref)) in checkModify() 320 sa->storage_class = storage_class; in syntaxCopy() 330 storage_class |= sc->stc & STCdeprecated; in semantic() 346 storage_class |= sc->stc & STCdeprecated; in aliasSemantic() 431 if (storage_class & (STCref | STCnothrow | STCnogc | STCpure | STCdisable)) in aliasSemantic() 436 … sc2->stc |= storage_class & (STCref | STCnothrow | STCnogc | STCpure | STCshared | STCdisable); in aliasSemantic() 438 type = type->addSTC(storage_class); in aliasSemantic() 862 v->storage_class = storage_class; in syntaxCopy() 892 storage_class |= (sc->stc & ~(STCsynchronized | STCoverride | STCabstract | STCfinal)); in semantic() [all …]
|
| H A D | escape.c | 91 v->storage_class &= ~STCmaybescope; in checkParamArgumentEscape() 97 else if (v->storage_class & STCvariadic && p == sc->func) in checkParamArgumentEscape() 122 v->storage_class &= ~STCmaybescope; in checkParamArgumentEscape() 124 if ((v->storage_class & (STCref | STCout)) == 0 && p == sc->func) in checkParamArgumentEscape() 146 v->storage_class &= ~STCmaybescope; in checkParamArgumentEscape() 148 if ((v->storage_class & (STCref | STCout | STCscope)) && p == sc->func) in checkParamArgumentEscape() 239 v->storage_class &= ~STCmaybescope; in checkAssignEscape() 243 … if (va && va->isScope() && va->storage_class & STCreturn && !(v->storage_class & STCreturn) && in checkAssignEscape() 254 ((va->enclosesLifetimeOf(v) && !(v->storage_class & STCparameter)) || in checkAssignEscape() 257 va->storage_class & STCref) && in checkAssignEscape() [all …]
|
| H A D | func.c | 298 FuncDeclaration::FuncDeclaration(Loc loc, Loc endloc, Identifier *id, StorageClass storage_class, T… in FuncDeclaration() argument 303 this->storage_class = storage_class; in FuncDeclaration() 309 this->storage_class &= ~(STC_TYPECTOR | STC_FUNCATTR); in FuncDeclaration() 365 …uncDeclaration::create(Loc loc, Loc endloc, Identifier *id, StorageClass storage_class, Type *type) in create() argument 367 return new FuncDeclaration(loc, endloc, id, storage_class, type); in create() 375 : new FuncDeclaration(loc, endloc, ident, storage_class, type->syntaxCopy()); in syntaxCopy() 404 (fd->storage_class & STCinference) || // do attribute inference in canInferAttributes() 482 storage_class |= sc->stc & ~STCref; in semantic() 488 storage_class |= ad->storage_class & (STC_TYPECTOR | STCsynchronized); in semantic() 492 storage_class |= sc->func->storage_class & STCdisable; in semantic() [all …]
|
| H A D | declaration.h | 122 StorageClass storage_class; variable 136 bool isStatic() { return (storage_class & STCstatic) != 0; } in isStatic() 141 bool isCtorinit() { return (storage_class & STCctorinit) != 0; } in isCtorinit() 142 bool isFinal() { return (storage_class & STCfinal) != 0; } in isFinal() 143 bool isAbstract() { return (storage_class & STCabstract) != 0; } in isAbstract() 144 bool isConst() { return (storage_class & STCconst) != 0; } in isConst() 145 bool isImmutable() { return (storage_class & STCimmutable) != 0; } in isImmutable() 146 bool isWild() { return (storage_class & STCwild) != 0; } in isWild() 147 bool isAuto() { return (storage_class & STCauto) != 0; } in isAuto() 148 bool isScope() { return (storage_class & STCscope) != 0; } in isScope() [all …]
|
| H A D | sideeffect.c | 250 if (v && (v->storage_class & STCtemp)) in discardValue() 399 vd->storage_class = stc; in copyToTemp() 400 vd->storage_class |= STCtemp; in copyToTemp() 401 vd->storage_class |= STCctfe; // temporary is always CTFEable in copyToTemp() 427 vd->storage_class |= STCref; 429 vd->storage_class |= STCrvalue;
|
| H A D | clone.c | 36 StorageClass s2 = (f->storage_class & STCdisable); in mergeFuncAttrs() 159 if (v->storage_class & STCref) in needOpAssign() 226 if (v->storage_class & STCref) in buildOpAssign() 252 fop->storage_class |= STCinference; in buildOpAssign() 270 tmp->storage_class |= STCnodtor | STCtemp | STCctfe; in buildOpAssign() 338 fop->storage_class |= STCdisable; in buildOpAssign() 367 if (v->storage_class & STCref) in needOpEquals() 672 if (v->storage_class & STCref) in needToHash() 793 stc |= sd->postblits[i]->storage_class & STCdisable; in buildPostBlit() 800 if (v->storage_class & STCref) in buildPostBlit() [all …]
|
| H A D | dclass.c | 262 cd->storage_class |= storage_class; in syntaxCopy() 377 storage_class |= sc->stc; in semantic() 378 if (storage_class & STCdeprecated) in semantic() 380 if (storage_class & STCauto) in semantic() 382 if (storage_class & STCscope) in semantic() 384 if (storage_class & STCabstract) in semantic() 577 if (baseClass->storage_class & STCfinal) in semantic() 588 storage_class |= baseClass->storage_class & STC_TYPECTOR; in semantic() 701 if (storage_class & STCstatic) in semantic() 789 if (v->storage_class & STCnodefaultctor) in semantic() [all …]
|
| H A D | dstruct.c | 189 storage_class = 0; in AggregateDeclaration() 359 if (v->storage_class & STCmanifest) in determineFields() 373 …if (v->storage_class & (STCstatic | STCextern | STCtls | STCgshared | STCmanifest | STCctfe | STCt… in determineFields() 380 if (v->storage_class & STCref) in determineFields() 739 if ((vx->storage_class & STCnodefaultctor) && !ctorinit) in fill() 879 if (storage_class & STCstatic) in makeNested() 926 vthis->storage_class |= STCfield; in makeNested() 1050 type = type->addSTC(sc->stc | storage_class); in semantic() 1069 storage_class |= sc->stc; in semantic() 1070 if (storage_class & STCdeprecated) in semantic() [all …]
|
| H A D | hdrgen.c | 1482 if (stcToBuffer(buf, fd->storage_class)) in visitEponymousMember() 1529 if (stcToBuffer(buf, vd->storage_class)) in visitEponymousMember() 1846 if (d->storage_class & STClocal) in visit() 1853 if (stcToBuffer(buf, d->storage_class)) in visit() 1859 if (stcToBuffer(buf, d->storage_class)) in visit() 1868 if (stcToBuffer(buf, d->storage_class)) in visit() 1879 if (d->storage_class & STClocal) in visit() 1894 if (stcToBuffer(buf, v->storage_class)) in visitVarDecl() 1916 if (stcToBuffer(buf, f->storage_class)) in visit() 1923 if (!tf->next || f->storage_class & STCauto) in visit() [all …]
|
| /netbsd-src/external/gpl3/gcc/dist/gcc/d/dmd/ |
| H A D | escape.d | 335 else if (v.storage_class & STC.variadic && p == sc.func) in checkParamArgumentEscape() 587 const bool vaIsRef = va && va.storage_class & STC.parameter && in checkAssignEscape() 630 … (va.storage_class & v.storage_class & (STC.maybescope | STC.variadic)) == STC.maybescope && in checkAssignEscape() 640 (v.isScope() || (v.storage_class & STC.maybescope)) && in checkAssignEscape() 641 !(v.storage_class & STC.return_) && in checkAssignEscape() 655 if (vaIsFirstRef && v.isParameter() && v.storage_class & STC.return_) in checkAssignEscape() 664 va.storage_class |= STC.scope_ | STC.scopeinferred; in checkAssignEscape() 669 … if (va && va.isScope() && va.storage_class & STC.return_ && !(v.storage_class & STC.return_) && in checkAssignEscape() 681 ((va.enclosesLifetimeOf(v) && !(v.storage_class & STC.temp)) || vaIsRef) && in checkAssignEscape() 697 va.storage_class |= STC.scope_ | STC.scopeinferred; in checkAssignEscape() [all …]
|
| H A D | declaration.d | 108 auto mustInit = ((var.storage_class & STC.nodefaultctor) != 0 || in modifyFieldVar() 222 StorageClass storage_class = STC.undefined_; variable 278 if (!(storage_class & STC.disable)) 281 if (sc.func && sc.func.storage_class & STC.disable) 330 if (!(ovl.storage_class & STC.disable)) 397 if ((storage_class & (STC.foreach_ | STC.ref_)) == (STC.foreach_ | STC.ref_)) in checkModify() 420 return (storage_class & STC.static_) != 0; in isStatic() 451 return (storage_class & STC.final_) != 0; in isFinal() 456 return (storage_class & STC.abstract_) != 0; in isAbstract() 461 return (storage_class & STC.const_) != 0; in isConst() [all …]
|
| H A D | declaration.h | 116 StorageClass storage_class; variable 129 bool isStatic() const { return (storage_class & STCstatic) != 0; } in isStatic() 135 bool isFinal() const { return (storage_class & STCfinal) != 0; } in isFinal() 136 virtual bool isAbstract() { return (storage_class & STCabstract) != 0; } in isAbstract() 137 bool isConst() const { return (storage_class & STCconst) != 0; } in isConst() 138 bool isImmutable() const { return (storage_class & STCimmutable) != 0; } in isImmutable() 139 bool isWild() const { return (storage_class & STCwild) != 0; } in isWild() 140 bool isAuto() const { return (storage_class & STCauto) != 0; } in isAuto() 141 bool isScope() const { return (storage_class & STCscope) != 0; } in isScope() 142 bool isSynchronized() const { return (storage_class & STCsynchronized) != 0; } in isSynchronized() [all …]
|
| H A D | dsymbolsem.d | 315 dsym.storage_class |= sc.stc & STC.deprecated_; in visit() 345 printf(" stc = x%llx\n", dsym.storage_class); in visit() 346 printf(" storage_class = x%llx\n", dsym.storage_class); in visit() 377 if ((dsym.storage_class & (STC.foreach_ | STC.local)) == (STC.foreach_ | STC.local)) in visit() 389 …dsym.storage_class |= (sc.stc & ~(STC.synchronized_ | STC.override_ | STC.abstract_ | STC.final_)); in visit() 397 if (dsym.storage_class & STC.extern_ && dsym._init) in visit() 402 dsym.storage_class |= ad.storage_class & STC.TYPECTOR; in visit() 413 bool needctfe = (dsym.storage_class & (STC.manifest | STC.static_)) != 0; in visit() 431 dsym.storage_class &= ~STC.auto_; in visit() 445 sc2.stc |= (dsym.storage_class & STC.FUNCATTR); in visit() [all …]
|
| H A D | clone.d | 56 StorageClass s2 = (f.storage_class & STC.disable); in mergeFuncAttrs() 172 if (v.storage_class & STC.ref_) in needOpAssign() 278 if (v.storage_class & STC.ref_) in buildOpAssign() 303 fop.storage_class |= STC.inference; in buildOpAssign() 321 swap.storage_class |= STC.nodtor | STC.temp | STC.ctfe; in buildOpAssign() 323 swap.storage_class |= STC.scope_; in buildOpAssign() 389 fop.storage_class |= STC.disable; in buildOpAssign() 415 if (v.storage_class & STC.ref_) in needOpEquals() 741 if (v.storage_class & STC.ref_) in needToHash() 883 if (v.storage_class & STC.ref_) in buildDtors() [all …]
|
| H A D | aggregate.d | 98 StorageClass storage_class; /// variable 464 if ((vx.storage_class & STC.nodefaultctor) && !ctorinit) in fill() 597 auto stc = storage_class; in getType() 608 return !!(this.storage_class & STC.deprecated_); in isDeprecated() 614 this.storage_class |= STC.deprecated_; in setDeprecated() 636 if (storage_class & STC.static_) in makeNested() 686 vthis.storage_class |= STC.field; in makeNested() 713 if (storage_class & STC.static_) in makeNested2() 730 vthis2.storage_class |= STC.field; in makeNested2()
|
| H A D | func.d | 357 …nst ref Loc loc, const ref Loc endloc, Identifier ident, StorageClass storage_class, Type type, bo… 362 this.storage_class = storage_class; 368 this.storage_class &= ~(STC.TYPECTOR | STC.FUNCATTR); 381 …(const ref Loc loc, const ref Loc endloc, Identifier id, StorageClass storage_class, Type type, bo… 383 return new FuncDeclaration(loc, endloc, id, storage_class, type, noreturn); 390 …: new FuncDeclaration(loc, endloc, ident, storage_class, type.syntaxCopy(), (flags & FUNCFLAG.nore… in syntaxCopy() 450 if (storage_class & STC.inference) in functionSemantic() 532 return t.addMod(type.mod).addStorageClass(storage_class); in declareThis() 545 vthis.storage_class |= STC.parameter | STC.nodtor; in declareThis() 551 vthis.storage_class |= STC.parameter; in declareThis() [all …]
|
| H A D | semantic3.d | 263 if (funcdecl.storage_class & STC.inference) in visit() 276 funcdecl.storage_class |= STC.disable; in visit() 418 funcdecl.v_arguments.storage_class |= STC.temp | STC.parameter; in visit() 426 _arguments.storage_class |= STC.temp; in visit() 437 funcdecl.v_argptr.storage_class |= STC.temp; in visit() 487 v.storage_class = stc; in visit() 600 bool inferRef = (f.isref && (funcdecl.storage_class & STC.auto_)); in visit() 651 if (funcdecl.storage_class & STC.auto_) in visit() 652 funcdecl.storage_class &= ~STC.auto_; in visit() 695 else if (v.storage_class & STC.nodefaultctor) in visit() [all …]
|
| H A D | sideeffect.d | 259 if (v && (v.storage_class & STC.temp)) in discardValue() 381 vd.storage_class = stc | STC.temp | STC.ctfe; // temporary is always CTFEable in copyToTemp() 415 vd.storage_class |= e.isLvalue() ? STC.ref_ : STC.rvalue;
|
| /netbsd-src/external/bsd/byacc/dist/test/btyacc/ |
| H A D | grammar.dot | 12 …storage_class\l decl_specifier -> . type_specifier\l decl_specifier -> . type_qualifier\l stora… 20 …q8 [label="8:\l storage_class -> T_AUTO . { ')' ',' ';' T_BRACKETS T_TYPE_QUALIFIER T_Imaginary T… 21 … linkage_specification -> T_EXTERN . T_STRING_LITERAL declaration\l storage_class -> T_EXTERN . … 22 …q10 [label="10:\l storage_class -> T_REGISTER . { ')' ',' ';' T_BRACKETS T_TYPE_QUALIFIER T_Imagi… 23 …q11 [label="11:\l storage_class -> T_STATIC . { ')' ',' ';' T_BRACKETS T_TYPE_QUALIFIER T_Imagina… 25 …q13 [label="13:\l storage_class -> T_INLINE . { ')' ',' ';' T_BRACKETS T_TYPE_QUALIFIER T_Imagina… 26 …q14 [label="14:\l any_typedef -> T_EXTENSION . T_TYPEDEF\l storage_class -> T_EXTENSION . { ';' … 46 …storage_class\l decl_specifier -> . type_specifier\l decl_specifier -> . type_qualifier\l stora… 48 …q36 [label="36:\l decl_specifier -> storage_class . { ')' ',' ';' T_BRACKETS T_TYPE_QUALIFIER T_I… 60 …storage_class\l decl_specifier -> . type_specifier\l decl_specifier -> . type_qualifier\l stora… [all …]
|
| H A D | grammar.output | 58 37 decl_specifier : storage_class 62 40 storage_class : T_AUTO 203 storage_class goto 36 364 storage_class : T_AUTO . (40) 372 storage_class : T_EXTERN . (41) 407 storage_class : T_REGISTER . (42) 413 storage_class : T_STATIC . (43) 425 storage_class : T_INLINE . (44) 432 storage_class : T_EXTENSION . (45) 619 storage_class goto 36 [all …]
|
| /netbsd-src/external/bsd/byacc/dist/test/yacc/ |
| H A D | grammar.dot | 12 …storage_class\l decl_specifier -> . type_specifier\l decl_specifier -> . type_qualifier\l stora… 20 …q8 [label="8:\l storage_class -> T_AUTO . { ')' ',' ';' T_BRACKETS T_TYPE_QUALIFIER T_Imaginary T… 21 … linkage_specification -> T_EXTERN . T_STRING_LITERAL declaration\l storage_class -> T_EXTERN . … 22 …q10 [label="10:\l storage_class -> T_REGISTER . { ')' ',' ';' T_BRACKETS T_TYPE_QUALIFIER T_Imagi… 23 …q11 [label="11:\l storage_class -> T_STATIC . { ')' ',' ';' T_BRACKETS T_TYPE_QUALIFIER T_Imagina… 25 …q13 [label="13:\l storage_class -> T_INLINE . { ')' ',' ';' T_BRACKETS T_TYPE_QUALIFIER T_Imagina… 26 …q14 [label="14:\l any_typedef -> T_EXTENSION . T_TYPEDEF\l storage_class -> T_EXTENSION . { ';' … 46 …storage_class\l decl_specifier -> . type_specifier\l decl_specifier -> . type_qualifier\l stora… 48 …q36 [label="36:\l decl_specifier -> storage_class . { ')' ',' ';' T_BRACKETS T_TYPE_QUALIFIER T_I… 60 …storage_class\l decl_specifier -> . type_specifier\l decl_specifier -> . type_qualifier\l stora… [all …]
|
| H A D | grammar.output | 58 37 decl_specifier : storage_class 62 40 storage_class : T_AUTO 203 storage_class goto 36 364 storage_class : T_AUTO . (40) 372 storage_class : T_EXTERN . (41) 407 storage_class : T_REGISTER . (42) 413 storage_class : T_STATIC . (43) 425 storage_class : T_INLINE . (44) 432 storage_class : T_EXTENSION . (45) 619 storage_class goto 36 [all …]
|
| /netbsd-src/external/gpl3/gcc.old/dist/gcc/c/ |
| H A D | c-decl.c | 4637 && declspecs->storage_class != csc_none) in shadow_tag_warned() 4717 if (current_scope == file_scope && declspecs->storage_class == csc_auto) in shadow_tag_warned() 4723 if (current_scope == file_scope && declspecs->storage_class == csc_register) in shadow_tag_warned() 4730 && declspecs->storage_class != csc_none) in shadow_tag_warned() 4810 && specs->storage_class == csc_none in quals_from_declspecs() 5126 if (declspecs->storage_class == csc_auto && current_scope != file_scope) in start_decl() 5128 else if (declspecs->storage_class != csc_static) in start_decl() 5954 enum c_storage_class storage_class = declspecs->storage_class; in grokdeclarator() local 6171 || storage_class == csc_auto in grokdeclarator() 6172 || storage_class == csc_register in grokdeclarator() [all …]
|
| /netbsd-src/tests/usr.bin/indent/ |
| H A D | lsym_lparen_or_lbracket.c | 279 static (int)storage_class; /* syntax error */ in cover_want_blank_before_lparen() 335 static (int)storage_class; /* syntax error */ in cover_want_blank_before_lparen()
|
| /netbsd-src/external/gpl3/gcc/dist/gcc/c/ |
| H A D | c-decl.cc | 4728 && declspecs->storage_class != csc_none) in shadow_tag_warned() 4808 if (current_scope == file_scope && declspecs->storage_class == csc_auto) in shadow_tag_warned() 4814 if (current_scope == file_scope && declspecs->storage_class == csc_register) in shadow_tag_warned() 4821 && declspecs->storage_class != csc_none) in shadow_tag_warned() 4901 && specs->storage_class == csc_none in quals_from_declspecs() 5237 if (declspecs->storage_class == csc_auto && current_scope != file_scope) in start_decl() 5239 else if (declspecs->storage_class != csc_static) in start_decl() 6272 enum c_storage_class storage_class = declspecs->storage_class; in grokdeclarator() local 6495 || storage_class == csc_auto in grokdeclarator() 6496 || storage_class == csc_register in grokdeclarator() [all …]
|