summaryrefslogtreecommitdiffstats
path: root/clang/lib/Analysis/BodyFarm.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2012-09-21 17:54:32 +0000
committerTed Kremenek <kremenek@apple.com>2012-09-21 17:54:32 +0000
commit2b5c83ca8f16054a0595eb7e5fd63939177f336e (patch)
tree661591a90103d84f3918693ee036f26b6187a8fe /clang/lib/Analysis/BodyFarm.cpp
parent26820c0b5a3c962cfae8ce14c45f7debb85335f3 (diff)
downloadbcm5719-llvm-2b5c83ca8f16054a0595eb7e5fd63939177f336e.tar.gz
bcm5719-llvm-2b5c83ca8f16054a0595eb7e5fd63939177f336e.zip
Add some structuring comments. No functionality change.
llvm-svn: 164391
Diffstat (limited to 'clang/lib/Analysis/BodyFarm.cpp')
-rw-r--r--clang/lib/Analysis/BodyFarm.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/clang/lib/Analysis/BodyFarm.cpp b/clang/lib/Analysis/BodyFarm.cpp
index c01d4e6fcba..7b1122d5b00 100644
--- a/clang/lib/Analysis/BodyFarm.cpp
+++ b/clang/lib/Analysis/BodyFarm.cpp
@@ -20,7 +20,9 @@
using namespace clang;
-typedef Stmt *(*FunctionFarmer)(ASTContext &C, const FunctionDecl *D);
+//===----------------------------------------------------------------------===//
+// Helper creation functions for constructing faux ASTs.
+//===----------------------------------------------------------------------===//
static bool isDispatchBlock(QualType Ty) {
// Is it a block pointer?
@@ -39,6 +41,12 @@ static bool isDispatchBlock(QualType Ty) {
return true;
}
+//===----------------------------------------------------------------------===//
+// Creation functions for faux ASTs.
+//===----------------------------------------------------------------------===//
+
+typedef Stmt *(*FunctionFarmer)(ASTContext &C, const FunctionDecl *D);
+
/// Create a fake body for dispatch_once.
static Stmt *create_dispatch_once(ASTContext &C, const FunctionDecl *D) {
// Check if we have at least two parameters.
OpenPOWER on IntegriCloud