changeset 93:15fe73fee027

Create prototype declaration automatically.
author Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
date Fri, 17 Apr 2015 15:10:22 +0900
parents 8a1cd0ffee6e
children d52ff4b80465
files tools/clang/lib/Parse/ParseExpr.cpp
diffstat 1 files changed, 6 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/tools/clang/lib/Parse/ParseExpr.cpp	Fri Apr 17 13:54:34 2015 +0900
+++ b/tools/clang/lib/Parse/ParseExpr.cpp	Fri Apr 17 15:10:22 2015 +0900
@@ -32,9 +32,6 @@
 #include "llvm/ADT/SmallString.h"
 #include "llvm/ADT/SmallVector.h"
 
-#ifndef noCbC
-#include "CbCHelper.h"
-#endif
 
 using namespace clang;
 
@@ -839,6 +836,12 @@
       }
     }
 
+#ifndef noCbC
+    if(NeedPrototypeDeclaration(Tok)){
+      CreatePrototypeDeclaration();
+    }
+#endif
+
     // Consume the identifier so that we can see if it is followed by a '(' or
     // '.'.
     IdentifierInfo &II = *Tok.getIdentifierInfo();