]> granicus.if.org Git - clang/commitdiff
Update the 3.8 release notes with the breaking change information regarding AST matchers.
authorAaron Ballman <aaron@aaronballman.com>
Thu, 17 Sep 2015 13:47:22 +0000 (13:47 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Thu, 17 Sep 2015 13:47:22 +0000 (13:47 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@247887 91177308-0d34-0410-b5e6-96231b3b80d8

docs/ReleaseNotes.rst

index 6c14b85e83abd07ddf6b68a6cf056c360c4cd405..779d45c2928b3a85a0127e90d0dd2683a17a7852 100644 (file)
@@ -114,6 +114,51 @@ this section should help get you past the largest hurdles of upgrading.
 
 -  ...
 
+AST Matchers
+------------
+The AST matcher functions were renamed to reflect the exact AST node names,
+which is a breaking change to AST matching code. The following matchers were
+affected:
+
+=======================        ============================
+Previous Matcher Name  New Matcher Name
+=======================        ============================
+recordDecl             recordDecl and cxxRecordDecl
+ctorInitializer                cxxCtorInitializer
+constructorDecl                cxxConstructorDecl
+destructorDecl         cxxDestructorDecl
+methodDecl             cxxMethodDecl
+conversionDecl         cxxConversionDecl
+memberCallExpr         cxxMemberCallExpr
+constructExpr          cxxConstructExpr
+unresolvedConstructExpr        cxxUnresolvedConstructExpr
+thisExpr               cxxThisExpr
+bindTemporaryExpr      cxxBindTemporaryExpr
+newExpr                        cxxNewExpr
+deleteExpr             cxxDeleteExpr
+defaultArgExpr         cxxDefaultArgExpr
+operatorCallExpr       cxxOperatorCallExpr
+forRangeStmt           cxxForRangeStmt
+catchStmt              cxxCatchStmt
+tryStmt                        cxxTryStmt
+throwExpr              cxxThrowExpr
+boolLiteral            cxxBoolLiteral
+nullPtrLiteralExpr     cxxNullPtrLiteralExpr
+reinterpretCastExpr    cxxReinterpretCastExpr
+staticCastExpr         cxxStaticCastExpr
+dynamicCastExpr                cxxDynamicCastExpr
+constCastExpr          cxxConstCastExpr
+functionalCastExpr     cxxFunctionalCastExpr
+temporaryObjectExpr    cxxTemporaryObjectExpr
+CUDAKernalCallExpr     cudaKernelCallExpr
+=======================        ============================
+
+recordDecl() previously matched AST nodes of type CXXRecordDecl, but now
+matches AST nodes of type RecordDecl. If a CXXRecordDecl is required, use the
+cxxRecordDecl() matcher instead.
+
+...
+
 libclang
 --------