aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2011-05-13 14:43:48 +0000
committerDouglas Gregor <dgregor@apple.com>2011-05-13 14:43:48 +0000
commit91c97ca3e3a5cd2427c2ebcf2650950729d703d9 (patch)
treec099b4b679182ed4088a8e4d21b827195a1bf66d
parent49634cf3b9b0c3da2aedc3bdefbf331bce167239 (diff)
Eliminate old, useless tutorial page
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@131292 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--www/clang-tutorial.html56
1 files changed, 0 insertions, 56 deletions
diff --git a/www/clang-tutorial.html b/www/clang-tutorial.html
deleted file mode 100644
index 0e17046996..0000000000
--- a/www/clang-tutorial.html
+++ /dev/null
@@ -1,56 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
- "http://www.w3.org/TR/html4/strict.dtd">
-<html>
-<head>
- <META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
- <title>Clang - Quick Tutorial</title>
- <link type="text/css" rel="stylesheet" href="menu.css" />
- <link type="text/css" rel="stylesheet" href="content.css" />
-</head>
-<body>
-
-<!--#include virtual="menu.html.incl"-->
-
-<div id="content">
-
-<h1>Tutorial</h1>
-
- <p>Invoking the BoostCon tool:</p>
- <pre>
-$ clang -cc1 -boostcon t.cpp
-</pre>
-
- <p>Teach the BoostCon action to identify and print C++ classes:</p>
- <pre>
-bool VisitCXXRecordDecl(CXXRecordDecl *D) {
- std::cout &lt;&lt; D-&gt;getNameAsString()
- &lt;&lt; '\n';
- return false;
-}
-</pre>
-
- <p>Walk and print base classes of a class:</p>
- <pre>
-for(CXXRecordDecl::base_class_iterator
- B = D-&gt;bases_begin(), BEnd = D-&gt;bases_end();
- B != BEnd; ++B) {
- QualType BaseType = B-&gt;getType();
- std::cout &lt;&lt; " " &lt;&lt; BaseType.getAsString()
- &lt;&lt; '\n';
-}
-</pre>
-
- <p>Retrieve the C++ class declaration from a base type:</p>
- <pre>
-if (const RecordType *RTy
- = BaseType-&gt;getAs&lt;RecordType&gt;()) {
- RecordDecl *Base = RTy-&gt;getDecl();
- if (CXXRecordDecl *BaseCXX
- = dyn_cast&lt;CXXRecordDecl&gt;(Base)) {
-
- }
-}
-</pre>
-</div>
-</body>
-</html>