# HG changeset patch # User Kaito Tokumori # Date 1429251022 -32400 # Node ID 15fe73fee027b4890d4a8b71d18f94f5691959ce # Parent 8a1cd0ffee6e0734c28fc2f186ba46f82f507051 Create prototype declaration automatically. diff -r 8a1cd0ffee6e -r 15fe73fee027 tools/clang/lib/Parse/ParseExpr.cpp --- 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();