ASTMatch0.cpp 32 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226
  1. // Copyright (c) 2008 Roberto Raggi <[email protected]>
  2. //
  3. // Permission is hereby granted, free of charge, to any person obtaining a copy
  4. // of this software and associated documentation files (the "Software"), to deal
  5. // in the Software without restriction, including without limitation the rights
  6. // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  7. // copies of the Software, and to permit persons to whom the Software is
  8. // furnished to do so, subject to the following conditions:
  9. //
  10. // The above copyright notice and this permission notice shall be included in
  11. // all copies or substantial portions of the Software.
  12. //
  13. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  14. // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  15. // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  16. // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  17. // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  18. // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  19. // THE SOFTWARE.
  20. //
  21. // W A R N I N G
  22. // -------------
  23. //
  24. // This file is automatically generated by "cplusplus-update-frontend".
  25. // Changes will be lost.
  26. //
  27. #include "AST.h"
  28. #include "ASTMatcher.h"
  29. using namespace CPlusPlus;
  30. bool ObjCSelectorArgumentAST::match0(AST *pattern, ASTMatcher *matcher)
  31. {
  32. if (ObjCSelectorArgumentAST *_other = pattern->asObjCSelectorArgument())
  33. return matcher->match(this, _other);
  34. return false;
  35. }
  36. bool ObjCSelectorAST::match0(AST *pattern, ASTMatcher *matcher)
  37. {
  38. if (ObjCSelectorAST *_other = pattern->asObjCSelector())
  39. return matcher->match(this, _other);
  40. return false;
  41. }
  42. bool SimpleSpecifierAST::match0(AST *pattern, ASTMatcher *matcher)
  43. {
  44. if (SimpleSpecifierAST *_other = pattern->asSimpleSpecifier())
  45. return matcher->match(this, _other);
  46. return false;
  47. }
  48. bool AlignmentSpecifierAST::match0(AST *pattern, ASTMatcher *matcher)
  49. {
  50. if (AlignmentSpecifierAST *_other = pattern->asAlignmentSpecifier())
  51. return matcher->match(this, _other);
  52. return false;
  53. }
  54. bool GnuAttributeSpecifierAST::match0(AST *pattern, ASTMatcher *matcher)
  55. {
  56. if (GnuAttributeSpecifierAST *_other = pattern->asGnuAttributeSpecifier())
  57. return matcher->match(this, _other);
  58. return false;
  59. }
  60. bool GnuAttributeAST::match0(AST *pattern, ASTMatcher *matcher)
  61. {
  62. if (GnuAttributeAST *_other = pattern->asGnuAttribute())
  63. return matcher->match(this, _other);
  64. return false;
  65. }
  66. bool TypeofSpecifierAST::match0(AST *pattern, ASTMatcher *matcher)
  67. {
  68. if (TypeofSpecifierAST *_other = pattern->asTypeofSpecifier())
  69. return matcher->match(this, _other);
  70. return false;
  71. }
  72. bool DecltypeSpecifierAST::match0(AST *pattern, ASTMatcher *matcher)
  73. {
  74. if (DecltypeSpecifierAST *_other = pattern->asDecltypeSpecifier())
  75. return matcher->match(this, _other);
  76. return false;
  77. }
  78. bool DeclaratorAST::match0(AST *pattern, ASTMatcher *matcher)
  79. {
  80. if (DeclaratorAST *_other = pattern->asDeclarator())
  81. return matcher->match(this, _other);
  82. return false;
  83. }
  84. bool SimpleDeclarationAST::match0(AST *pattern, ASTMatcher *matcher)
  85. {
  86. if (SimpleDeclarationAST *_other = pattern->asSimpleDeclaration())
  87. return matcher->match(this, _other);
  88. return false;
  89. }
  90. bool EmptyDeclarationAST::match0(AST *pattern, ASTMatcher *matcher)
  91. {
  92. if (EmptyDeclarationAST *_other = pattern->asEmptyDeclaration())
  93. return matcher->match(this, _other);
  94. return false;
  95. }
  96. bool AccessDeclarationAST::match0(AST *pattern, ASTMatcher *matcher)
  97. {
  98. if (AccessDeclarationAST *_other = pattern->asAccessDeclaration())
  99. return matcher->match(this, _other);
  100. return false;
  101. }
  102. bool QtObjectTagAST::match0(AST *pattern, ASTMatcher *matcher)
  103. {
  104. if (QtObjectTagAST *_other = pattern->asQtObjectTag())
  105. return matcher->match(this, _other);
  106. return false;
  107. }
  108. bool QtPrivateSlotAST::match0(AST *pattern, ASTMatcher *matcher)
  109. {
  110. if (QtPrivateSlotAST *_other = pattern->asQtPrivateSlot())
  111. return matcher->match(this, _other);
  112. return false;
  113. }
  114. bool QtPropertyDeclarationItemAST::match0(AST *pattern, ASTMatcher *matcher)
  115. {
  116. if (QtPropertyDeclarationItemAST *_other = pattern->asQtPropertyDeclarationItem())
  117. return matcher->match(this, _other);
  118. return false;
  119. }
  120. bool QtPropertyDeclarationAST::match0(AST *pattern, ASTMatcher *matcher)
  121. {
  122. if (QtPropertyDeclarationAST *_other = pattern->asQtPropertyDeclaration())
  123. return matcher->match(this, _other);
  124. return false;
  125. }
  126. bool QtEnumDeclarationAST::match0(AST *pattern, ASTMatcher *matcher)
  127. {
  128. if (QtEnumDeclarationAST *_other = pattern->asQtEnumDeclaration())
  129. return matcher->match(this, _other);
  130. return false;
  131. }
  132. bool QtFlagsDeclarationAST::match0(AST *pattern, ASTMatcher *matcher)
  133. {
  134. if (QtFlagsDeclarationAST *_other = pattern->asQtFlagsDeclaration())
  135. return matcher->match(this, _other);
  136. return false;
  137. }
  138. bool QtInterfaceNameAST::match0(AST *pattern, ASTMatcher *matcher)
  139. {
  140. if (QtInterfaceNameAST *_other = pattern->asQtInterfaceName())
  141. return matcher->match(this, _other);
  142. return false;
  143. }
  144. bool QtInterfacesDeclarationAST::match0(AST *pattern, ASTMatcher *matcher)
  145. {
  146. if (QtInterfacesDeclarationAST *_other = pattern->asQtInterfacesDeclaration())
  147. return matcher->match(this, _other);
  148. return false;
  149. }
  150. bool AsmDefinitionAST::match0(AST *pattern, ASTMatcher *matcher)
  151. {
  152. if (AsmDefinitionAST *_other = pattern->asAsmDefinition())
  153. return matcher->match(this, _other);
  154. return false;
  155. }
  156. bool BaseSpecifierAST::match0(AST *pattern, ASTMatcher *matcher)
  157. {
  158. if (BaseSpecifierAST *_other = pattern->asBaseSpecifier())
  159. return matcher->match(this, _other);
  160. return false;
  161. }
  162. bool IdExpressionAST::match0(AST *pattern, ASTMatcher *matcher)
  163. {
  164. if (IdExpressionAST *_other = pattern->asIdExpression())
  165. return matcher->match(this, _other);
  166. return false;
  167. }
  168. bool CompoundExpressionAST::match0(AST *pattern, ASTMatcher *matcher)
  169. {
  170. if (CompoundExpressionAST *_other = pattern->asCompoundExpression())
  171. return matcher->match(this, _other);
  172. return false;
  173. }
  174. bool CompoundLiteralAST::match0(AST *pattern, ASTMatcher *matcher)
  175. {
  176. if (CompoundLiteralAST *_other = pattern->asCompoundLiteral())
  177. return matcher->match(this, _other);
  178. return false;
  179. }
  180. bool QtMethodAST::match0(AST *pattern, ASTMatcher *matcher)
  181. {
  182. if (QtMethodAST *_other = pattern->asQtMethod())
  183. return matcher->match(this, _other);
  184. return false;
  185. }
  186. bool QtMemberDeclarationAST::match0(AST *pattern, ASTMatcher *matcher)
  187. {
  188. if (QtMemberDeclarationAST *_other = pattern->asQtMemberDeclaration())
  189. return matcher->match(this, _other);
  190. return false;
  191. }
  192. bool BinaryExpressionAST::match0(AST *pattern, ASTMatcher *matcher)
  193. {
  194. if (BinaryExpressionAST *_other = pattern->asBinaryExpression())
  195. return matcher->match(this, _other);
  196. return false;
  197. }
  198. bool CastExpressionAST::match0(AST *pattern, ASTMatcher *matcher)
  199. {
  200. if (CastExpressionAST *_other = pattern->asCastExpression())
  201. return matcher->match(this, _other);
  202. return false;
  203. }
  204. bool ClassSpecifierAST::match0(AST *pattern, ASTMatcher *matcher)
  205. {
  206. if (ClassSpecifierAST *_other = pattern->asClassSpecifier())
  207. return matcher->match(this, _other);
  208. return false;
  209. }
  210. bool CaseStatementAST::match0(AST *pattern, ASTMatcher *matcher)
  211. {
  212. if (CaseStatementAST *_other = pattern->asCaseStatement())
  213. return matcher->match(this, _other);
  214. return false;
  215. }
  216. bool CompoundStatementAST::match0(AST *pattern, ASTMatcher *matcher)
  217. {
  218. if (CompoundStatementAST *_other = pattern->asCompoundStatement())
  219. return matcher->match(this, _other);
  220. return false;
  221. }
  222. bool ConditionAST::match0(AST *pattern, ASTMatcher *matcher)
  223. {
  224. if (ConditionAST *_other = pattern->asCondition())
  225. return matcher->match(this, _other);
  226. return false;
  227. }
  228. bool ConditionalExpressionAST::match0(AST *pattern, ASTMatcher *matcher)
  229. {
  230. if (ConditionalExpressionAST *_other = pattern->asConditionalExpression())
  231. return matcher->match(this, _other);
  232. return false;
  233. }
  234. bool CppCastExpressionAST::match0(AST *pattern, ASTMatcher *matcher)
  235. {
  236. if (CppCastExpressionAST *_other = pattern->asCppCastExpression())
  237. return matcher->match(this, _other);
  238. return false;
  239. }
  240. bool CtorInitializerAST::match0(AST *pattern, ASTMatcher *matcher)
  241. {
  242. if (CtorInitializerAST *_other = pattern->asCtorInitializer())
  243. return matcher->match(this, _other);
  244. return false;
  245. }
  246. bool DeclarationStatementAST::match0(AST *pattern, ASTMatcher *matcher)
  247. {
  248. if (DeclarationStatementAST *_other = pattern->asDeclarationStatement())
  249. return matcher->match(this, _other);
  250. return false;
  251. }
  252. bool DeclaratorIdAST::match0(AST *pattern, ASTMatcher *matcher)
  253. {
  254. if (DeclaratorIdAST *_other = pattern->asDeclaratorId())
  255. return matcher->match(this, _other);
  256. return false;
  257. }
  258. bool NestedDeclaratorAST::match0(AST *pattern, ASTMatcher *matcher)
  259. {
  260. if (NestedDeclaratorAST *_other = pattern->asNestedDeclarator())
  261. return matcher->match(this, _other);
  262. return false;
  263. }
  264. bool FunctionDeclaratorAST::match0(AST *pattern, ASTMatcher *matcher)
  265. {
  266. if (FunctionDeclaratorAST *_other = pattern->asFunctionDeclarator())
  267. return matcher->match(this, _other);
  268. return false;
  269. }
  270. bool ArrayDeclaratorAST::match0(AST *pattern, ASTMatcher *matcher)
  271. {
  272. if (ArrayDeclaratorAST *_other = pattern->asArrayDeclarator())
  273. return matcher->match(this, _other);
  274. return false;
  275. }
  276. bool DeleteExpressionAST::match0(AST *pattern, ASTMatcher *matcher)
  277. {
  278. if (DeleteExpressionAST *_other = pattern->asDeleteExpression())
  279. return matcher->match(this, _other);
  280. return false;
  281. }
  282. bool DoStatementAST::match0(AST *pattern, ASTMatcher *matcher)
  283. {
  284. if (DoStatementAST *_other = pattern->asDoStatement())
  285. return matcher->match(this, _other);
  286. return false;
  287. }
  288. bool NamedTypeSpecifierAST::match0(AST *pattern, ASTMatcher *matcher)
  289. {
  290. if (NamedTypeSpecifierAST *_other = pattern->asNamedTypeSpecifier())
  291. return matcher->match(this, _other);
  292. return false;
  293. }
  294. bool ElaboratedTypeSpecifierAST::match0(AST *pattern, ASTMatcher *matcher)
  295. {
  296. if (ElaboratedTypeSpecifierAST *_other = pattern->asElaboratedTypeSpecifier())
  297. return matcher->match(this, _other);
  298. return false;
  299. }
  300. bool EnumSpecifierAST::match0(AST *pattern, ASTMatcher *matcher)
  301. {
  302. if (EnumSpecifierAST *_other = pattern->asEnumSpecifier())
  303. return matcher->match(this, _other);
  304. return false;
  305. }
  306. bool EnumeratorAST::match0(AST *pattern, ASTMatcher *matcher)
  307. {
  308. if (EnumeratorAST *_other = pattern->asEnumerator())
  309. return matcher->match(this, _other);
  310. return false;
  311. }
  312. bool ExceptionDeclarationAST::match0(AST *pattern, ASTMatcher *matcher)
  313. {
  314. if (ExceptionDeclarationAST *_other = pattern->asExceptionDeclaration())
  315. return matcher->match(this, _other);
  316. return false;
  317. }
  318. bool DynamicExceptionSpecificationAST::match0(AST *pattern, ASTMatcher *matcher)
  319. {
  320. if (DynamicExceptionSpecificationAST *_other = pattern->asDynamicExceptionSpecification())
  321. return matcher->match(this, _other);
  322. return false;
  323. }
  324. bool NoExceptSpecificationAST::match0(AST *pattern, ASTMatcher *matcher)
  325. {
  326. if (NoExceptSpecificationAST *_other = pattern->asNoExceptSpecification())
  327. return matcher->match(this, _other);
  328. return false;
  329. }
  330. bool ExpressionOrDeclarationStatementAST::match0(AST *pattern, ASTMatcher *matcher)
  331. {
  332. if (ExpressionOrDeclarationStatementAST *_other = pattern->asExpressionOrDeclarationStatement())
  333. return matcher->match(this, _other);
  334. return false;
  335. }
  336. bool ExpressionStatementAST::match0(AST *pattern, ASTMatcher *matcher)
  337. {
  338. if (ExpressionStatementAST *_other = pattern->asExpressionStatement())
  339. return matcher->match(this, _other);
  340. return false;
  341. }
  342. bool FunctionDefinitionAST::match0(AST *pattern, ASTMatcher *matcher)
  343. {
  344. if (FunctionDefinitionAST *_other = pattern->asFunctionDefinition())
  345. return matcher->match(this, _other);
  346. return false;
  347. }
  348. bool ForeachStatementAST::match0(AST *pattern, ASTMatcher *matcher)
  349. {
  350. if (ForeachStatementAST *_other = pattern->asForeachStatement())
  351. return matcher->match(this, _other);
  352. return false;
  353. }
  354. bool RangeBasedForStatementAST::match0(AST *pattern, ASTMatcher *matcher)
  355. {
  356. if (RangeBasedForStatementAST *_other = pattern->asRangeBasedForStatement())
  357. return matcher->match(this, _other);
  358. return false;
  359. }
  360. bool ForStatementAST::match0(AST *pattern, ASTMatcher *matcher)
  361. {
  362. if (ForStatementAST *_other = pattern->asForStatement())
  363. return matcher->match(this, _other);
  364. return false;
  365. }
  366. bool IfStatementAST::match0(AST *pattern, ASTMatcher *matcher)
  367. {
  368. if (IfStatementAST *_other = pattern->asIfStatement())
  369. return matcher->match(this, _other);
  370. return false;
  371. }
  372. bool ArrayInitializerAST::match0(AST *pattern, ASTMatcher *matcher)
  373. {
  374. if (ArrayInitializerAST *_other = pattern->asArrayInitializer())
  375. return matcher->match(this, _other);
  376. return false;
  377. }
  378. bool LabeledStatementAST::match0(AST *pattern, ASTMatcher *matcher)
  379. {
  380. if (LabeledStatementAST *_other = pattern->asLabeledStatement())
  381. return matcher->match(this, _other);
  382. return false;
  383. }
  384. bool LinkageBodyAST::match0(AST *pattern, ASTMatcher *matcher)
  385. {
  386. if (LinkageBodyAST *_other = pattern->asLinkageBody())
  387. return matcher->match(this, _other);
  388. return false;
  389. }
  390. bool LinkageSpecificationAST::match0(AST *pattern, ASTMatcher *matcher)
  391. {
  392. if (LinkageSpecificationAST *_other = pattern->asLinkageSpecification())
  393. return matcher->match(this, _other);
  394. return false;
  395. }
  396. bool MemInitializerAST::match0(AST *pattern, ASTMatcher *matcher)
  397. {
  398. if (MemInitializerAST *_other = pattern->asMemInitializer())
  399. return matcher->match(this, _other);
  400. return false;
  401. }
  402. bool NestedNameSpecifierAST::match0(AST *pattern, ASTMatcher *matcher)
  403. {
  404. if (NestedNameSpecifierAST *_other = pattern->asNestedNameSpecifier())
  405. return matcher->match(this, _other);
  406. return false;
  407. }
  408. bool QualifiedNameAST::match0(AST *pattern, ASTMatcher *matcher)
  409. {
  410. if (QualifiedNameAST *_other = pattern->asQualifiedName())
  411. return matcher->match(this, _other);
  412. return false;
  413. }
  414. bool OperatorFunctionIdAST::match0(AST *pattern, ASTMatcher *matcher)
  415. {
  416. if (OperatorFunctionIdAST *_other = pattern->asOperatorFunctionId())
  417. return matcher->match(this, _other);
  418. return false;
  419. }
  420. bool ConversionFunctionIdAST::match0(AST *pattern, ASTMatcher *matcher)
  421. {
  422. if (ConversionFunctionIdAST *_other = pattern->asConversionFunctionId())
  423. return matcher->match(this, _other);
  424. return false;
  425. }
  426. bool AnonymousNameAST::match0(AST *pattern, ASTMatcher *matcher)
  427. {
  428. if (AnonymousNameAST *_other = pattern->asAnonymousName())
  429. return matcher->match(this, _other);
  430. return false;
  431. }
  432. bool SimpleNameAST::match0(AST *pattern, ASTMatcher *matcher)
  433. {
  434. if (SimpleNameAST *_other = pattern->asSimpleName())
  435. return matcher->match(this, _other);
  436. return false;
  437. }
  438. bool DestructorNameAST::match0(AST *pattern, ASTMatcher *matcher)
  439. {
  440. if (DestructorNameAST *_other = pattern->asDestructorName())
  441. return matcher->match(this, _other);
  442. return false;
  443. }
  444. bool TemplateIdAST::match0(AST *pattern, ASTMatcher *matcher)
  445. {
  446. if (TemplateIdAST *_other = pattern->asTemplateId())
  447. return matcher->match(this, _other);
  448. return false;
  449. }
  450. bool NamespaceAST::match0(AST *pattern, ASTMatcher *matcher)
  451. {
  452. if (NamespaceAST *_other = pattern->asNamespace())
  453. return matcher->match(this, _other);
  454. return false;
  455. }
  456. bool NamespaceAliasDefinitionAST::match0(AST *pattern, ASTMatcher *matcher)
  457. {
  458. if (NamespaceAliasDefinitionAST *_other = pattern->asNamespaceAliasDefinition())
  459. return matcher->match(this, _other);
  460. return false;
  461. }
  462. bool AliasDeclarationAST::match0(AST *pattern, ASTMatcher *matcher)
  463. {
  464. if (AliasDeclarationAST *_other = pattern->asAliasDeclaration())
  465. return matcher->match(this, _other);
  466. return false;
  467. }
  468. bool ExpressionListParenAST::match0(AST *pattern, ASTMatcher *matcher)
  469. {
  470. if (ExpressionListParenAST *_other = pattern->asExpressionListParen())
  471. return matcher->match(this, _other);
  472. return false;
  473. }
  474. bool NewArrayDeclaratorAST::match0(AST *pattern, ASTMatcher *matcher)
  475. {
  476. if (NewArrayDeclaratorAST *_other = pattern->asNewArrayDeclarator())
  477. return matcher->match(this, _other);
  478. return false;
  479. }
  480. bool NewExpressionAST::match0(AST *pattern, ASTMatcher *matcher)
  481. {
  482. if (NewExpressionAST *_other = pattern->asNewExpression())
  483. return matcher->match(this, _other);
  484. return false;
  485. }
  486. bool NewTypeIdAST::match0(AST *pattern, ASTMatcher *matcher)
  487. {
  488. if (NewTypeIdAST *_other = pattern->asNewTypeId())
  489. return matcher->match(this, _other);
  490. return false;
  491. }
  492. bool OperatorAST::match0(AST *pattern, ASTMatcher *matcher)
  493. {
  494. if (OperatorAST *_other = pattern->asOperator())
  495. return matcher->match(this, _other);
  496. return false;
  497. }
  498. bool ParameterDeclarationAST::match0(AST *pattern, ASTMatcher *matcher)
  499. {
  500. if (ParameterDeclarationAST *_other = pattern->asParameterDeclaration())
  501. return matcher->match(this, _other);
  502. return false;
  503. }
  504. bool ParameterDeclarationClauseAST::match0(AST *pattern, ASTMatcher *matcher)
  505. {
  506. if (ParameterDeclarationClauseAST *_other = pattern->asParameterDeclarationClause())
  507. return matcher->match(this, _other);
  508. return false;
  509. }
  510. bool CallAST::match0(AST *pattern, ASTMatcher *matcher)
  511. {
  512. if (CallAST *_other = pattern->asCall())
  513. return matcher->match(this, _other);
  514. return false;
  515. }
  516. bool ArrayAccessAST::match0(AST *pattern, ASTMatcher *matcher)
  517. {
  518. if (ArrayAccessAST *_other = pattern->asArrayAccess())
  519. return matcher->match(this, _other);
  520. return false;
  521. }
  522. bool PostIncrDecrAST::match0(AST *pattern, ASTMatcher *matcher)
  523. {
  524. if (PostIncrDecrAST *_other = pattern->asPostIncrDecr())
  525. return matcher->match(this, _other);
  526. return false;
  527. }
  528. bool MemberAccessAST::match0(AST *pattern, ASTMatcher *matcher)
  529. {
  530. if (MemberAccessAST *_other = pattern->asMemberAccess())
  531. return matcher->match(this, _other);
  532. return false;
  533. }
  534. bool TypeidExpressionAST::match0(AST *pattern, ASTMatcher *matcher)
  535. {
  536. if (TypeidExpressionAST *_other = pattern->asTypeidExpression())
  537. return matcher->match(this, _other);
  538. return false;
  539. }
  540. bool TypenameCallExpressionAST::match0(AST *pattern, ASTMatcher *matcher)
  541. {
  542. if (TypenameCallExpressionAST *_other = pattern->asTypenameCallExpression())
  543. return matcher->match(this, _other);
  544. return false;
  545. }
  546. bool TypeConstructorCallAST::match0(AST *pattern, ASTMatcher *matcher)
  547. {
  548. if (TypeConstructorCallAST *_other = pattern->asTypeConstructorCall())
  549. return matcher->match(this, _other);
  550. return false;
  551. }
  552. bool PointerToMemberAST::match0(AST *pattern, ASTMatcher *matcher)
  553. {
  554. if (PointerToMemberAST *_other = pattern->asPointerToMember())
  555. return matcher->match(this, _other);
  556. return false;
  557. }
  558. bool PointerAST::match0(AST *pattern, ASTMatcher *matcher)
  559. {
  560. if (PointerAST *_other = pattern->asPointer())
  561. return matcher->match(this, _other);
  562. return false;
  563. }
  564. bool ReferenceAST::match0(AST *pattern, ASTMatcher *matcher)
  565. {
  566. if (ReferenceAST *_other = pattern->asReference())
  567. return matcher->match(this, _other);
  568. return false;
  569. }
  570. bool BreakStatementAST::match0(AST *pattern, ASTMatcher *matcher)
  571. {
  572. if (BreakStatementAST *_other = pattern->asBreakStatement())
  573. return matcher->match(this, _other);
  574. return false;
  575. }
  576. bool ContinueStatementAST::match0(AST *pattern, ASTMatcher *matcher)
  577. {
  578. if (ContinueStatementAST *_other = pattern->asContinueStatement())
  579. return matcher->match(this, _other);
  580. return false;
  581. }
  582. bool GotoStatementAST::match0(AST *pattern, ASTMatcher *matcher)
  583. {
  584. if (GotoStatementAST *_other = pattern->asGotoStatement())
  585. return matcher->match(this, _other);
  586. return false;
  587. }
  588. bool ReturnStatementAST::match0(AST *pattern, ASTMatcher *matcher)
  589. {
  590. if (ReturnStatementAST *_other = pattern->asReturnStatement())
  591. return matcher->match(this, _other);
  592. return false;
  593. }
  594. bool SizeofExpressionAST::match0(AST *pattern, ASTMatcher *matcher)
  595. {
  596. if (SizeofExpressionAST *_other = pattern->asSizeofExpression())
  597. return matcher->match(this, _other);
  598. return false;
  599. }
  600. bool AlignofExpressionAST::match0(AST *pattern, ASTMatcher *matcher)
  601. {
  602. if (AlignofExpressionAST *_other = pattern->asAlignofExpression())
  603. return matcher->match(this, _other);
  604. return false;
  605. }
  606. bool PointerLiteralAST::match0(AST *pattern, ASTMatcher *matcher)
  607. {
  608. if (PointerLiteralAST *_other = pattern->asPointerLiteral())
  609. return matcher->match(this, _other);
  610. return false;
  611. }
  612. bool NumericLiteralAST::match0(AST *pattern, ASTMatcher *matcher)
  613. {
  614. if (NumericLiteralAST *_other = pattern->asNumericLiteral())
  615. return matcher->match(this, _other);
  616. return false;
  617. }
  618. bool BoolLiteralAST::match0(AST *pattern, ASTMatcher *matcher)
  619. {
  620. if (BoolLiteralAST *_other = pattern->asBoolLiteral())
  621. return matcher->match(this, _other);
  622. return false;
  623. }
  624. bool ThisExpressionAST::match0(AST *pattern, ASTMatcher *matcher)
  625. {
  626. if (ThisExpressionAST *_other = pattern->asThisExpression())
  627. return matcher->match(this, _other);
  628. return false;
  629. }
  630. bool NestedExpressionAST::match0(AST *pattern, ASTMatcher *matcher)
  631. {
  632. if (NestedExpressionAST *_other = pattern->asNestedExpression())
  633. return matcher->match(this, _other);
  634. return false;
  635. }
  636. bool StaticAssertDeclarationAST::match0(AST *pattern, ASTMatcher *matcher)
  637. {
  638. if (StaticAssertDeclarationAST *_other = pattern->asStaticAssertDeclaration())
  639. return matcher->match(this, _other);
  640. return false;
  641. }
  642. bool StringLiteralAST::match0(AST *pattern, ASTMatcher *matcher)
  643. {
  644. if (StringLiteralAST *_other = pattern->asStringLiteral())
  645. return matcher->match(this, _other);
  646. return false;
  647. }
  648. bool SwitchStatementAST::match0(AST *pattern, ASTMatcher *matcher)
  649. {
  650. if (SwitchStatementAST *_other = pattern->asSwitchStatement())
  651. return matcher->match(this, _other);
  652. return false;
  653. }
  654. bool TemplateDeclarationAST::match0(AST *pattern, ASTMatcher *matcher)
  655. {
  656. if (TemplateDeclarationAST *_other = pattern->asTemplateDeclaration())
  657. return matcher->match(this, _other);
  658. return false;
  659. }
  660. bool ThrowExpressionAST::match0(AST *pattern, ASTMatcher *matcher)
  661. {
  662. if (ThrowExpressionAST *_other = pattern->asThrowExpression())
  663. return matcher->match(this, _other);
  664. return false;
  665. }
  666. bool TranslationUnitAST::match0(AST *pattern, ASTMatcher *matcher)
  667. {
  668. if (TranslationUnitAST *_other = pattern->asTranslationUnit())
  669. return matcher->match(this, _other);
  670. return false;
  671. }
  672. bool TryBlockStatementAST::match0(AST *pattern, ASTMatcher *matcher)
  673. {
  674. if (TryBlockStatementAST *_other = pattern->asTryBlockStatement())
  675. return matcher->match(this, _other);
  676. return false;
  677. }
  678. bool CatchClauseAST::match0(AST *pattern, ASTMatcher *matcher)
  679. {
  680. if (CatchClauseAST *_other = pattern->asCatchClause())
  681. return matcher->match(this, _other);
  682. return false;
  683. }
  684. bool TypeIdAST::match0(AST *pattern, ASTMatcher *matcher)
  685. {
  686. if (TypeIdAST *_other = pattern->asTypeId())
  687. return matcher->match(this, _other);
  688. return false;
  689. }
  690. bool TypenameTypeParameterAST::match0(AST *pattern, ASTMatcher *matcher)
  691. {
  692. if (TypenameTypeParameterAST *_other = pattern->asTypenameTypeParameter())
  693. return matcher->match(this, _other);
  694. return false;
  695. }
  696. bool TemplateTypeParameterAST::match0(AST *pattern, ASTMatcher *matcher)
  697. {
  698. if (TemplateTypeParameterAST *_other = pattern->asTemplateTypeParameter())
  699. return matcher->match(this, _other);
  700. return false;
  701. }
  702. bool UnaryExpressionAST::match0(AST *pattern, ASTMatcher *matcher)
  703. {
  704. if (UnaryExpressionAST *_other = pattern->asUnaryExpression())
  705. return matcher->match(this, _other);
  706. return false;
  707. }
  708. bool UsingAST::match0(AST *pattern, ASTMatcher *matcher)
  709. {
  710. if (UsingAST *_other = pattern->asUsing())
  711. return matcher->match(this, _other);
  712. return false;
  713. }
  714. bool UsingDirectiveAST::match0(AST *pattern, ASTMatcher *matcher)
  715. {
  716. if (UsingDirectiveAST *_other = pattern->asUsingDirective())
  717. return matcher->match(this, _other);
  718. return false;
  719. }
  720. bool WhileStatementAST::match0(AST *pattern, ASTMatcher *matcher)
  721. {
  722. if (WhileStatementAST *_other = pattern->asWhileStatement())
  723. return matcher->match(this, _other);
  724. return false;
  725. }
  726. bool ObjCClassForwardDeclarationAST::match0(AST *pattern, ASTMatcher *matcher)
  727. {
  728. if (ObjCClassForwardDeclarationAST *_other = pattern->asObjCClassForwardDeclaration())
  729. return matcher->match(this, _other);
  730. return false;
  731. }
  732. bool ObjCClassDeclarationAST::match0(AST *pattern, ASTMatcher *matcher)
  733. {
  734. if (ObjCClassDeclarationAST *_other = pattern->asObjCClassDeclaration())
  735. return matcher->match(this, _other);
  736. return false;
  737. }
  738. bool ObjCProtocolForwardDeclarationAST::match0(AST *pattern, ASTMatcher *matcher)
  739. {
  740. if (ObjCProtocolForwardDeclarationAST *_other = pattern->asObjCProtocolForwardDeclaration())
  741. return matcher->match(this, _other);
  742. return false;
  743. }
  744. bool ObjCProtocolDeclarationAST::match0(AST *pattern, ASTMatcher *matcher)
  745. {
  746. if (ObjCProtocolDeclarationAST *_other = pattern->asObjCProtocolDeclaration())
  747. return matcher->match(this, _other);
  748. return false;
  749. }
  750. bool ObjCProtocolRefsAST::match0(AST *pattern, ASTMatcher *matcher)
  751. {
  752. if (ObjCProtocolRefsAST *_other = pattern->asObjCProtocolRefs())
  753. return matcher->match(this, _other);
  754. return false;
  755. }
  756. bool ObjCMessageArgumentAST::match0(AST *pattern, ASTMatcher *matcher)
  757. {
  758. if (ObjCMessageArgumentAST *_other = pattern->asObjCMessageArgument())
  759. return matcher->match(this, _other);
  760. return false;
  761. }
  762. bool ObjCMessageExpressionAST::match0(AST *pattern, ASTMatcher *matcher)
  763. {
  764. if (ObjCMessageExpressionAST *_other = pattern->asObjCMessageExpression())
  765. return matcher->match(this, _other);
  766. return false;
  767. }
  768. bool ObjCProtocolExpressionAST::match0(AST *pattern, ASTMatcher *matcher)
  769. {
  770. if (ObjCProtocolExpressionAST *_other = pattern->asObjCProtocolExpression())
  771. return matcher->match(this, _other);
  772. return false;
  773. }
  774. bool ObjCTypeNameAST::match0(AST *pattern, ASTMatcher *matcher)
  775. {
  776. if (ObjCTypeNameAST *_other = pattern->asObjCTypeName())
  777. return matcher->match(this, _other);
  778. return false;
  779. }
  780. bool ObjCEncodeExpressionAST::match0(AST *pattern, ASTMatcher *matcher)
  781. {
  782. if (ObjCEncodeExpressionAST *_other = pattern->asObjCEncodeExpression())
  783. return matcher->match(this, _other);
  784. return false;
  785. }
  786. bool ObjCSelectorExpressionAST::match0(AST *pattern, ASTMatcher *matcher)
  787. {
  788. if (ObjCSelectorExpressionAST *_other = pattern->asObjCSelectorExpression())
  789. return matcher->match(this, _other);
  790. return false;
  791. }
  792. bool ObjCInstanceVariablesDeclarationAST::match0(AST *pattern, ASTMatcher *matcher)
  793. {
  794. if (ObjCInstanceVariablesDeclarationAST *_other = pattern->asObjCInstanceVariablesDeclaration())
  795. return matcher->match(this, _other);
  796. return false;
  797. }
  798. bool ObjCVisibilityDeclarationAST::match0(AST *pattern, ASTMatcher *matcher)
  799. {
  800. if (ObjCVisibilityDeclarationAST *_other = pattern->asObjCVisibilityDeclaration())
  801. return matcher->match(this, _other);
  802. return false;
  803. }
  804. bool ObjCPropertyAttributeAST::match0(AST *pattern, ASTMatcher *matcher)
  805. {
  806. if (ObjCPropertyAttributeAST *_other = pattern->asObjCPropertyAttribute())
  807. return matcher->match(this, _other);
  808. return false;
  809. }
  810. bool ObjCPropertyDeclarationAST::match0(AST *pattern, ASTMatcher *matcher)
  811. {
  812. if (ObjCPropertyDeclarationAST *_other = pattern->asObjCPropertyDeclaration())
  813. return matcher->match(this, _other);
  814. return false;
  815. }
  816. bool ObjCMessageArgumentDeclarationAST::match0(AST *pattern, ASTMatcher *matcher)
  817. {
  818. if (ObjCMessageArgumentDeclarationAST *_other = pattern->asObjCMessageArgumentDeclaration())
  819. return matcher->match(this, _other);
  820. return false;
  821. }
  822. bool ObjCMethodPrototypeAST::match0(AST *pattern, ASTMatcher *matcher)
  823. {
  824. if (ObjCMethodPrototypeAST *_other = pattern->asObjCMethodPrototype())
  825. return matcher->match(this, _other);
  826. return false;
  827. }
  828. bool ObjCMethodDeclarationAST::match0(AST *pattern, ASTMatcher *matcher)
  829. {
  830. if (ObjCMethodDeclarationAST *_other = pattern->asObjCMethodDeclaration())
  831. return matcher->match(this, _other);
  832. return false;
  833. }
  834. bool ObjCSynthesizedPropertyAST::match0(AST *pattern, ASTMatcher *matcher)
  835. {
  836. if (ObjCSynthesizedPropertyAST *_other = pattern->asObjCSynthesizedProperty())
  837. return matcher->match(this, _other);
  838. return false;
  839. }
  840. bool ObjCSynthesizedPropertiesDeclarationAST::match0(AST *pattern, ASTMatcher *matcher)
  841. {
  842. if (ObjCSynthesizedPropertiesDeclarationAST *_other = pattern->asObjCSynthesizedPropertiesDeclaration())
  843. return matcher->match(this, _other);
  844. return false;
  845. }
  846. bool ObjCDynamicPropertiesDeclarationAST::match0(AST *pattern, ASTMatcher *matcher)
  847. {
  848. if (ObjCDynamicPropertiesDeclarationAST *_other = pattern->asObjCDynamicPropertiesDeclaration())
  849. return matcher->match(this, _other);
  850. return false;
  851. }
  852. bool ObjCFastEnumerationAST::match0(AST *pattern, ASTMatcher *matcher)
  853. {
  854. if (ObjCFastEnumerationAST *_other = pattern->asObjCFastEnumeration())
  855. return matcher->match(this, _other);
  856. return false;
  857. }
  858. bool ObjCSynchronizedStatementAST::match0(AST *pattern, ASTMatcher *matcher)
  859. {
  860. if (ObjCSynchronizedStatementAST *_other = pattern->asObjCSynchronizedStatement())
  861. return matcher->match(this, _other);
  862. return false;
  863. }
  864. bool LambdaExpressionAST::match0(AST *pattern, ASTMatcher *matcher)
  865. {
  866. if (LambdaExpressionAST *_other = pattern->asLambdaExpression())
  867. return matcher->match(this, _other);
  868. return false;
  869. }
  870. bool LambdaIntroducerAST::match0(AST *pattern, ASTMatcher *matcher)
  871. {
  872. if (LambdaIntroducerAST *_other = pattern->asLambdaIntroducer())
  873. return matcher->match(this, _other);
  874. return false;
  875. }
  876. bool LambdaCaptureAST::match0(AST *pattern, ASTMatcher *matcher)
  877. {
  878. if (LambdaCaptureAST *_other = pattern->asLambdaCapture())
  879. return matcher->match(this, _other);
  880. return false;
  881. }
  882. bool CaptureAST::match0(AST *pattern, ASTMatcher *matcher)
  883. {
  884. if (CaptureAST *_other = pattern->asCapture())
  885. return matcher->match(this, _other);
  886. return false;
  887. }
  888. bool LambdaDeclaratorAST::match0(AST *pattern, ASTMatcher *matcher)
  889. {
  890. if (LambdaDeclaratorAST *_other = pattern->asLambdaDeclarator())
  891. return matcher->match(this, _other);
  892. return false;
  893. }
  894. bool TrailingReturnTypeAST::match0(AST *pattern, ASTMatcher *matcher)
  895. {
  896. if (TrailingReturnTypeAST *_other = pattern->asTrailingReturnType())
  897. return matcher->match(this, _other);
  898. return false;
  899. }
  900. bool BracedInitializerAST::match0(AST *pattern, ASTMatcher *matcher)
  901. {
  902. if (BracedInitializerAST *_other = pattern->asBracedInitializer())
  903. return matcher->match(this, _other);
  904. return false;
  905. }
  906. bool DotDesignatorAST::match0(AST *pattern, ASTMatcher *matcher)
  907. {
  908. if (DotDesignatorAST *_other = pattern->asDotDesignator())
  909. return matcher->match(this, _other);
  910. return false;
  911. }
  912. bool BracketDesignatorAST::match0(AST *pattern, ASTMatcher *matcher)
  913. {
  914. if (BracketDesignatorAST *_other = pattern->asBracketDesignator())
  915. return matcher->match(this, _other);
  916. return false;
  917. }
  918. bool DesignatedInitializerAST::match0(AST *pattern, ASTMatcher *matcher)
  919. {
  920. if (DesignatedInitializerAST *_other = pattern->asDesignatedInitializer())
  921. return matcher->match(this, _other);
  922. return false;
  923. }