r243275 - Analysis: Fix example usage comment in CFG.cpp. NFC

Jonathan Roelofs jonathan at codesourcery.com
Mon Jul 27 09:05:36 PDT 2015


Author: jroelofs
Date: Mon Jul 27 11:05:36 2015
New Revision: 243275

URL: http://llvm.org/viewvc/llvm-project?rev=243275&view=rev
Log:
Analysis: Fix example usage comment in CFG.cpp. NFC

Patch by Vedant Kumar!

Modified:
    cfe/trunk/lib/Analysis/CFG.cpp

Modified: cfe/trunk/lib/Analysis/CFG.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Analysis/CFG.cpp?rev=243275&r1=243274&r2=243275&view=diff
==============================================================================
--- cfe/trunk/lib/Analysis/CFG.cpp (original)
+++ cfe/trunk/lib/Analysis/CFG.cpp Mon Jul 27 11:05:36 2015
@@ -284,7 +284,7 @@ reverse_children::reverse_children(Stmt
 ///   Example usage:
 ///
 ///     CFGBuilder builder;
-///     CFG* cfg = builder.BuildAST(stmt1);
+///     std::unique_ptr<CFG> cfg = builder.buildCFG(decl, stmt1);
 ///
 ///  CFG construction is done via a recursive walk of an AST.  We actually parse
 ///  the AST in reverse order so that the successor of a basic block is





More information about the cfe-commits mailing list