From: Ted Kremenek Date: Fri, 21 Sep 2012 17:54:32 +0000 (+0000) Subject: Add some structuring comments. No functionality change. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0a4c0988c237678f4b5ba7375e51d24d2c55d67f;p=clang Add some structuring comments. No functionality change. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@164391 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Analysis/BodyFarm.cpp b/lib/Analysis/BodyFarm.cpp index c01d4e6fcb..7b1122d5b0 100644 --- a/lib/Analysis/BodyFarm.cpp +++ b/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.