]> granicus.if.org Git - clang/commitdiff
[ASTImporter][NFC] Fix typo in user docs
authorGabor Marton <gabor.marton@ericsson.com>
Mon, 7 Oct 2019 11:14:53 +0000 (11:14 +0000)
committerGabor Marton <gabor.marton@ericsson.com>
Mon, 7 Oct 2019 11:14:53 +0000 (11:14 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@373894 91177308-0d34-0410-b5e6-96231b3b80d8

docs/LibASTImporter.rst

index 6593536f2cc3aef2587a451ff6a2642fa07d7114..9c02b6ae76e9927e62416f0115ccb82dec97e96a 100644 (file)
@@ -106,7 +106,7 @@ Next, we define a matcher to match ``MyClass`` in the "from" context:
 
 .. code-block:: cpp
 
-  auto Matcher = cxxRecordDecl(hasName("C"));
+  auto Matcher = cxxRecordDecl(hasName("MyClass"));
   auto *From = getFirstDecl<CXXRecordDecl>(Matcher, FromUnit);
 
 Now we create the Importer and do the import: