diff options
author | ed <ed@FreeBSD.org> | 2010-06-09 18:11:12 +0000 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2010-06-09 18:11:12 +0000 |
commit | a1185afe0f653cca036f117b540fefc6f799e95d (patch) | |
tree | 8b9786210f005ec3c3b7b19ee52714d390c2b121 /contrib/llvm/tools/clang/www/clang-tutorial.html | |
parent | 92026fed219b8457b0b6d9ed33a538b105a670cc (diff) | |
download | FreeBSD-src-a1185afe0f653cca036f117b540fefc6f799e95d.zip FreeBSD-src-a1185afe0f653cca036f117b540fefc6f799e95d.tar.gz |
Remove unneeded directories.
Even though Roman removed these directories in his working copy, they
weren't removed from the actual repository, also causing his working
copy to be corrupted.
Diffstat (limited to 'contrib/llvm/tools/clang/www/clang-tutorial.html')
-rw-r--r-- | contrib/llvm/tools/clang/www/clang-tutorial.html | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/contrib/llvm/tools/clang/www/clang-tutorial.html b/contrib/llvm/tools/clang/www/clang-tutorial.html deleted file mode 100644 index 0e17046..0000000 --- a/contrib/llvm/tools/clang/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 << D->getNameAsString() - << '\n'; - return false; -} -</pre> - - <p>Walk and print base classes of a class:</p> - <pre> -for(CXXRecordDecl::base_class_iterator - B = D->bases_begin(), BEnd = D->bases_end(); - B != BEnd; ++B) { - QualType BaseType = B->getType(); - std::cout << " " << BaseType.getAsString() - << '\n'; -} -</pre> - - <p>Retrieve the C++ class declaration from a base type:</p> - <pre> -if (const RecordType *RTy - = BaseType->getAs<RecordType>()) { - RecordDecl *Base = RTy->getDecl(); - if (CXXRecordDecl *BaseCXX - = dyn_cast<CXXRecordDecl>(Base)) { - - } -} -</pre> -</div> -</body> -</html> |