[cfe-commits] r164391 - /cfe/trunk/lib/Analysis/BodyFarm.cpp
Ted Kremenek
kremenek at apple.com
Fri Sep 21 10:54:33 PDT 2012
Author: kremenek
Date: Fri Sep 21 12:54:32 2012
New Revision: 164391
URL: http://llvm.org/viewvc/llvm-project?rev=164391&view=rev
Log:
Add some structuring comments. No functionality change.
Modified:
cfe/trunk/lib/Analysis/BodyFarm.cpp
Modified: cfe/trunk/lib/Analysis/BodyFarm.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Analysis/BodyFarm.cpp?rev=164391&r1=164390&r2=164391&view=diff
==============================================================================
--- cfe/trunk/lib/Analysis/BodyFarm.cpp (original)
+++ cfe/trunk/lib/Analysis/BodyFarm.cpp Fri Sep 21 12:54:32 2012
@@ -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 @@
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.
More information about the cfe-commits
mailing list