diff options
author | Ted Kremenek <kremenek@apple.com> | 2012-09-21 17:54:32 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2012-09-21 17:54:32 +0000 |
commit | 0a4c0988c237678f4b5ba7375e51d24d2c55d67f (patch) | |
tree | a7881a1d172cc88480af8d1ca864ac255fb46a8a /lib/Analysis/BodyFarm.cpp | |
parent | 72d54e1ee7fdd6d309d34fae59844ab7b1d5b58e (diff) |
Add some structuring comments. No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@164391 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/BodyFarm.cpp')
-rw-r--r-- | lib/Analysis/BodyFarm.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
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. |