]> granicus.if.org Git - clang/commitdiff
Add some structuring comments. No functionality change.
authorTed Kremenek <kremenek@apple.com>
Fri, 21 Sep 2012 17:54:32 +0000 (17:54 +0000)
committerTed Kremenek <kremenek@apple.com>
Fri, 21 Sep 2012 17:54:32 +0000 (17:54 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@164391 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/BodyFarm.cpp

index c01d4e6fcba04c472a34221169f32906b4ac6a04..7b1122d5b007e0af1f335b3f3a24f4b63fde9e76 100644 (file)
@@ -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.